Skip to content

Environment Variables

Environment variables override values in ~/.snippbot/config.toml. Set them in your shell profile or before running snippbot start:

Terminal window
export ANTHROPIC_API_KEY=sk-ant-xxx
export SNIPPBOT_PORT=18781
snippbot start

Or inline:

Terminal window
ANTHROPIC_API_KEY=sk-ant-xxx snippbot start

VariableDefaultDescription
SNIPPBOT_HOST"" (dual-stack)Daemon bind address (empty = IPv4 + IPv6)
SNIPPBOT_PORT18781Daemon API port
SNIPPBOT_LOG_LEVELinfoLog level: debug, info, warning, error
SNIPPBOT_DATA_DIR~/.snippbotData directory path
SNIPPBOT_PROJECTS_DIR(empty)Projects directory (defaults to {data_dir}/projects)
VariableDefaultDescription
SNIPPBOT_API_KEY_REQUIREDtrueRequire auth for all endpoints
SNIPPBOT_CORS_ORIGINShttp://localhost:5173Allowed CORS origins (comma-separated)
SNIPPBOT_SESSION_EXPIRY86400Session token expiry in seconds (24h)
SNIPPBOT_INACTIVITY_TIMEOUT1800Inactivity logout timeout in seconds (30m)
VariableDescription
ANTHROPIC_API_KEYAnthropic API key
OPENAI_API_KEYOpenAI API key
OPENROUTER_API_KEYOpenRouter API key
GEMINI_API_KEYGoogle Gemini API key
DEEPSEEK_API_KEYDeepSeek API key
GROK_API_KEYGrok API key
GROQ_API_KEYGroq API key
MISTRAL_API_KEYMistral API key
VariableDescription
ELEVENLABS_API_KEYElevenLabs TTS API key
HUME_API_KEYHume AI voice API key
WHISPER_MODELLocal Whisper STT model (e.g., base, small, medium)
VariableDescription
BRAVE_SEARCH_API_KEYBrave Search API key
GITHUB_TOKENGitHub personal access token
SLACK_BOT_TOKENSlack bot token
VariableDefaultDescription
SNIPPBOT_MAX_CONCURRENT_TASKS4Maximum concurrent task executions
SNIPPBOT_DEFAULT_TIMEOUT300Default task timeout in seconds

The code-execution sandbox is not configured with environment variables. Its mode, network policy, workspace access, resources, and runtime preference are set through the Sandbox settings page (or PUT /api/sandbox/config) and persisted to ~/.snippbot/sandbox_config.json. See Run Code in Sandbox.

The only sandbox-related environment variables the code reads are consumed by the claude-native tool bridge (a separate out-of-process helper), not the main daemon sandbox:

VariableDefaultDescription
SNIPPBOT_SANDBOX_MODEallSandbox mode used by the claude-native Bash bridge (off, selective, all)
SNIPPBOT_SANDBOX_RISK_THRESHOLD0.5Risk threshold used by the claude-native Bash bridge
SNIPPBOT_CONTAIN_CUSTOM_PYTHON(unset)Overrides + locks the contain_custom_python sandbox setting when set (1/0); when unset, the UI toggle applies. On ⇒ installed custom_python tools run contained under Safe/Strict; off ⇒ blocked
SNIPPBOT_STRICT_DAEMON_LOOPBACK(unset)Overrides + locks the strict_daemon_loopback sandbox setting when set. On ⇒ a Strict-contained tool may reach the local daemon over an egress-blocked network (Linux; full isolation on Docker Desktop)
VariableDefaultDescription
SNIPPBOT_BROWSER_HEADLESStrueRun browser in headless mode
SNIPPBOT_BROWSER_STEALTHtrueEnable stealth mode (bot detection evasion)