Kroos Developers
Kroos Developers › Self-hosting & configuration

Configuration reference

Every environment variable you can set on a self-hosted Kroos deployment, grouped by area, with defaults.

Kroos reads configuration from environment variables (or a .env file next to the app). Every provider is optional: without a key, Kroos uses its built-in behavior and reports the integration as placeholder in GET /api/status.

Warning

Treat every *_KEY, *_SECRET and *_TOKEN value as a secret. Use your secrets manager in production.

Core#

VariableDefaultMeaning
NODE_ENV—Set production in production (stricter checks, no development shortcuts)
PORT8787Website and API port
KROOS_API_PORT8788AI host port
KROOS_ROLEallall (everything in one process), or one independent service: web (website, accounts, console, organization and admin APIs), api (the AI host) or docs (developer docs and help center, no database)
KROOS_RELEASEdevRelease identifier reported by /healthz (set by the deploy pipeline)
KROOS_DOCS_CHATBOT_KEY—Publishable key for the chatbot on the docs sites when they run as their own service (otherwise fetched from the website)
PUBLIC_BASE_URLhttp://localhost:8787The website host's public address
KROOS_API_BASE_URLderivedThe AI host's public address
KROOS_API_ORIGIN_HOST—Extra host name(s) the AI host accepts, comma-separated: the origin name your CDN sends (e.g. api-origin.example.com)
KROOS_DEV_DOCS_URL<PUBLIC_BASE_URL>/developersAddress of the developer docs (e.g. https://dev.kroos.ai)
KROOS_HELP_URL<PUBLIC_BASE_URL>/helpAddress of the help center (e.g. https://help.kroos.ai)
KROOS_MODEcloudcloud or node (Kroos Node)
DATA_DIR./data/runtimeWhere the built-in database and files live
KROOS_SIGNING_SECRETdev valueSigns sessions, links and capsules. Set a long random value.
KROOS_API_TOKEN_SECRETderivedSigns short-lived AI access tokens
KROOS_ADMIN_KEY—Operator key for /api/admin/* and /api/ops/*. Required in production
KROOS_PROXY_HOPS0Trusted proxies in front (e.g. 2 for CDN + load balancer); controls client-IP detection
KROOS_REQUIRE_SIGNINonoff lets anonymous people start chats (local demos only)
KROOS_BETA_GATEon in production, off elsewhereon: Kroos chat needs approved beta access (staff approve requests in the admin app)
KROOS_SESSION_DAYS30Account session lifetime
KROOS_MARKETSUSDefault markets for regional advice and providers (comma-separated country codes)
KROOS_JOBSonoff disables background jobs (retention, re-verification, webhooks) on this instance
KROOS_CNAME_TARGETverify.kroos.aiCNAME target for domain verification
KROOS_ORG_SEAT_USD15Monthly price of one organization seat (members invited in the Console; owners don't use one)

Database#

VariableDefaultMeaning
KROOS_DBsqlitesqlite or postgres
KROOS_DB_PATH<DATA_DIR>/kroos.sqliteSQLite file
DATABASE_URL—PostgreSQL connection string
KROOS_DB_SECRET_REF—Or: a managed secret holding the connection details
KROOS_DB_PROXY_HOST—Connection proxy host (overrides the secret's host)
KROOS_DB_SSLtrueTLS to PostgreSQL
KROOS_DB_CA_PATH—CA bundle for verified TLS
KROOS_RATE_STOREmemorydb shares rate limits across instances

Sign-in#

VariableMeaning
KROOS_AUTHlocal (username and password, default) or cognito
AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRETTurn on "Continue with Google / Apple / Microsoft" through Auth0
AUTH0_CONNECTIONSWhich social connections to show
COGNITO_USER_POOL_ID, COGNITO_CLIENT_ID, COGNITO_DOMAINAmazon Cognito Hosted UI

AI providers#

VariableDefaultMeaning
KROOS_EXTERNAL_AIassist (cloud), off (Node)off: no third-party AI. assist: used where it adds value. always: used on every answer
KROOS_LLM_PROVIDERanthropicanthropic or bedrock
ANTHROPIC_API_KEY—Claude
KROOS_MODEL_LITE, KROOS_MODEL_STANDARD, KROOS_MODEL_PROClaude Haiku / Sonnet / OpusModels behind the three capacity tiers
KROOS_ANTHROPIC_ZDRfalseSet true if your Anthropic account has zero data retention (needed when a policy requires it)
KROOS_BEDROCK_REGION, KROOS_BEDROCK_MODEL_LITE, KROOS_BEDROCK_MODEL_STANDARD, KROOS_BEDROCK_MODEL_PRO—Claude on Amazon Bedrock. Calls go through the Bedrock Mantle (Messages API) endpoint, so IDs use the anthropic. prefix, e.g. anthropic.claude-sonnet-5-5. Other Bedrock models (e.g. Amazon Nova, us.amazon.nova-2-lite-v1:0) work too, through the Converse API
KROOS_CONVERSE_MAX_TOKENS10000Output cap for non-Claude Bedrock models
KROOS_NOVA_GROUNDINGonLive web search with sources for Amazon Nova 2 answers (US inference profiles); off disables it
OPENAI_API_KEY, KROOS_OPENAI_MODEL_LITE, KROOS_OPENAI_MODEL_STANDARD, KROOS_OPENAI_MODEL_PRO—OpenAI (failover, AI visibility, benchmarks)
KROOS_OPENAI_MODEL_SEARCHgpt-5-miniOpenAI model for web-grounded AI visibility checks
GEMINI_API_KEY, KROOS_GEMINI_MODEL_LITE, KROOS_GEMINI_MODEL_STANDARD, KROOS_GEMINI_MODEL_PRO—Google Gemini
PERPLEXITY_API_KEY, KROOS_PERPLEXITY_MODELsonarPerplexity (AI visibility)

An organization's access policy can further restrict which providers may process its data.

Any subset; results from every configured provider are combined.

VariableProvider
BRAVE_SEARCH_API_KEYBrave Search
TAVILY_API_KEYTavily
EXA_API_KEYExa
SERPER_API_KEYSerper (Google results)
SEARXNG_URLA self-hosted SearXNG instance
KROOS_NOVA_GROUNDINGOn Bedrock, Amazon Nova web grounding is used by default; off disables it (each grounded call is billed)
KROOS_GROUNDING_MODELModel for Nova web grounding (default us.amazon.nova-2-lite-v1:0)

Retrieval#

VariableMeaning
VOYAGE_API_KEY, KROOS_VOYAGE_EMBED_MODELVoyage embeddings
COHERE_API_KEY, KROOS_COHERE_EMBED_MODELCohere embeddings
KROOS_BEDROCK_EMBED_MODELAmazon Titan embeddings on Bedrock
KROOS_BEDROCK_EMBED_RPMTitan calls per minute per server (default 20; the account quota is shared by every task)
KROOS_EMBED_INLINE_MAXMost texts a request embeds inline (default 8); larger backlogs fill in the background
CLOUDFLARE_RADAR_TOKENCloudflare Radar popularity data for market intelligence
PAGESPEED_API_KEYHigher Google PageSpeed limits for market intelligence
SIMILARWEB_API_KEYLicensed traffic estimates (visits, channels, countries)
SEMRUSH_API_KEYLicensed organic search traffic and keywords
DATAFORSEO_LOGIN, DATAFORSEO_PASSWORDLicensed organic search traffic estimates
KROOS_TRANCO, KROOS_PAGESPEED, KROOS_WAYBACKSet to off to disable a free public source
KROOS_RERANK_MODELOptional answer-ranking provider (Cohere or Voyage)
KROOS_RENDERER_URL, KROOS_RENDERER_TOKENHeadless renderer for JavaScript-heavy sites

Voice#

VariableMeaning
ELEVENLABS_API_KEY, ELEVENLABS_AGENT_IDVoice provider
ELEVENLABS_SERVER_LOCATIONProvider region (default us)
ELEVENLABS_WEBHOOK_SECRETVerifies post-call webhooks
ELEVENLABS_ZRM_API_KEYZero-retention workspace for sensitive organizations
KROOS_VOICE_BRAIN_SECRETShared secret for the voice brain endpoint
KROOS_VOICE_POOLConcurrent voice sessions your provider plan allows (default 6)

Code Advisor and Explorer#

VariableMeaning
KROOS_ADVISOR_URLWhere local tools send confirmed fingerprints
ORDERS_DB_ROUA_URL (any name)Example of a vault reference target for the Explorer (env:ORDERS_DB_ROUA_URL)

Email, handoff and alerts#

VariableMeaning
HANDOFF_WEBHOOK_URLDefault webhook for handoffs
KROOS_SES_FROMSender address for email (Amazon SES)
KROOS_OPS_EMAILWhere operational alerts go

Cloud (AWS)#

VariableMeaning
KROOS_CLOUDaws to turn on AWS services
AWS_REGIONRegion (credentials come from the task role, never from variables)
KROOS_KMS_KEY_ID, KROOS_MASTER_KEY_CIPHERTEXTEnvelope encryption of secrets
KROOS_S3_BUCKETData bucket
KROOS_PROVIDER_SECRET_REFSecret holding provider keys, loaded at boot
KROOS_AWS_TRANSLATE, KROOS_AWS_COMPREHEND, KROOS_AWS_POLLYTurn individual AWS services on or off

Observability and limits#

VariableMeaning
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAMEOpenTelemetry trace export
KROOS_API_MAX_IN_FLIGHTConcurrent AI requests per IP (default 12)
KROOS_API_MAX_CONNECTIONSAI host connection cap (default 2000)

Health checks#

Every service answers GET /healthz with 200: JSON ({ "ok": true, "service": "...", "version": "..." }) on the website and docs services, plain ok on the AI host. Add ?deep=1 on the website to also check the database.

Checking your configuration#

bash
curl -s https://kroos.ai/api/status | jq .integrations

Each integration reports live or placeholder.

Last updated 2026-12-03