Anthropic provider broken in v1.1.39, works in v1.1.37 #7877

Closed
opened 2026-02-16 18:08:33 -05:00 by yindo · 2 comments
Owner

Originally created by @altjx on GitHub (Jan 28, 2026).

Originally assigned to: @thdxr on GitHub.

Description

After updating to OpenCode v1.1.39, the Anthropic provider fails with the following error:

This credential is only authorized for use with Claude Code and cannot be used for other API requests.

Downgrading to v1.1.37 resolves the issue and Anthropic models work correctly.

Steps to reproduce

  1. Install OpenCode v1.1.39
  2. Authenticate with Anthropic (Claude Pro/Max subscription)
  3. Attempt to use any Anthropic model
  4. Observe the credential authorization error

Workaround

Downgrade to v1.1.37:

curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.37

Consider adding "autoupdate": false to your config to prevent automatic updates.

Screenshots

v1.1.39 (broken):

Image

v1.1.37 (working):

Image

Environment

  • OpenCode version (broken): 1.1.39
  • OpenCode version (working): 1.1.37
  • Operating System: macOS
  • Provider: Anthropic (Claude Pro/Max subscription)
Originally created by @altjx on GitHub (Jan 28, 2026). Originally assigned to: @thdxr on GitHub. ### Description After updating to OpenCode v1.1.39, the Anthropic provider fails with the following error: > This credential is only authorized for use with Claude Code and cannot be used for other API requests. Downgrading to v1.1.37 resolves the issue and Anthropic models work correctly. ### Steps to reproduce 1. Install OpenCode v1.1.39 2. Authenticate with Anthropic (Claude Pro/Max subscription) 3. Attempt to use any Anthropic model 4. Observe the credential authorization error ### Workaround Downgrade to v1.1.37: ```bash curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.37 ``` Consider adding `"autoupdate": false` to your config to prevent automatic updates. ### Screenshots **v1.1.39 (broken):** <img width="1846" height="649" alt="Image" src="https://github.com/user-attachments/assets/9ee97d50-3c74-4317-8309-de5c917d19c5" /> **v1.1.37 (working):** <img width="1830" height="639" alt="Image" src="https://github.com/user-attachments/assets/a46ae330-235f-4083-9882-35d9f5838375" /> ### Environment - **OpenCode version (broken):** 1.1.39 - **OpenCode version (working):** 1.1.37 - **Operating System:** macOS - **Provider:** Anthropic (Claude Pro/Max subscription)
yindo closed this issue 2026-02-16 18:08:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10982: This credential is only authorized for use with Claude Code and cannot be used for other API requests.

Both issues report the same error with v1.1.39 and mention the opencode-anthropic-auth plugin version. Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #10982: This credential is only authorized for use with Claude Code and cannot be used for other API requests. Both issues report the same error with v1.1.39 and mention the opencode-anthropic-auth plugin version. Feel free to ignore if this doesn't address your specific case.
Author
Owner

@altjx commented on GitHub (Jan 28, 2026):

Ah yeah this is truly as duplicate. Closing this out.

@altjx commented on GitHub (Jan 28, 2026): Ah yeah this is truly as duplicate. Closing this out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7877