Skip to content

Config File

The user configuration file lives at ~/.snippbot/config.toml. It stores server settings and API keys that persist across sessions.

~/.snippbot/config.toml
snippbot config path

Standard TOML format:

~/.snippbot/config.toml
# Server settings
server_host = "127.0.0.1"
server_port = 18781
log_level = "info"
auto_open_browser = true
data_dir = "~/.snippbot"
# AI provider API keys
anthropic_api_key = "sk-ant-..."
openai_api_key = ""
gemini_api_key = ""
openrouter_api_key = ""
deepseek_api_key = ""
grok_api_key = ""
groq_api_key = ""
mistral_api_key = ""
# Voice / audio
elevenlabs_api_key = ""
hume_api_key = ""
# Integration keys
brave_search_api_key = ""
github_token = ""
slack_bot_token = ""
Environment variables (highest priority)
~/.snippbot/config.toml
Built-in defaults (lowest priority)

An environment variable always wins over the config file.

KeyDefaultTypeDescription
server_host"" (dual-stack)stringDaemon bind address (empty = IPv4 + IPv6)
server_port18781intDaemon API port
log_levelinfostringdebug, info, warning, error
auto_open_browsertrueboolOpen browser on daemon start
data_dir~/.snippbotstringRoot data directory
projects_dir(empty)stringProjects directory (defaults to {data_dir}/projects)
storage_dir(empty)stringCustom storage directory for uploads/assets (defaults to data_dir)
KeyDefaultDescription
anthropic_api_key(empty)Anthropic Claude API key
openai_api_key(empty)OpenAI API key
openrouter_api_key(empty)OpenRouter API key
gemini_api_key(empty)Google Gemini API key
deepseek_api_key(empty)DeepSeek API key
grok_api_key(empty)Grok / xAI API key
groq_api_key(empty)Groq API key
mistral_api_key(empty)Mistral AI API key
KeyDefaultDescription
elevenlabs_api_key(empty)ElevenLabs TTS API key
hume_api_key(empty)Hume AI voice API key
KeyDefaultDescription
brave_search_api_key(empty)Brave Search API key (for web search tool)
github_token(empty)GitHub personal access token
slack_bot_token(empty)Slack bot OAuth token (alternative to UI-based config)
Terminal window
snippbot config list # Show all values (API keys masked)
snippbot config get server_port # Get one value
snippbot config set server_port 9000 # Set a value
snippbot config delete server_port # Remove (reverts to default)
snippbot config init # Create with defaults
snippbot config init --force # Overwrite existing

If you prefer to create the file manually instead of using the CLI:

Terminal window
mkdir -p ~/.snippbot
cat > ~/.snippbot/config.toml << 'EOF'
server_port = 18781
server_host = "127.0.0.1"
anthropic_api_key = "sk-ant-your-key-here"
log_level = "info"
auto_open_browser = false
EOF