Anthropic 采取法律行动对抗 OpenCode
Anthropic takes legal action against OpenCode

原始链接: https://github.com/anomalyco/opencode/pull/18186

``` 流程图 TD A[调用LLM.stream] --> B{providerID 以 'opencode' 开头?} B -- 是 --> C[添加 x-opencode-project/session/request/client headers] B -- 否 --> D[不添加额外 headers] C --> E[合并 model.headers] D --> E E --> F[合并 plugin chat.headers] F --> G[调用 streamText] 子图 "PR 之前 (移除路径)" H{providerID !== 'anthropic'?} H -- 是 --> I["添加 User-Agent: opencode/VERSION"] H -- 否 --> J[未定义 — 无 headers] 结束 样式 D 填充:#f99,边框:#c00 样式 I 填充:#9f9,边框:#090 样式 J 填充:#ccc,边框:#999 ```

## Anthropic 与 OpenCode 争议总结 Anthropic 正在采取行动,反对第三方编码工具 OpenCode 利用 Anthropic 的 Claude 模型的方式。核心问题在于 OpenCode 允许用户将其 Claude 订阅(原本用于 Claude Code 内部使用)与 OpenCode 平台结合使用。Anthropic 认为这违反了他们的服务条款,本质上是绕过了他们预期的商业模式——通过补贴 Claude Code 来促进使用。 许多评论员认为 Anthropic 正在保护一种“亏损领导者”策略,即 Claude Code 作为一种激励措施,以保持用户在其生态系统内。OpenCode 用户认为 Anthropic 具有反竞争行为,并且一些人质疑 Anthropic 给出的理由,考虑到 Claude 订阅现有的使用限制。 这一情况引发了关于 API 使用边界、服务条款以及 Anthropic 对开源项目的处理方式的争论。虽然使用标准 Claude API 与 OpenCode 结合是被允许的,但 Anthropic 正在打击在 Claude Code 预期环境之外使用 Claude Code 订阅的行为。OpenCode 正在配合 Anthropic 的要求,移除对争议认证方式的支持。
相关文章

原文
%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[LLM.stream called] --> B{providerID starts with 'opencode'?}
    B -- Yes --> C[Add x-opencode-project/session/request/client headers]
    B -- No --> D[No extra headers added]
    C --> E[Merge model.headers]
    D --> E
    E --> F[Merge plugin chat.headers]
    F --> G[streamText call]

    subgraph "Before PR (removed path)"
        H{providerID !== 'anthropic'?}
        H -- Yes --> I["Add User-Agent: opencode/VERSION"]
        H -- No --> J[undefined — no headers]
    end

    style D fill:#f99,stroke:#c00
    style I fill:#9f9,stroke:#090
    style J fill:#ccc,stroke:#999
联系我们 contact @ memedata.com