Configuration Format
OneClaw reads configuration fromconfig/default.toml in the working directory:
Configuration File Location
OneClaw looks for configuration in the following order:config/default.toml(working directory)- Built-in defaults if no file exists
Environment Variables
API keys can be provided via environment variables instead of config file:| Variable | Purpose |
|---|---|
ONECLAW_API_KEY | Global API key (fallback for all providers) |
ANTHROPIC_API_KEY | Anthropic-specific API key |
OPENAI_API_KEY | OpenAI-specific API key |
DEEPSEEK_API_KEY | DeepSeek-specific API key |
GROQ_API_KEY | Groq-specific API key |
GOOGLE_API_KEY | Google/Gemini-specific API key |
Key Resolution Order
- Per-provider key from
[provider.keys]table in TOML - Global
api_keyfield in[provider]section ONECLAW_API_KEYenvironment variable- Provider-specific environment variable (e.g.,
ANTHROPIC_API_KEY)
Configuration Sections
OneClaw configuration is organized into sections:Security ([security])
Controls deny-by-default access, pairing, and rate limiting.
See Security Configuration for details.
Provider ([provider])
LLM provider selection, model configuration, and fallback chains.
See LLM Provider Configuration for details.
Embedding ([embedding])
Optional embedding provider for vector search.
See Embedding Configuration for details.
Runtime ([runtime])
Agent name and logging level:
Memory ([memory])
Memory backend configuration (default: SQLite):
Configuration Reload
OneClaw supports runtime configuration reloading without restart:reload command checks for config file changes and reloads:
- Provider settings (model, temperature, fallback chain)
- Security settings (pairing, rate limits)
- Memory backend configuration
Minimal Configuration
OneClaw works with zero configuration. Defaults are:- Provider:
anthropicwithclaude-sonnet-4-20250514 - Security: Deny-by-default enabled, pairing required
- Memory: SQLite at
data/oneclaw.db - Channels: CLI only
ANTHROPIC_API_KEY env var or config file.
Example: Production Edge Deployment
Typical configuration for a Raspberry Pi smart home hub:Validation and Errors
OneClaw validates configuration at startup:- Unknown sections are ignored (forward compatibility)
- Missing required fields use defaults
- Invalid values (e.g., negative numbers) cause startup failure