Skip to content

Environment variables

Exhaustive list of environment variables recognized by arka-deck. Source of truth: .env.example at the root and effective reads at boot.


VariableDefaultDescription
ARKA_DECK_WEB_PORT3117HTTP server port
ARKA_DECK_WEB_HOST127.0.0.1 (or 0.0.0.0 if --lan)Bind address
ARKA_DECK_WEB_LAN0Enables LAN mode if 1, true or yes (priority 2, see CLI)
ARKA_DECK_LOGinfoFastify log level (fatal/error/warn/info/debug/trace/silent)
ARKA_DECK_RATE_LIMIT_MAX300Rate limit ceiling / minute

VariableDefaultDescription
ARKA_DECK_HOME~/.arka-deck/Override the global user folder

VariableDefaultDescription
ARKA_DECK_CORTEX_URLhttps://public.arkalabs.appCortex endpoint for the catalogue (read-only)
ARKA_DECK_CORTEX_MCP_URLhttps://mcp.public.arkalabs.appCortex MCP endpoint for agents
ARKA_DECK_CORTEX_RUNTIME_URL(unset, loopback fallback)Dedicated Cortex runtime endpoint
CORTEX_LITE_URL(unset, loopback fallback)Local Cortex Lite endpoint — legacy

By default, the ARKA_DECK_CORTEX_URL, ARKA_DECK_CORTEX_MCP_URL and ARKA_DECK_CORTEX_RUNTIME_URL overrides accept only:

  • Loopback (127.0.0.1, localhost) — for local Cortex Lite
  • HTTPS hosts on *.arkalabs.app

Any other host is refused. To bypass in development:

Terminal window
ARKA_DECK_CORTEX_ALLOW_UNSAFE_URL=1

This variable must never be set in production.

See ADR 0006.


VariableDescription
ARKA_DECK_NOTION_OAUTH_CLIENT_IDNotion OAuth client ID (first-party integration)
ARKA_DECK_NOTION_OAUTH_CLIENT_SECRETNotion OAuth client secret

OAuth variables are only needed if you use the Notion OAuth flow (not if you use an internal integration token).


VariableDescription
PLAYWRIGHT_BASE_URLBase URL for Playwright tests (default http://127.0.0.1:3117)

  • Put overrides in .env.local (never in a versioned .env).
  • Never commit an API key.
  • For persistent secrets, use the Settings → Providers UI rather than an environment variable (AES-256-GCM encryption).
  • Check .env.example at the root for the maintained list.