Configuration
SimpleClaw stores configuration in~/.simpleclaw/config.yaml (or ~/.openclaw/config.yaml for compatibility). The config file uses YAML format with environment variable substitution and file includes.
Config File Location
The default config path is:SIMPLECLAW_CONFIG environment variable.
Basic Structure
A minimal config file:Environment variables are expanded using
${VAR_NAME} syntax.Gateway Configuration
Thegateway section controls the WebSocket server:
Gateway mode:
local or remoteBind address:
loopback (127.0.0.1) or all (0.0.0.0)WebSocket server port
Authentication mode:
none, password, or tokenPassword for
password auth modeTailscale exposure:
off, serve (tailnet-only), or funnel (public)Example: Remote Gateway with Password Auth
Model Configuration
Themodels array defines LLM providers:
Unique identifier for this model configuration
Provider name:
anthropic, openai, google, bedrock, etc.Model identifier (provider-specific)
API key for authentication (use
${VAR} for env vars)AWS region (for Bedrock provider)
Channel Configuration
Thechannels object configures messaging platforms:
Common Channel Options
Enable or disable this channel
Bot token (for Telegram, Discord, Slack)
DM access policy:
open or pairingList of allowed user IDs or
["*"] for allRouting Configuration
Route messages to specific agents based on channel, account, or peer:Target agent ID
List of channel matchers:
<channel>, <channel>:<account>, or <channel>:<account>:<peer>Agent Configuration
Define multiple agents with isolated workspaces:Unique agent identifier
Workspace directory for this agent
Default model ID for this agent
Using the CLI
Manage configuration via the CLI:View current config
Set a value
Get a specific value
Validate config
doctor command checks for:
- Invalid configuration
- Missing API keys
- Risky DM policies
- Permission issues
- Port conflicts
Environment Variables
Common environment variables:| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key |
OPENAI_API_KEY | OpenAI API key |
TELEGRAM_BOT_TOKEN | Telegram bot token |
DISCORD_BOT_TOKEN | Discord bot token |
SLACK_BOT_TOKEN | Slack bot token |
GATEWAY_PASSWORD | Gateway password auth |
SIMPLECLAW_CONFIG | Override config file path |
File Includes
Split large configs into multiple files:channels.yaml:
Config Schema Validation
SimpleClaw validates configuration against a Zod schema. Invalid configs will fail with detailed error messages. Run validation:Next Steps
Add Channels
Connect WhatsApp, Telegram, Discord, and more
Configure Routing
Route messages to different agents
Model Setup
Configure LLM providers and failover
Security
Set up DM pairing and allowlists