Claude Integration
Integrate Anthropic Claude models with OpenClaw. Configure Claude Sonnet, Haiku, and Claude Code for your openclaw AI agent.
Overview
Claude by Anthropic excels at coding, analysis, and long-context tasks.
Available Models
- Claude Sonnet 4 — Best for coding and complex reasoning
- Claude Haiku — Fast and cost-effective
- Claude Opus — Most capable for demanding tasks
Configuration
{
"agents": {
"default": {
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
}
}
}Environment Variables
export ANTHROPIC_API_KEY="sk-ant-..."Get API Key
- Visit console.anthropic.com
- Navigate to API Keys
- Create a new key and set as
ANTHROPIC_API_KEY
Next Steps
- Integration Overview — All supported providers
- AI Agent — Agent configuration