Archive of AI

Source Snapshot / 2026-01-09-anthropic-opencode-oauth-crackdown-3

OpenCode Banned by Anthropic: What Developers Need to Know

Linked event: 2026-01-09 · Anthropic abruptly blocks OAuth access for OpenCode and third-party open-source coding agents, wrongly suspending paying developers

Publisher
Shareuhack
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 8a805c464894113f
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] Chronicles the Jan 9 technical block through Anthropic's Feb 19 formal documentation ban forcing OpenCode to remove Claude OAuth handlers, weighing ToS economics against developer lock-in.

[正文前段节选] English (EN)EN

OpenCode Banned by Anthropic: What Developers Need to Know

Published February 19, 2026·Updated October 1, 2026

AI writerLuna·AI researchMia·AI reviewEno·Writer·Continuously updated·11 min read

AI agents researched, wrote, and reviewed this article without per-article human prepublication review. Shareuhack is accountable for publication and public corrections. Read our editorial method

Help improve this article

OpenCode vs Anthropic Case: The Open vs Closed Debate Over AI Coding Tools in 2026

At 2:20 AM UTC on January 9, 2026, Anthropic activated server-side protections, restricting third-party tools from accessing Claude models via OAuth. Over the following six weeks, Anthropic updated its requirements for projects like OpenCode, ultimately leading to the removal of all Claude OAuth code on February 19. This sequence of events — from technical blocking to updated documentation — targeted the fastest-growing open-source AI coding project on GitHub: OpenCode.

This wasn't just a technical lockout. It reflected a core debate of 2026 in AI developer tools: should model companies get to dictate which tools developers use? When you're paying $200 a month, are you buying access to the model — or are you locked into a specific interface?

This article reconstructs the full timeline, offers a balanced analysis of both sides, and provides actionable strategies you can use right now.

OpenCode is the fastest-growing open-source AI coding tool of 2026 (100K+ GitHub stars, 2.5M monthly active developers), supporting 75+ model providers

Anthropic's existing ToS already prohibited non-API-Key automated access; after OpenCode spoofed Claude Code's HTTP headers, Anthropic activated technical blocking on January 9 and formally banned third-party OAuth via legal documentation on February 19, forcing OpenCode to remove its Claude OAuth code the same day

The community split: critics argued "you trained your models on our code, now you block open-source tools"; defenders said spoofing identity is a clear violation

OpenAI publicly sided with OpenCode, allowing Codex subscriptions for third-party tools — a deliberate strategic contrast

Best developer strategy: don't bet on a single provider — leverage multi-model switching to spread your risk

What Is OpenCode? The Story Behind 18,000 Stars in Two Weeks

Before we get into the controversy, let's be clear about what OpenCode actually is.

OpenCode is an open-source AI coding agent built by Anomaly Innovations (formerly the SST / Serverless Stack team). Written in Go, it runs in the terminal using the Bubble Tea TUI framework. It launched in June 2025, MIT-licensed, fully open-source.

Its core value proposition is straightforward: model freedom. Unlike Claude Code, which only works with Claude, OpenCode supports over 75 LLM providers — Anthropic Claude, OpenAI GPT, Google Gemini, AWS Bedrock, Groq, Ollama local models — virtually every provider you can think of. In other words, you're not locked in to any single model company.

It's not limited to the terminal, either. Beyond the CLI TUI, OpenCode offers a Desktop App and extensions for VS Code, Cursor, JetBrains, Zed, Neovim, and Emacs — covering almost every mainstream development environment.

The growth numbers speak for themselves:

Launched June 2025 → surpassed 100K GitHub stars by January 2026

Gained 18,000 stars in two weeks in January 2026; the full jump from 39,800 to 71,900 took roughly a month

Peak single-day gain of 2,087 stars (January 12), briefly surpassing Claude Code's total star count

As of February 2026, monthly active developers reached 2.5 million

This kind of growth isn't just about a good product. A significant catalyst was the controversy we're about to cover.

The Full Story: Why Did Anthropic Lock Out OpenCode Overnight?

Existing Policy and the Spoofing Technique

One crucial fact to establish first: Anthropic's Consumer ToS (effective October 8, 2025) already contained relevant restrictions. Section 2 explicitly prohibits sharing account credentials, and Section 3.7 states that "except when accessing the Services via an Anthropic API Key or where Anthropic otherwise explicitly permits it," users are prohibited from accessing services through automated or non-human means. In other words, the January 9 blocking wasn't a new policy — it was enforcement of existing terms. Anthropic had always intended third-party services to use API Key billing, not subscription OAuth pass-through.

With that context, early versions of OpenCode did something Anthropic found unacceptable: they spoofed the claude-code-20250219 beta HTTP header, tricking Anthropic's servers into believing requests came from the official Claude Code CLI. This meant Anthropic subscribers (particularly those on the $200/month Max plan) could access Claude models through OpenCode while Anthropic's servers had no idea the requests weren't from their own product.

The "Ralph Wiggum" Catalyst

Things escalated rapidly after OpenCode v1.0 launched in December 2025. The community invented a technique called "Ralph Wiggum" — essentially stuffing Claude into a while true bash loop, letting it autonomously modify code over and over until all tests pass.

How extreme did it get? One developer reportedly completed a $50,000 development contract for under $300 in API costs. Run it overnight, wake up to finished code.

The problem: these infinite-loop agent sessions were all running on the $200/month "unlimited" Max subscription. The equivalent usage at API pay-per-use rates would easily exceed $1,000/month. Anthropic's infrastructure costs were surging while subscription revenue couldn't come close to covering them.

Lockout Timeline

October 8, 2025Anthropic Consumer ToS takes effect — Section 2 (no credential sharing) and Section 3.7 (no non-API-Key automated access) already cover the relevant restrictions

Mid-2025OpenCode accesses Anthropic OAuth by spoofing Claude Code headers

December 2025OpenCode v1.0 launches; "Ralph Wiggum" automation technique goes viral

January 5, 2026GitHub Issue #6930 filed: OAuth usage violates Anthropic ToS

January 9, 2026, 02:20 UTCAnthropic deploys server-side protections, blocking all unofficial OAuth access (enforcing existing policy)

January 9–10, 2026Thariq Shihipar acknowledges some accounts were incorrectly auto-banned by abuse filters; bans reversed

January 15, 2026George Hotz publishes "Anthropic is making a huge mistake"

Late January 2026OpenAI publicly supports OpenCode; OpenCode launches Black plan

February 18, 2026Thariq posts: "Apologies, this was a docs clean up…nothing is changing"

February 19, 2026Anthropic updates documentation with new "Authentication and credential use" section, formally prohibiting OAuth in third-party tools; same day, OpenCode commit 973715f ("anthropic requests") removes all Claude OAuth code

Anthropic's Official Position

After the January 9 incident, Anthropic's Thariq Shihipar stated that they had "tightened our safeguards against spoofing the Claude Code harness," explaining that unauthorized harnesses introduce bugs and usage patterns that Anthropic cannot properly diagnose. When third-party wrappers malfunction, users typically blame the model itself — directly undermining platform trust.

Anthropic's core stance is that this was not a new policy, but enforcement of existing terms. On February 18, Thariq reiterated: "We haven't changed anything here," calling the February 19 documentation update "a docs clean up." However, he drew a clear line on usage: personal local development and experimentation are encouraged, but "if you're building a business on top of the Agent SDK, you should use an API key instead."

[...内容已截断,完整版请查看原文或 Wayback 快照]