-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When attempting to use Anthropic models (Opus/Sonnet) after authenticating with my Anthropic subscription, I receive the following error:
This credential is only authorized for use with Claude Code and cannot be used for other API requests.
📅 The issue started around 6:00 AM UTC on January 28, 2026.
I have already tried logging out and back in — the issue persists.
I found similar issues reported previously where the suggested fix was to use the plugin opencode-anthropic-auth@0.0.7/0.0.8/latest. However, this workaround no longer resolves the problem.
Plugins
None
OpenCode version
Steps to reproduce
- Log in using Anthropic Subscription credentials
- Select an Anthropic model (Opus or Sonnet)
- Run any prompt
- Error appears: "This credential is only authorized for use with Claude Code and cannot be used for other API requests."
✅ Fix in place! Should it be registered automatically or manually:
Add the following to ~/.config/opencode/opencode.json:
"plugin": ["opencode-anthropic-auth@latest"],Screenshot and/or share link
Operating System
macOS 26.2 (25C56)
Terminal
Terminal.app
pradhanaditya, tatsuya4work, taylor-shift, saschazesiger, LunVT1k and 61 moremihnearad, code-xhyun, gstohl, EfimenkoAndrew, art-shen and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working