Skip to content

Cortex Runtimes

Cortex is a multi-runtime control plane. The same agent can be developed locally, provisioned to GCP Cloud Run, or deployed to the Nexus Kubernetes cloud — each managed from within the desktop app.

TargetEndpointManaged byBest for
Local Runtime:8000Cortex (uv venv + uvicorn)Development & testing
GCP Cloud RunProvisioned URLOrbitProduction on Google Cloud
Nexus:8080Nexus control planeMulti-tenant K8s cloud

Cortex installs and supervises a self-contained Python runtime so you never touch a terminal to get going.

  • Provisioning — Cortex creates a Python virtual environment with uv, then runs pip install astromesh[mesh] astromesh-cli astromesh-orbit[gcp] and spawns uvicorn on :8000.
  • Lifecycle — Install, start, stop, update, and uninstall are all one click, with continuous health polling.

If you’re hacking on the Astromesh monorepo itself, point Cortex at your local source with the ASTROMESH_LOCAL_SOURCE environment variable:

Terminal window
ASTROMESH_LOCAL_SOURCE=/path/to/astromesh

When set, Cortex performs an editable install (pip install -e) against your monorepo and surfaces a local -e badge so you know the runtime is tracking your working tree.

Cortex embeds Orbit to provision a production-ready stack on Google Cloud through a guided 4-step ProvisionWizard:

  1. Auth — Authenticate via gcloud or a service-account key.
  2. Configure — Choose project, region, and environment.
  3. Plan — Preview the resources Orbit will create.
  4. Apply — Provision with live logs streaming into Cortex.

The wizard writes an orbit.yaml (apiVersion: astromesh/v1, kind: OrbitDeployment) and manages roughly ten GCP resources:

ResourcePurpose
Cloud RunRuns the Astromesh service
Cloud SQLManaged PostgreSQL
Redis / MemorystoreManaged cache
VPC + connectorPrivate networking
Service AccountWorkload identity
SecretsSecret Manager entries
GCS bucketObject storage
IAMRoles and bindings

Once applied, the provisioned Cloud Run URL is saved as a remote runtime connection in your workspace. Cortex also supports force redeploy and destroy flows — destroy removes agents first before tearing down infrastructure.

Switch into Nexus mode to connect Cortex to the Nexus Kubernetes cloud at :8080.

  • Connect — Sign in with email and password; Cortex receives a JWT and stores it encrypted.
  • Tenant-scoped agents — Manage agents through the tenant-scoped API at /api/v1/tenants/:id/agents/:name (full CRUD).
  • Nexus UI — The activity bar exposes Cluster, Workloads, Observability, and Catalog views, plus tenant and API-key management.

The Deploy split-button deploys to the persisted target for the current tab — Runtime, Nexus, or GCP. Each tab remembers its own target and shows it as a badge, so you can keep a local dev tab and a production tab open side by side without re-selecting where each one ships.

  • Quick Start — Install Cortex and run a local agent
  • Workspaces — Connections, environments, and the workspace file model
  • Orbit — Deep dive on GCP provisioning
  • Nexus — The Kubernetes control plane