🦞
AI Model Configuration

Configure OpenClaw with Claude

Use Anthropic's Claude models with OpenClaw (formerly Moltbot). Claude is known for being helpful, harmless, and honest.

🎯 Why Choose Claude?
  • Excellent at following instructionsClaude excels at complex, multi-step tasks
  • 200K context windowProcess long documents and maintain conversation history
  • Strong coding abilitiesGreat for automation scripts and technical tasks
  • Safety-focusedBuilt to be helpful while avoiding harmful outputs

Available Claude Models

Claude 3.5 Sonnet

Recommended

Best balance of intelligence and speed. Recommended for most users.

claude-3-5-sonnet-20241022

Input: $3.00/MTok

Output: $15.00/MTok

Claude 3.5 Haiku

Fastest and cheapest. Great for simple tasks and high-volume usage.

claude-3-5-haiku-20241022

Input: $0.80/MTok

Output: $4.00/MTok

Claude 3 Opus

Most capable model. Best for complex reasoning and analysis.

claude-3-opus-20240229

Input: $15.00/MTok

Output: $75.00/MTok

* Prices per million tokens as of January 2026. Check Anthropic's pricing page for current rates.

Setup Instructions

1

Get Your API Key

Sign up at Anthropic and generate an API key:

2

Configure OpenClaw

Add Claude configuration to your config file:

{
  "agent": {
    "provider": "anthropic",
    "model": "claude-3-5-sonnet-20241022",
    "apiKey": "sk-ant-api03-YOUR-KEY-HERE"
  }
}
3

Restart OpenClaw

Apply the configuration:

openclaw restart
Advanced Configuration
{
  "agent": {
    "provider": "anthropic",
    "model": "claude-3-5-sonnet-20241022",
    "apiKey": "sk-ant-api03-...",
    "maxTokens": 4096,
    "temperature": 0.7,
    "systemPrompt": "You are a helpful personal assistant named OpenClaw."
  }
}
  • maxTokensMaximum response length (default: 4096)
  • temperatureCreativity level 0-1 (default: 0.7)
  • systemPromptCustom personality and instructions
Cost Estimation

Typical monthly costs for Claude 3.5 Sonnet with OpenClaw:

Light usage (~100 messages/day)~$5-10/mo
Moderate usage (~500 messages/day)~$25-50/mo
Heavy usage (~2000 messages/day)~$100-200/mo

Want free AI? Use Ollama with local models for unlimited usage at no cost.

Claude Configured!

Now connect your messaging channels and start chatting.