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
VariableDefaultDescription
SNIPPBOT_SANDBOX_BACKENDautodocker, podman, process, or auto
SNIPPBOT_SANDBOX_NETWORKnoneDefault container network mode
SNIPPBOT_SANDBOX_MEMORY_MB512Default container memory limit
VariableDefaultDescription
SNIPPBOT_BROWSER_HEADLESStrueRun browser in headless mode
SNIPPBOT_BROWSER_STEALTHtrueEnable stealth mode (bot detection evasion)