#OAuth Problem
1 messages · Page 1 of 1 (latest)
⚠️ Agent failed before reply: No API key found for provider "anthropic". Auth store: /srv/clawdbot/state/agents/main/agent/auth-profiles.json (agentDir: /srv/clawdbot/state/agents/main/agent). Configure auth for this agent (clawdbot agents add <id>) or copy auth-profiles.json from the main agentDir.
Logs: clawdbot logs --follow
@tardy isle how to use Claude opus 4.6 with openclaw
To use Claude Opus 4.6 in OpenClaw you need (1) Anthropic auth on the gateway host, then (2) select the model.
1) Authenticate Anthropic
If you have an Anthropic API key:
- Run
openclaw onboardand choose Anthropic API key, or setANTHROPIC_API_KEY.
If you’re using a Claude subscription (no API key):
- Generate a setup-token with the Claude Code CLI:
claude setup-token - Then on the gateway host, paste it into OpenClaw:
openclaw models auth paste-token --provider anthropic
2) Switch to Opus 4.6
Quick (in chat, per-session):
/model anthropic/claude-opus-4-6
(There’s also a shortcut opus → anthropic/claude-opus-4-6, but if /model opus doesn’t work in your setup, just use the full anthropic/claude-opus-4-6.)
Persist as your default (CLI):
openclaw models set anthropic/claude-opus-4-6
Or set it in config (agents.defaults.model.primary):
{
agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },