Configuration reference¶
Every environment variable the server reads. The server prints the same list, with what is set, when it starts, and serves it at GET /api/v1/config/schema. Values containing CHANGE_ME or REPLACE_WITH count as unset. In production (ENV=production) a missing required value stops the server.
With Docker Compose these go in .env; with the Helm chart, in config.env (plain) or secrets.extra (secret).
Core¶
| Variable | Required | Default | Description |
|---|---|---|---|
ENV |
development |
Runtime environment: development (dev, local, test) or production (prod). Any other value is fatal. Production enforces JWT_SECRET, AGENT_SECRET_KEY, POSTGRES_DSN, FRONTEND_ORIGIN and MASTER_ENCRYPTION_KEY and ignores .env files. Example: production. |
|
HTTP_PORT |
8080 |
TCP port the HTTP server listens on. Example: 8080. |
|
FRONTEND_ORIGIN |
in production | http://localhost:5173 |
The only origin CORS allows for browser clients. Required in production. Example: https://app.example.com. |
POSTGRES_DSN (secret) |
in production | PostgreSQL connection string. Required in production; development falls back to a local aiops database. Use sslmode=require in production. | |
PLATFORM_EDITIONS |
Comma-separated list of active product editions. Unlisted editions have their HTTP routes completely disabled at startup. Empty value enables all editions; an unknown token is fatal. Valid tokens: core, enterprise, agent, saasops. Example: core,enterprise. |
||
DB_MAX_OPEN |
25 |
Maximum open database connections per process. Example: 50. |
|
DB_MAX_IDLE |
5 |
Maximum idle database connections kept in the pool. Example: 10. |
|
DB_STATEMENT_TIMEOUT_MS |
25000 |
Server-side statement_timeout for every pooled session (migrations are exempt). lock_timeout is 5 s and idle_in_transaction_session_timeout 60 s unless POSTGRES_DSN sets them. Example: 25000. |
|
DB_APP_ROLE |
neuroops_app |
Database role every query runs as. The server creates it (NOLOGIN, no BYPASSRLS) and grants it table rights, so row-level security keeps workspaces apart even when POSTGRES_DSN logs in as a superuser. Set - to run as the login role, which must then not be a superuser. Example: neuroops_app. |
|
TELEMETRY |
true |
Anonymous daily usage report: true sends it to TELEMETRY_URL, print logs it instead, false turns it off. Every field is listed in docs/admin/telemetry.md. Example: false. |
|
TELEMETRY_URL |
Where the daily report goes. Empty sends nothing; the admin page still shows the report. Example: https://telemetry.example.com/v1/telemetry. |
||
RETENTION_DAYS |
90 |
Self-hosted: days of alerts and notification deliveries kept per workspace (0 = forever). Alerts of open incidents are always kept. In cloud mode the plan decides. Example: 180. |
|
INCIDENT_RETENTION_DAYS |
0 |
Self-hosted: days resolved incidents (and every row about them) are kept; 0 keeps them forever. Open incidents are never removed. In cloud mode the plan decides. Example: 395. |
|
METRICS_TOKEN (secret) |
Bearer token for GET /metrics. Without it /metrics answers loopback and private addresses only, and never a request that came through a proxy (X-Forwarded-For, Forwarded, X-Real-IP or Fly-Client-IP set). | ||
OTEL_EXPORTER_OTLP_ENDPOINT |
Push the server's metrics as OTLP/HTTP JSON to this base URL (/v1/metrics is added), e.g. Grafana Cloud's OTLP gateway. Empty = no push. Example: https://otlp-gateway-prod-eu-west-2.grafana.net/otlp. |
||
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT |
Full OTLP metrics URL, used as is (wins over OTEL_EXPORTER_OTLP_ENDPOINT). Example: http://collector:4318/v1/metrics. |
||
OTEL_EXPORTER_OTLP_HEADERS (secret) |
Headers for the OTLP push, k=v pairs separated by commas, values URL-encoded. | ||
OTEL_METRIC_EXPORT_INTERVAL |
60000 |
Milliseconds between OTLP pushes (at least 1000). Example: 30000. |
|
OTEL_RESOURCE_ATTRIBUTES |
Extra resource attributes for the OTLP push, k=v pairs separated by commas. Example: deployment.environment=production,cloud.region=fra. |
||
DEMO_RESET_INTERVAL |
Public demo only: rebuild the demo workspace and empty every other one on start and at this interval (at least 10m). Needs PLATFORM_DEMO=true, DEMO_EMAIL and DEMO_PASSWORD; refused in cloud mode. Sign-up, password changes, contact methods, invites and API keys are turned off. Example: 1h. |
||
DEMO_EMAIL |
Public demo sign-in (an operator account), shown on the sign-in page. Example: demo@example.com. |
||
DEMO_PASSWORD |
Public demo password, shown on the sign-in page (at least 8 characters). Example: try-neuroops. |
||
DATABASE_URL (secret) |
Used when POSTGRES_DSN is not set: the variable Fly Managed Postgres (fly mpg attach) and other platforms set. | ||
PRODUCTION |
deprecated | Deprecated alias: PRODUCTION=true behaves like ENV=production. Example: true. |
|
DATA_REGION |
us |
Region this deployment serves: us, eu or apac. Unknown values are fatal. Example: eu. |
|
PLATFORM_DEMO |
false |
Enables the demo-only simulate endpoints. Keep off for real tenants. Example: false. |
|
AUTO_CLOSE_QUIET_PERIOD |
5m |
How long every alert of an incident must stay resolved before the incident auto-closes. Example: 10m. |
Sign-in and sessions¶
| Variable | Required | Default | Description |
|---|---|---|---|
JWT_SECRET (secret) |
in production | HMAC-SHA256 secret for signing JWT tokens. Must be 32+ random characters. In development an ephemeral secret is auto-generated (tokens reset on restart). Generate: openssl rand -base64 32 | |
SSO_ALLOW_INSECURE_IDP |
false |
Let single sign-on talk to an identity provider over plain http. Only for a local test IdP: never in production. Example: false. |
|
SSO_ALLOW_PRIVATE_IDP |
true self-hosted, false in cloud mode |
Let single sign-on reach an identity provider on a private, loopback or link-local address. Off stops a workspace admin from using the provider check to probe the server's own network. Example: true. |
|
LICENSE_KEY (secret) |
Argavon Enterprise license key. Takes precedence over LICENSE_FILE and over a key pasted in the UI. Without a key the server runs the Community edition; core features never depend on it. | ||
LICENSE_FILE |
/etc/neuroops/license.jwt |
File holding the license key, re-read every minute. Used when LICENSE_KEY is empty. Example: /etc/neuroops/license.jwt. |
|
LICENSE_SERVER_URL |
License server for online keys: a daily heartbeat (license id, active seats, version) and the vendor's revocation list. Offline keys never call it. An online key that cannot reach it for 7 days goes into grace. Example: https://license.example.com. |
||
PLATFORM_ADMIN_EMAILS |
Comma-separated email addresses of platform operators. Only these users can use the cross-tenant management plane (tenant CRUD, plans, limits, platform metrics, license). Tenant admins never can. The operator is the account that signed up with the address (and confirmed it, where sign-ups must) and so owns the workspace it created; an account with the same address that an admin, an invite, SSO or SCIM added to a workspace is not. On a self-hosted server without sign-up verification, sign up with the address before others can reach the server. Empty = nobody. Example: ops@yourcompany.com. |
||
TRUSTED_PROXY_CIDRS |
127.0.0.0/8,::1/128 |
Comma-separated CIDRs of reverse proxies whose X-Forwarded-For header is trusted for client-IP rate limiting and audit logs. Requests from any other peer have the header ignored. The default trusts only a proxy on the same host; list your real proxies (the nginx container's network, a load balancer) and nothing wider, because any client inside a listed range can claim any address. The bundled Docker Compose, Helm and Fly configs set this. Example: 172.20.0.0/16. |
|
SIGNUP_VERIFY_EMAIL |
true in cloud mode, false otherwise |
A new sign-up must open a mailed link before it can sign in; the cloud trial starts then. Needs EMAIL_PROVIDER (production refuses to start without it). Example: true. |
|
SIGNUP_ENABLED |
true |
Self-service sign-up: anyone who can reach the server can create a new workspace and becomes its admin. Set false on a private server once the first admin (and the platform operator) has signed up; people then join only by invite, SSO or SCIM. Sign-in is not affected. Example: false. |
|
GOOGLE_OAUTH_CLIENT_ID |
Google sign-in: the OAuth client id. With GOOGLE_OAUTH_CLIENT_SECRET it shows "Continue with Google" on the sign-in screen. Register 1234-abc.apps.googleusercontent.com. |
||
GOOGLE_OAUTH_CLIENT_SECRET (secret) |
Google sign-in: the OAuth client secret. | ||
GITHUB_OAUTH_CLIENT_ID |
GitHub sign-in: the OAuth app's client id. With GITHUB_OAUTH_CLIENT_SECRET it shows "Continue with GitHub". Callback URL: Ov23li.... |
||
GITHUB_OAUTH_CLIENT_SECRET (secret) |
GitHub sign-in: the OAuth app's client secret. | ||
OAUTH_PROVIDER_BASE |
Development only: send Google and GitHub sign-in to a fake provider at this URL (end-to-end tests). Refused in production. | ||
MASTER_ENCRYPTION_KEY (secret) |
in production | Key that encrypts integration secrets at rest (enc:v1 envelope). Generate: openssl rand -base64 32 |
AI (LLM)¶
| Variable | Required | Default | Description |
|---|---|---|---|
LLM_API_KEY (secret) |
API key for the LLM provider. For OpenAI: sk-proj-... For Anthropic: sk-ant-... Auto-detected from key prefix when LLM_PROVIDER is not set. Leave empty to use offline/rule-based fallback. | ||
LLM_PROVIDER |
LLM provider override. Values: 'openai' | 'anthropic' | 'local'. Auto-detected from LLM_API_KEY prefix when empty. Example: anthropic. |
||
LLM_MODEL |
gpt-4o (openai) \| claude-sonnet-4-6 (anthropic) \| llama3 (local) |
Model name to use. Defaults to a sensible model per provider. Example: gpt-4o. |
|
LLM_DATA_MODE |
cloud |
Controls data routing. 'cloud' sends to public APIs (PII is scrubbed). 'private' routes to LLM_BASE_URL only. 'offline' disables all LLM calls and uses rule-based templates. Example: private. |
|
LLM_BASE_URL |
Custom LLM endpoint for BYOC or on-prem deployments (Ollama, vLLM, LM Studio). Required when LLM_DATA_MODE=private or LLM_PROVIDER=local. Example: http://ollama:11434. |
||
LLM_DAILY_TOKEN_BUDGET |
500000 |
Estimated LLM tokens per workspace per day; 0 disables the budget. Example: 500000. |
Integrations and notifications¶
| Variable | Required | Default | Description |
|---|---|---|---|
NOTIFY_ALLOW_PRIVATE_TARGETS |
false |
Let outbound calls reach private, loopback and link-local addresses and plain http: notification webhooks (self-hosted internal receivers), and the importers, which then accept any API host instead of only the vendor's own (a self-hosted Grafana OnCall, a proxy). Leave off on shared servers. Example: true. |
|
TWILIO_ACCOUNT_SID |
Twilio account for SMS and voice paging. Unset: no phone channels. Example: AC0123456789abcdef0123456789abcdef. |
||
TWILIO_AUTH_TOKEN (secret) |
Twilio auth token. | ||
TWILIO_FROM_NUMBER |
Twilio number pages come from (E.164). Example: +14155550100. |
||
TWILIO_MESSAGING_SERVICE_SID |
Optional Twilio messaging service for SMS (instead of the from number). | ||
TWILIO_API_BASE |
Override the Twilio API base URL (tests). | ||
WATCHDOG_URL (secret) |
Ping URL of an outside dead-man's-switch check (healthchecks.io, a Better Stack heartbeat). Pinged every minute while the server can page: the database answers and no page is more than 5 minutes overdue. Otherwise |
||
TWILIO_CALLBACK_BASE |
Public address Twilio sends delivery receipts and keypresses to (the app's own address). Defaults to FRONTEND_ORIGIN when that is https. Without it, pages count as sent once Twilio accepts them and calls cannot be acknowledged with the keypad. Example: https://app.example.com. |
||
TELNYX_API_KEY (secret) |
Telnyx API key: Telnyx as the backup (or only) provider for SMS and calls. Unset: no Telnyx. | ||
TELNYX_FROM_NUMBER |
Telnyx number SMS and calls come from (E.164). Required with TELNYX_API_KEY. Example: +14155550177. |
||
TELNYX_MESSAGING_PROFILE_ID |
Optional Telnyx messaging profile for SMS. | ||
TELNYX_ACCOUNT_SID |
Your Telnyx account id (a UUID), used in the TeXML calls address. Required with TELNYX_API_KEY. | ||
TELNYX_TEXML_APP_ID |
The TeXML application that places the calls (its id). Set the application's method to POST. Required with TELNYX_API_KEY. | ||
TELNYX_PUBLIC_KEY |
Telnyx public key (base64, from the portal) that signs webhooks. Required when Telnyx has a callback address. | ||
TELNYX_API_BASE |
Override the Telnyx API base URL (tests). | ||
TELNYX_CALLBACK_BASE |
Public address Telnyx sends delivery reports and keypresses to. Defaults to TWILIO_CALLBACK_BASE. Example: https://app.example.com. |
||
PHONE_PROVIDERS |
Order the phone providers are tried in, comma-separated (twilio, telnyx). Default: every configured one, Twilio first. Only workspaces whose plan includes phone failover (Enterprise) use the second. Example: twilio,telnyx. |
||
CANARY_NUMBERS (secret) |
Delivery canary: your own phones, comma-separated in international format, each optionally labelled (label:+number). Every CANARY_EVERY the server sends each one a test SMS and a test call through the same path as real pages, and publishes what arrived at /delivery and GET /api/v1/public/delivery-record (numbers shown by their last two digits only). Needs Twilio with TWILIO_CALLBACK_BASE, or a relay with RELAY_CALLBACK_BASE. Empty: no canary. | ||
CANARY_EVERY |
6h |
How often the delivery canary sends its test SMS and call to each of CANARY_NUMBERS. At least 10m. Example: 6h. |
|
TELECOM_UNMETERED |
false |
Cloud mode only: lift the plan caps on SMS and calls (use is still counted). A self-hosted install (no STRIPE_SECRET_KEY) never caps them: it pays its own Twilio bill. Example: true. |
|
RELAY_ENABLED |
false |
Run the SMS and voice relay: send SMS and calls through this server's Twilio account for self-hosted installs that hold a relay key, metered per key and month. Needs TWILIO_ACCOUNT_SID (and TWILIO_CALLBACK_BASE for delivery reports and the keypad). Platform operators create keys under /api/v1/platform/relay-keys. Example: true. |
|
RELAY_URL |
Self-hosted installs without Twilio: address of a Argavon server that relays SMS and calls (with RELAY_KEY). Phone numbers and message text go to it only to page. Ignored when TWILIO_ACCOUNT_SID is set. Example: https://relay.example.com. |
||
RELAY_KEY (secret) |
The relay key for RELAY_URL, as shown once when the relay's operator created it (rk_ |
||
RELAY_CALLBACK_BASE |
Public address of this install that the relay sends delivery reports and keypresses to. Defaults to FRONTEND_ORIGIN when that is https. Without it, relayed pages count as sent once the relay accepts them and calls cannot be acknowledged with the keypad. Example: https://pager.example.com. |
||
VAPID_PRIVATE_KEY (secret) |
Browser push (VAPID) private key, base64url P-256 scalar. Unset: generated once and stored in the database. | ||
VAPID_SUBJECT |
Contact push services may use: mailto: or https: URL. Default: FRONTEND_ORIGIN when https, else mailto:EMAIL_FROM. Example: mailto:ops@example.com. |
||
EMAIL_PROVIDER |
Outbound email for notifications, sign-up links, digests and status-page subscribers: smtp, ses or resend. Empty disables email. Example: smtp. |
||
EMAIL_FROM |
Sender address for outbound email. Required when EMAIL_PROVIDER is set. Example: alerts@example.com. |
||
SMTP_HOST |
SMTP server (EMAIL_PROVIDER=smtp). Example: smtp.example.com. |
||
SMTP_PORT |
587 |
SMTP port. Example: 587. |
|
SMTP_USERNAME |
SMTP user (AUTH PLAIN over TLS). | ||
SMTP_PASSWORD (secret) |
SMTP password. | ||
SMTP_TLS |
starttls |
starttls (required, default), tls (implicit, default on port 465) or none (local relays only; refused with a password). Example: starttls. |
|
SES_REGION |
Amazon SES region (EMAIL_PROVIDER=ses); falls back to AWS_REGION. Example: eu-west-1. |
||
AWS_REGION |
Fallback for SES_REGION. | ||
SES_ENDPOINT |
Override the SES API endpoint (LocalStack). | ||
AWS_ACCESS_KEY_ID |
SES access key. | ||
AWS_SECRET_ACCESS_KEY (secret) |
SES secret key. | ||
RESEND_API_KEY (secret) |
Resend API key (EMAIL_PROVIDER=resend). The EMAIL_FROM domain must be verified in Resend. | ||
RESEND_API_BASE |
https://api.resend.com |
Override the Resend API address (tests). | |
AWS_SESSION_TOKEN (secret) |
SES session token (temporary credentials). |
Agent¶
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_SECRET_KEY (secret) |
in production | AES-256 encryption key protecting per-agent HMAC signing secrets at rest. Must be 32+ random characters in production. Generate: openssl rand -base64 32 | |
AGENT_INGEST_TOKEN (secret) |
deprecated | Legacy shared token for agent ingest (dev fallback only). Leave empty to enforce per-agent HMAC identity everywhere. Do not use in production. | |
AGENT_INGEST_ALLOW_UNAUTH |
false |
Development only: let agents register and ingest with no credential. Ignored in production. Example: true. |
|
VERIFICATION_SETTLE_DELAY |
5m |
How long a remediation gets to take effect before it is verified. Example: 5m. |
Analytics¶
| Variable | Required | Default | Description |
|---|---|---|---|
SRE_HOURLY_COST |
150 |
Average SRE hourly cost in USD, used for ROI calculations in the engineering health dashboard. Example: 150. |
Billing¶
| Variable | Required | Default | Description |
|---|---|---|---|
STRIPE_SECRET_KEY (secret) |
Stripe API key. Setting it turns on cloud mode: the Free, Pro and Enterprise plans, the 30-day trial for new workspaces, user, phone and AI limits, and overage metering. Without it the server is a self-hosted install with no plan limits, and checkout answers 503 (development may use mock billing with ALLOW_MOCK_BILLING=true). In production it also needs STRIPE_WEBHOOK_SECRET and STRIPE_PRICE_TEAM_MONTHLY. | ||
STRIPE_WEBHOOK_SECRET (secret) |
Signing secret for POST /api/v1/billing/stripe-webhook. | ||
STRIPE_PRICE_TEAM_MONTHLY |
Stripe price ID of Enterprise billed monthly (299 USD). Example: price_.... |
||
STRIPE_PRICE_TEAM_ANNUAL |
Stripe price ID of Enterprise billed yearly (10 × the monthly price). Without it only monthly checkout is offered. Example: price_.... |
||
STRIPE_PRICE_STARTER_MONTHLY |
Stripe price ID of Pro billed monthly (79 USD, up to 10 people). Without it Pro is not sold per month. Example: price_.... |
||
STRIPE_PRICE_STARTER_ANNUAL |
Stripe price ID of Pro billed yearly (790 USD). Without it Pro is not sold per year. Example: price_.... |
||
STRIPE_PRICE_PHONE_OVERAGE |
Metered Stripe price for SMS and calls above what a monthly Pro or Enterprise plan includes. Without it they stop at what they include (500 or 2000 a month). Example: price_.... |
||
STRIPE_PRICE_AI_OVERAGE |
Metered Stripe price for AI calls above what a monthly Pro or Enterprise plan includes. Without it they stop at what they include (200 or 1000 a month). Example: price_.... |
||
STRIPE_METER_PHONE |
Event name of the Stripe Billing Meter behind STRIPE_PRICE_PHONE_OVERAGE. Example: phone_units. |
||
STRIPE_METER_AI |
Event name of the Stripe Billing Meter behind STRIPE_PRICE_AI_OVERAGE. Example: ai_calls. |
||
STRIPE_API_BASE |
https://api.stripe.com |
Address of the Stripe API, for tests and outbound proxies. Example: https://api.stripe.com. |
|
STRIPE_PRICE_STARTER |
deprecated | Ignored: the old Starter plan became Free. Pro uses STRIPE_PRICE_STARTER_MONTHLY. Example: price_.... |
|
STRIPE_PRICE_GROWTH |
deprecated | Ignored: use STRIPE_PRICE_TEAM_MONTHLY. Example: price_.... |
|
STRIPE_PRICE_SCALE |
deprecated | Ignored: use STRIPE_PRICE_TEAM_MONTHLY. Example: price_.... |
|
ALLOW_MOCK_BILLING |
false |
Development only: grant plans without Stripe. Ignored in production. Example: true. |