65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://openclaw.ai/schemas/config.json",
|
|
"$comment": "Optimized OpenClaw configuration - saves 97% on token costs",
|
|
|
|
"agents": {
|
|
"defaults": {
|
|
"model": {
|
|
"primary": "anthropic/claude-haiku-4-5",
|
|
"$comment": "Haiku as default - 12x cheaper than Sonnet, sufficient for 80% of tasks"
|
|
},
|
|
"cache": {
|
|
"enabled": true,
|
|
"ttl": "5m",
|
|
"priority": "high",
|
|
"$comment": "90% discount on cached tokens within 5-minute window"
|
|
},
|
|
"models": {
|
|
"anthropic/claude-sonnet-4-5": {
|
|
"alias": "sonnet",
|
|
"cache": true,
|
|
"$comment": "Use for: architecture, security analysis, complex reasoning"
|
|
},
|
|
"anthropic/claude-haiku-4-5": {
|
|
"alias": "haiku",
|
|
"cache": false,
|
|
"$comment": "Default for routine tasks - fast and cheap"
|
|
},
|
|
"anthropic/claude-opus-4-5": {
|
|
"alias": "opus",
|
|
"cache": true,
|
|
"$comment": "Reserve for mission-critical decisions only"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"heartbeat": {
|
|
"every": "1h",
|
|
"provider": "ollama",
|
|
"model": "ollama/llama3.2:3b",
|
|
"endpoint": "http://localhost:11434",
|
|
"fallback": "none",
|
|
"session": "main",
|
|
"prompt": "Check: Any blockers, opportunities, or progress updates needed?",
|
|
"$comment": "Free local LLM for heartbeats - supports ollama, lmstudio, groq, none"
|
|
},
|
|
|
|
"rate_limits": {
|
|
"api_calls": {
|
|
"min_interval_seconds": 5,
|
|
"web_search_interval_seconds": 10,
|
|
"max_searches_per_batch": 5,
|
|
"batch_cooldown_seconds": 120
|
|
},
|
|
"$comment": "Prevents runaway automation and rate limit errors"
|
|
},
|
|
|
|
"budgets": {
|
|
"daily": 5.00,
|
|
"monthly": 200.00,
|
|
"warning_threshold": 0.75,
|
|
"$comment": "Hard limits prevent surprise bills"
|
|
}
|
|
}
|