Skip to main content

Environment variables

Agent-layer config lives in vanta-ts/.env (gitignored; .env.example documents the keys). Kernel variables are passed at launch. This is a reference of the most-used keys — see .env.example for the complete, current list.

Provider & model

VariablePurpose
VANTA_PROVIDERopenai · ollama · anthropic · gemini · openrouter
VANTA_MODELModel id for the provider
VANTA_EFFORT_LEVELlow · medium · high · max
OPENAI_API_KEY / ANTHROPIC_API_KEYProvider keys
VANTA_OLLAMA_URLLocal Ollama endpoint
VANTA_MODEL_CHEAP / VANTA_MODEL_EXPENSIVETask-routed models (unset = no routing)
VANTA_VISION_MODEL / VANTA_VISION_PROVIDERAuxiliary vision routing

Kernel & scope

VariablePurpose
VANTA_KERNEL_URLKernel address (default 127.0.0.1:7788)
VANTA_ROOTOverrides the kernel's working-dir scope
VANTA_MAX_ITERMax tool iterations per turn
VANTA_HOMEGlobal store dir (default ~/.vanta)
VANTA_WRITABLE_DIRS / VANTA_READABLE_DIRSOut-of-repo write/read zones

Search & web

VariablePurpose
VANTA_SEARCH_PROVIDERauto (default) · managed providers · brave_browser · bing; DDG variants are explicit legacy options
VANTA_SEARCH_URLSelf-hosted Searxng
SERPAPI_KEY / BRAVE_KEYSearch API keys
VANTA_ALLOWED_DOMAINSBrowser-tool domain allowlist
VANTA_BROWSER_EXECUTABLEOptional Chrome/Brave/Edge/Chromium executable override; system installs are auto-detected when Playwright's bundle is absent
VANTA_EMBED_MODELLocal embedding model (life-search semantic)

Continuity & behavior

VariablePurpose
VANTA_RESUME_MAX_AGE_MINResume age gate (default 120; 0 = always clean)
VANTA_GOAL_RESUMEauto resumes carried goals on launch
VANTA_AUTOHANDOFF_THRESHOLDContext-fill trigger for auto-handoff (0.75)
VANTA_SESSION_MEMORYSession-memory distiller
VANTA_TOOL_RETRIESSafe-read retry count
VANTA_INHIBIT_THRESHOLD · VANTA_SETSHIFT_THRESHOLD · VANTA_STALL_THRESHOLDExecutive-function gate thresholds
VANTA_TOOL_SCOPE0 exposes the full tool catalog
VANTA_TUIv2 selects the mission-control shell
VANTA_SPINNERBusy animation

Security & self-improvement

VariablePurpose
VANTA_SANDBOX1 wraps shell_cmd / run_code in OS-level isolation
VANTA_SANDBOX_NET1 allows outbound network inside the sandbox
VANTA_AUTONOMY_LEVELFactory autonomy 1–5 (default 4 = commit + push)
VANTA_FACTORY_DISABLEDKill switch for the self-improvement factory
VANTA_AUTONOMY_ALLOW_MERGE / VANTA_FACTORY_MERGE_TARGETGate + target for L5 merges
VANTA_CRITIC1 enables the independent post-turn critic
VANTA_LINT_BLOCK0 downgrades the pre-commit size gate to warn-only
VANTA_SELF_IMPROVE / VANTA_BRAIN_LEARNCapture skills / distil memories post-turn

Comms & gateway

VariablePurpose
VANTA_GOOGLE_CLIENT_ID / _SECRETGoogle OAuth client
VANTA_TELEGRAM_TOKENTelegram bot
VANTA_WEBHOOK_PORT / _SECRET / _PROMPT / _DELIVERWebhook listener

Local .env defaults to Ollama qwen2.5:14b (no key, offline). Secrets are never logged; .env is gitignored.