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

  1. Visit console.anthropic.com
  2. Navigate to API Keys
  3. Create a new key and set as ANTHROPIC_API_KEY

Next Steps