Why Claude
OpenClaw supports many AI providers (OpenAI, Google, Groq, local models, etc.), but Claude from Anthropic is the recommended brain for your OpenClaw because:
- Strongest reasoning among current models
- Three tiers (Opus, Sonnet, Haiku) let you optimize cost vs. capability
- Large context window — can process long conversations and documents
- Tool use — Claude excels at using OpenClaw's skills and integrations
Step 1: Create an Anthropic Account
- Go to console.anthropic.com
- Sign up with your Proton Mail address
- Save this login in Bitwarden's "OpenClaw" folder
Step 2: Add Payment
- Go to Settings → Billing
- Add your Privacy.com card named "Anthropic API"
- Set the Privacy.com spending limit to $30/month to start (you can adjust later)
- Add an initial credit balance — $10–20 is fine to start
Step 3: Set a Spending Limit
This is critical. Without a limit, a runaway conversation or misconfigured cron job could rack up unexpected charges.
- Go to Settings → Limits
- Set a Monthly Spend Limit — start with $20/month
- You can always increase this later once you understand your usage patterns
Step 4: Generate an API Key
- Go to Settings → API Keys
- Click Create Key
- Name it "OpenClaw VPS"
- Copy the key — it starts with
sk-ant- - Save it in Bitwarden immediately — Anthropic only shows it once
Step 5: Connect Claude to OpenClaw
SSH into your server:
ssh claw@YOUR_SERVER_IP
The recommended way to store your API key is in an environment variable file, which keeps secrets out of your config and is harder to accidentally commit to version control:
nano ~/openclaw/.env
Add your key:
ANTHROPIC_API_KEY=sk-ant-api03-YOUR_KEY_HERE
Alternatively, you can add it directly to the config file (less secure):
nano ~/openclaw/config/default.yaml
providers:
anthropic:
apiKey: "sk-ant-api03-YOUR_KEY_HERE"
Restart OpenClaw to pick up the changes:
docker restart openclaw
Step 6: Test It
Send a message to your Telegram bot:
What model are you running on?
You should get an intelligent response from Claude. If it works — congratulations, your OpenClaw is alive and thinking.
When You're Done
- Anthropic account created
- Payment added via Privacy.com
- Monthly spending limit set ($20/month recommended to start)
- API key generated and saved in Bitwarden
- Key configured in OpenClaw (via
.envfile) - Test message gets an intelligent Claude response
Monthly Cost: ~$10–50
Depends heavily on usage. Light personal use (a few conversations a day) runs $10–20/month. Heavy use with browser skills and cron jobs can reach $50+. The spending limit protects you.