Claude Plan Setup

MARDUK Kit works with five Anthropic billing flavors. Pick the one that matches your situation.

TL;DR

You have…Use…CostBest for
Claude Pro/Max planOAuth proxy~$0 (within plan limits)Solo users, heavy chat
Anthropic API keyDirect API$3-15 per million tokensHeavy automation
BothPro/Max for chat + API for cronsBest of bothPower users (recommended)
NeitherOpenRouter or DeepSeek$0.10-3 / MtBudget-conscious
Want fully freeOllama local$0Privacy / offline

Option 1: Claude Pro/Max via OAuth proxy

If you already pay Anthropic $20/mo (Pro) or $100/mo (Max) for the chat app, you can route Marduk through that subscription with zero extra cost.

npm install -g claude-max-proxy
claude-max-proxy auth                # opens browser; log in once
claude-max-proxy start --port 3456 &

In ~/.openclaw/openclaw.json:

"env": { "OPENAI_BASE_URL_MAX": "http://localhost:3456/v1" },
"auth": { "order": { "openai": ["openai:max-proxy", "openai:default"] } }

Limits

  • Pro: ~50 msgs / 5h sustained
  • Max: ~250 msgs / 5h sustained (varies by model)

Option 2: Anthropic API direct

  1. Go to console.anthropic.com
  2. Settings → API Keys → Create Key
  3. Copy the sk-ant-api03-... value
  4. Paste into setup.sh when prompted

Pricing reference

ModelInputOutputCache read
claude-opus-4$15/Mt$75/Mt$1.50/Mt
claude-sonnet-4$3/Mt$15/Mt$0.30/Mt
claude-haiku-4$0.80/Mt$4/Mt$0.08/Mt

Option 3: Hybrid (recommended)

Most cost-effective for serious users. Pro/Max for high-frequency low-stakes work, API for Opus-tier work.

"agents": {
  "list": [
    { "id": "main",   "model": { "primary": "openai/claude-sonnet-4" } },
    { "id": "cipher", "model": { "primary": "anthropic/claude-opus-4" } },
    { "id": "atlas",  "model": { "primary": "anthropic/claude-opus-4" } },
    { "id": "scout",  "model": { "primary": "openai/claude-haiku-4" } }
  ]
}

Real cost expectations

SetupDailyMonthly
Pro alone$0$20
Max alone$0$100
API only (Sonnet default)$2-8$60-240
Pro + API split$0.50-2$35-80
OpenRouter (DeepSeek default)$0.10-1$3-30
Ollama only$0$0

Switching providers later

openclaw config set env.ANTHROPIC_API_KEY "sk-ant-api03-NEW..."
openclaw config set agents.defaults.model.primary "anthropic/claude-sonnet-4"
openclaw doctor --fix