Skip to content

config

Terminal window
snippbot config list # Show all config values
snippbot config get <key> # Get one value
snippbot config set <key> <value> # Set a value
snippbot config delete <key> # Remove (revert to default)
snippbot config path # Show config file path
snippbot config init # Create config file with defaults

Configuration is stored in ~/.snippbot/config.toml. Values can also be set via environment variables — see Configuration: Priority.


Show all configuration values.

Terminal window
snippbot config list

Displays a table with each key, its current value (API keys are masked), and source (config or default).


Get a specific configuration value.

Terminal window
snippbot config get server_port
snippbot config get anthropic_api_key # Shows masked value

Set a configuration value in ~/.snippbot/config.toml.

Terminal window
snippbot config set server_port 9000
snippbot config set anthropic_api_key sk-ant-...
snippbot config set auto_open_browser false

Values are automatically type-coerced:

  • true / false → boolean
  • Numeric strings → integer
  • Everything else → string

Remove a key from the config file. The key reverts to its default value.

Terminal window
snippbot config delete server_port

Print the config file path.

~/.snippbot/config.toml
snippbot config path

Create a config file populated with default values.

Terminal window
snippbot config init # Create if missing
snippbot config init --force # Overwrite existing

KeyDefaultDescription
server_host"" (dual-stack)Daemon bind address (empty = IPv4 + IPv6)
server_port18781Daemon API port
data_dir~/.snippbotData directory
projects_dir(empty)Projects directory (uses data_dir/projects)
storage_dir(empty)Custom storage directory for uploads/assets (uses data_dir when empty)
log_levelinfoLogging level: debug, info, warning, error
auto_open_browsertrueOpen browser on daemon start
anthropic_api_key(empty)Anthropic 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 API key
groq_api_key(empty)Groq API key
mistral_api_key(empty)Mistral API key
elevenlabs_api_key(empty)ElevenLabs TTS API key
hume_api_key(empty)Hume AI voice API key
brave_search_api_key(empty)Brave Search API key
github_token(empty)GitHub personal access token
slack_bot_token(empty)Slack bot token

For the full environment variable reference, see Configuration: Environment Variables.