Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
Self-hostingConfiguration reference

Configuration reference

Stack (deploy/.env)

VariableMeaning
NGAMIA_DOMAINPublic API host name, e.g. api.ngamia.com
ACME_EMAILCertificate notices (Caddy or certbot)
MODEL_GATEWAY_URLOpenAI-compatible model gateway NAK calls with each workspace’s key
PLATFORM_DEFAULT_MODELModel for agents and workspaces that set none
PLATFORM_CORS_ORIGINSComma-separated browser origins allowed to call the API
NAK_TE_ENDPOINT, NAK_TE_ALLOWED_TOOLSTools engine and the exact tool_id@version names agents may use
NAK_KUMBU_ENDPOINTMemory engine
POSTGRES_IMAGE, *_IMAGEImage overrides; pin by digest in production
PLATFORM_HOST_PORT, KIDA_HOST_PORTLoopback ports on a shared host (defaults 4710, 4711)
Key IDs and public keysAppended by bin/init-secrets.sh

Platform service

VariableRequiredMeaning
PLATFORM_BINDListen address (image: 0.0.0.0:8080)
PLATFORM_PUBLIC_URLPublic origin (default https://api.ngamia.com)
PLATFORM_DATABASE_URL_FILEyesFile with the PostgreSQL URL
PLATFORM_DATA_KEY_FILEyes32-byte key encrypting workspace secrets
PLATFORM_KIDA_ISSUER, PLATFORM_KIDA_JWKS_URLyesKIDA issuer and keys for people’s tokens
PLATFORM_KIDA_URL, PLATFORM_KIDA_CALLER_CREDENTIAL_FILEKIDA caller API for sign-in, sign-up and invites
PLATFORM_ASSERTION_KEY_FILE, PLATFORM_ASSERTION_KEY_IDyesEd25519 key for calls to NAK
PLATFORM_NAK_URL, PLATFORM_NAK_ASSERTION_KEYSyesNAK and the public keys it signs with
PLATFORM_UBONGO_URL, PLATFORM_UBONGO_ADMIN_TOKEN_FILEKnowledge engine
PLATFORM_CAMEL_CLIENT_ID, PLATFORM_CAMEL_ISSUERCamel Accounts client for the hosted sign-in (ngamia-agent-web) and issuer
PLATFORM_DOCS_URLLinked from the sign-in page (default https://docs.ngamia.com)
PLATFORM_AUTH_REQUESTS_PER_MINUTESign-in requests per client IP (default 60); nginx must set X-Real-IP
PLATFORM_FAILED_AUTH_PER_MINUTEFailed authentications per client IP before 429 (default 60)
PLATFORM_STREAMS_PER_CALLER, PLATFORM_STREAM_MAX_SECONDSConcurrent run-event streams per person (×10 per API key) and maximum stream length (default 10, 1800)
PLATFORM_METRICS_TOKENBearer token for /metrics (Prometheus text); disabled when unset; never expose publicly
PLATFORM_REQUESTS_PER_MINUTEPer person or key (default 600)
PLATFORM_REQUEST_TIMEOUT_SECONDSDefault 120
PLATFORM_ALLOW_PRIVATE_HTTPAllow http:// engine URLs on private networks
PLATFORM_LOGLog filter (default info)

Secret files must not be readable by group or others. Each engine’s own variables are listed on its engine page.

Last updated on