Configuration Guide
ZeroClaw uses a TOML-based configuration system with environment variable overrides and secure secret storage.Configuration Files
After runningzeroclaw onboard, you’ll find:
Configuration Resolution
ZeroClaw loads configuration in this order (later sources override earlier):1
Default Values
Built-in defaults from
src/config/schema.rs:default_provider:"openrouter"default_model:"anthropic/claude-sonnet-4.6"default_temperature:0.7
2
config.toml
User configuration file at
~/.zeroclaw/config.toml or path specified via --config-dir3
Environment Variables
Variables prefixed with
ZEROCLAW_ or provider-specific keys:ZEROCLAW_API_KEYorAPI_KEYZEROCLAW_PROVIDERZEROCLAW_MODELOPENROUTER_API_KEY,ANTHROPIC_API_KEY, etc.
4
CLI Flags
Command-line arguments take highest precedence:
Core Configuration
Provider Settings
config.toml
Supported Providers: anthropic, openai, openrouter, groq, mistral, deepseek, xai, fireworks, together-ai, cohere, moonshot, glm, minimax, qwen, gemini, ollama, vllm, sglang, venice, and custom OpenAI-compatible endpoints.
Multiple Provider Profiles
Define named provider configurations (Codex app-server compatible):Provider-Specific Overrides
Environment Variable Reference
Autonomy and Security
Autonomy Levels
Control tool execution approval:Autonomy Modes:
approve: Prompt user for every executionsupervised: Auto-approve safe operations (reads), prompt for risky ones (writes/deletes)auto: Full autonomy within workspace boundaries
Security Settings
Gateway Configuration
Memory Configuration
Memory Backend Comparison
Channel Configuration
Channel-specific configuration guides:
Runtime Configuration
Research Phase
Research phase runs before response generation. The agent gathers facts via tools, then uses that context to answer accurately.
Reliability Settings
Observability
Proxy Configuration
Tool Configuration
Scheduler and Cron
minute hour day_of_month month day_of_week
Hardware and Peripherals
Export and Validate Configuration
Example Complete Configuration
Next Steps
Provider Reference
Detailed guide for all supported AI providers
Channel Reference
Setup guides for Telegram, Discord, Slack, Matrix, and more
Tool Reference
Built-in tools and custom tool development
API Reference
Trait interfaces and advanced customization