Skip to main content

Environment variables

Variables that matter to integrators first; internal build and platform configuration clearly marked below.

Integrations and the fleet agent

The variables your automation actually sets:

VariablePurpose
CONSTELLATION_API_TOKENThe tenant API key, sent as the x-api-key header. The convention across the fleet agent, the examples, and the docs.
CONSTELLATION_CONFIG_DIRFleet agent configuration directory (default ~/.constellation, where config.toml lives).

Key handling guidance lives in Security overview; the config.toml contract in Integration bundle.

Console build configuration (internal)

Set at build time per environment (from SSM in CI, or .env.local in development). These configure the console itself; integrators never need them.

VariablePurpose
VITE_CONSTELLATION_API_URLDirect platform API base for the console's live mode
VITE_CONSTELLATION_API_KEYTenant key baked into a build for live API reads
VITE_CONSTELLATION_TOPOLOGY_AS_OFPins topology reads to a fixed instant for seeded sandbox data
VITE_COGNITO_DOMAIN / VITE_COGNITO_CLIENT_ID / VITE_COGNITO_REDIRECT_URIConsole sign-in configuration
VITE_CHAT_API_URLAssistant backend endpoint (production Lambda)
VITE_BILLING_API_URLBilling backend endpoint (production Lambda)
VITE_CESIUM_ION_ACCESS_TOKENEnables real terrain for horizon sweeps and elevation masks; synthetic fallback without it

Server-only secrets for the console's dev middleware and Lambdas (ANTHROPIC_API_KEY, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET) are never exposed with a VITE_ prefix.

Local development (internal)

VariablePurpose
CONSTELLATION_API_URLTarget for the console dev server's /app/api/os/* proxy (for example http://localhost:8000)
.env.local example
VITE_CONSTELLATION_API_URL=http://localhost:8000
CONSTELLATION_API_URL=http://localhost:8000

Platform service configuration (internal)

The platform API reads its own environment configuration. Documented here so error behavior is explainable, not because customers can set them:

VariableControls
TENANT_REGISTRYThe tenant-to-data-plane registry (JSON)
API_KEYSKey material source (loaded from Secrets Manager, scrubbed after parse)
CONSTELLATION_RATE_LIMIT_PER_IPPer-IP rate limit (default 30/min)
CONSTELLATION_MAX_REQUEST_BYTESBody cap (default 1 MB)
CONSTELLATION_TELEMETRY_MAX_ROWSTopology read row cap (default 50,000)
CONSTELLATION_CORS_ORIGINSCORS allowlist; CORS is entirely off when empty
CONSTELLATION_RATELIMIT_STORAGE_URIOptional shared rate-limit store; in-memory per task when unset

Docs and CI deploy (internal)

DOCS_S3_BUCKET, DOCS_CF_DISTRIBUTION_ID, and DOCS_CF_ALIAS drive the docs deploy; CONSOLE_* variables drive console deploys. Source of truth after infrastructure deploy is SSM.