OPEN_SOURCE ↗
HN · HACKER_NEWS// 23d agoNEWS
Anthropic forces OpenCode to drop Claude
OpenCode merged a PR removing Anthropic-branded prompt files, login hints, a built-in auth plugin, and an Anthropic beta header after legal requests. The move lines up with Anthropic’s clarified policy that consumer Claude OAuth tokens can’t be used in third-party tools, and the change may also have dropped a general `User-Agent` header for other providers.
// ANALYSIS
This is less a courtroom drama than a moat-defense move, and it signals that AI coding tools built on top of model vendors need escape hatches, not just feature parity.
- –Anthropic is drawing a hard line around subscription OAuth, which pushes OpenCode-style clients toward API keys or alternative providers.
- –The removal is broad, not cosmetic: prompt assets, provider enums, auth plugins, and docs all changed, so users will feel the breakage.
- –Review notes point to a possible regression in `packages/opencode/src/session/llm.ts` that strips a non-Anthropic `User-Agent` header too.
- –For developers, the practical lesson is obvious: multi-provider abstraction is now a resilience requirement, not a nice-to-have.
// TAGS
opencodeclaude-codeopen-sourceai-codingcliagent
DISCOVERED
23d ago
2026-03-19
PUBLISHED
23d ago
2026-03-19
RELEVANCE
8/ 10
AUTHOR
_squared_