Anthropic revoked OAuth for all third-party tools on April 4, 2026. Your agent is broken. Here's the 5-minute fix and three options for what comes next.
If you opened your OpenClaw gateway this morning and your agent isn't responding, you're not alone. Your Claude Pro or Max subscription stopped working with OpenClaw on April 4, 2026 at 12pm PT.
This isn't a bug. It's permanent. Anthropic revoked OAuth authentication for every third-party application. OpenClaw, NanoClaw, OpenCode, and every other tool that used your Claude subscription credentials lost access simultaneously. The subscription still works on Claude.ai, Claude Code, and Claude Cowork. It doesn't work anywhere else.
Here's the immediate fix, followed by three options for keeping your agent running long-term.
The 5-minute fix (get your agent working again right now)
Step 1: Go to console.anthropic.com. Create an account if you don't have one.
Step 2: Generate an API key. Copy it.
Step 3: Open your OpenClaw config. Replace your subscription OAuth token with the new API key. The field is typically ANTHROPIC_API_KEY in your .env file or the model configuration section of openclaw.json.
Step 4: Restart your gateway.
Your agent works again. Same model. Same quality. Different billing. You're now on per-token API pricing instead of your flat-rate subscription.
Anthropic offered a $200 credit to affected users. Check your email for the redemption link. That credit covers roughly 2 months of moderate Sonnet usage with optimization, or about 3 weeks without optimization.
The API key fix takes 5 minutes. The billing change takes longer to accept. Your $20/month flat-rate Claude access just became $10-150/month variable depending on how you configure your agent.

What this actually costs you now (the math nobody wants to hear)
Here's what nobody tells you about the subscription-to-API transition.
Before the ban: Claude Pro at $20/month covered unlimited API-equivalent usage through your subscription. Heavy users were getting $200+ worth of API calls for $20. Anthropic was subsidizing the difference.
After the ban: Claude Sonnet costs $3 per million input tokens and $15 per million output tokens. Claude Haiku costs $1/$5. Claude Opus costs $15/$75.
What this means for your agent:
A moderate-usage agent (50 messages/day on Sonnet) with default OpenClaw settings costs approximately $40-87/month in API fees. That's because OpenClaw sends the full conversation context with every request, including 48 daily heartbeats.
With optimization (model routing, session resets, context limits, heartbeat routing to Haiku), the same agent costs $10-20/month.
The difference between $87/month and $10/month is configuration, not usage. For the complete list of cost optimization settings, our API cost reduction guide covers how to configure each one.

Option A: Stay on Claude with API billing ($10-20/month optimized)
Who this is for: Users who prefer Claude's quality and are willing to optimize their configuration to control costs.
What to do: Use the API key from the 5-minute fix above. Then optimize:
Set your primary model to Sonnet (not Opus). Route heartbeats to Haiku ($0.29/month instead of $4.32/month on Opus). Use /new every 20-25 messages to reset the conversation buffer. Set maxContextTokens to 6,000-8,000.
Expected cost: $10-20/month for moderate usage. The $200 credit covers 10-20 months at this rate.
The trade-off: You're now managing per-token costs instead of paying flat-rate. You need to monitor your usage and optimize your configuration. The $200 credit buys time but eventually runs out.

Option B: Switch to a cheaper model provider ($0-15/month)
Who this is for: Users who care more about cost than sticking with Claude specifically.
What to do: Replace your Claude API key with a different provider's key in your OpenClaw config.
DeepSeek V3 at $0.27/$1.10 per million tokens. Moderate usage costs $5-15/month. Community consensus: roughly 90% of Claude quality for everyday agent tasks.
Gemini 2.5 Flash with 1,500 free requests/day. Personal usage costs $0/month. Quality is adequate for routine tasks but noticeably below Claude for complex reasoning.
For the ranked comparison of free and budget model alternatives, our cheapest providers guide covers five options with specific quality assessments.
The trade-off: Quality varies by task. Claude remains the community favorite for complex, nuanced work. DeepSeek and Gemini are competitive for routine tasks but fall short on multi-step reasoning and instruction following.

Option C: Use the ban as a reason to rethink the whole setup
Here's where most people get it wrong.
The Anthropic ban changed the billing. It didn't change the other problems. You're still managing Docker. Still patching CVEs (138+ in 2026). Still vetting ClawHub skills (1,400+ malicious during ClawHavoc). Still storing credentials in plaintext .env files.
If you're already reconfiguring your agent because the billing changed, it's a natural moment to ask: do I want to keep managing the infrastructure too?
If managing API keys, model routing, cost optimization, and infrastructure maintenance feels like more reconfiguration than you want, BetterClaw handles all of it. 28+ model providers from a dropdown (Claude API, DeepSeek, Gemini, OpenAI, and more). Smart context management reduces per-request token volume, which directly lowers your post-ban API costs. BYOK with zero inference markup. Free tier with 1 agent. $19/month per agent for Pro. 60-second deploy. The billing change is handled. The infrastructure is handled. You configure the agent, not the server.

Why Anthropic did this (the 30-second version)
Anthropic was losing money. Subscription users were getting API-equivalent workloads at flat-rate pricing. Boris Cherny, Head of Claude Code, explained that subscriptions weren't built for the usage patterns of third-party agent tools. The economics weren't sustainable.
Peter Steinberger (OpenClaw creator, now at OpenAI) was temporarily banned from Claude entirely on April 10. His account was reinstated hours later after the post went viral. He connected the dots publicly: Anthropic copied popular features into their own products (Claude Cowork, Claude Dispatch), then locked out the open-source tools.
The ban is permanent. Anthropic has no plans to reverse it. OAuth tokens are now restricted to Anthropic's own products. Third-party access is API-only going forward.
What to do right now (priority order)
Right now (5 minutes): Get the API key from console.anthropic.com. Swap it into your config. Restart your gateway. Agent works again.
This week: Redeem the $200 credit from Anthropic (check your email). Configure model routing and session management to keep costs under $20/month.
This month: Decide your long-term approach. Stay on Claude API with optimization. Switch to DeepSeek or Gemini for lower costs. Or move to a managed platform that handles the model switching, cost optimization, and infrastructure for you.
The ban forced a decision everyone was eventually going to make anyway. The flat-rate subsidy was never going to last. The question was always when, not if. Now you know: it was April 4, 2026 at 12pm PT.
If you want the model decision and the infrastructure decision handled by a platform instead of by your config files, give BetterClaw a try. Free tier with 1 agent and BYOK. $19/month per agent for Pro. For the complete migration guide, our migration page covers what transfers and how. 60-second deploy. 28+ providers. The ban changed the billing. We handle the rest.
Frequently Asked Questions
Why did Anthropic ban Claude subscriptions from OpenClaw?
Anthropic revoked OAuth authentication for all third-party tools on April 4, 2026 because subscription pricing wasn't sustainable for agent-level API workloads. Users paying $20/month were consuming $200+ worth of API calls. Boris Cherny (Head of Claude Code) confirmed subscriptions weren't designed for third-party tool usage patterns. The ban covers OpenClaw, NanoClaw, OpenCode, and every other external application.
Can I still use Claude with OpenClaw after the ban?
Yes. The ban only affects subscription-based OAuth tokens. You can still use Claude by creating an API key at console.anthropic.com and adding it to your OpenClaw config. Billing changes from flat-rate subscription ($20/month) to per-token API pricing ($3/$15 per million tokens for Sonnet). Anthropic offered a $200 credit to affected users.
How much does OpenClaw cost after the Anthropic ban?
With default settings on Sonnet: $40-87/month in API fees (context bloat from full conversation history sent with every request). With optimization (model routing, session resets, context limits, heartbeat routing to Haiku): $10-20/month. The $200 Anthropic credit covers 10-20 months of optimized usage. The key is optimization, not the model itself.
What's the cheapest way to run OpenClaw after the ban?
Switch to DeepSeek V3 ($0.27/$1.10 per million tokens, roughly $5-15/month for moderate use) or Gemini 2.5 Flash (1,500 free requests/day). Both work with OpenClaw by swapping the API key in your config. Quality is slightly below Claude for complex tasks but adequate for routine agent work. BetterClaw's free tier ($0/month, 1 agent, BYOK with a free model) is the cheapest option with managed hosting.
Is the Anthropic ban permanent?
All signs point to yes. Anthropic updated their terms on February 20, 2026 to explicitly prohibit OAuth in third-party tools. Enforcement followed on April 4. The direction is API billing for external tools, subscription pricing reserved for Anthropic's own products (Claude.ai, Claude Code, Cowork). Steinberger was temporarily banned from Claude entirely on April 10, suggesting aggressive enforcement. No reversal has been announced or hinted.




