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

Open
opened 2026-02-16 18:08:24 -05:00 by yindo · 14 comments
Owner

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

Originally assigned to: @rekram1-node on GitHub.

Description

I think the new opencode-anthropic-auth@0.0.13 version is broken, so I reverted to an older version.

Plugins

No response

OpenCode version

v1.1.39

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

ubuntu 24.04

Terminal

No response

Originally created by @OdayTarek on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I think the new opencode-anthropic-auth@0.0.13 version is broken, so I reverted to an older version. ### Plugins _No response_ ### OpenCode version v1.1.39 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="1376" height="73" alt="Image" src="https://github.com/user-attachments/assets/e36e33f3-1c07-4950-914f-f1d9d8d0f617" /> ### Operating System ubuntu 24.04 ### Terminal _No response_
yindo added the bug label 2026-02-16 18:08:24 -05:00
Author
Owner

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

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

  • #10936: This credential is only authorized for use with Claude Code
  • #10937: Anthropic Subscription Key not working anymore
  • #7456: fix: Claude Code API credentials
  • #7471: Claude Subscription is not working anymopre

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #10936: This credential is only authorized for use with Claude Code - #10937: Anthropic Subscription Key not working anymore - #7456: fix: Claude Code API credentials - #7471: Claude Subscription is not working anymopre Feel free to ignore if none of these address your specific case.
Author
Owner

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

Actually 1.1.39 uses .12 as opencode wasn't released yet with .13. I think that .13 might actually fix current issues as mentioned in #10937

@furai commented on GitHub (Jan 28, 2026): Actually 1.1.39 uses .12 as opencode wasn't released yet with .13. I think that .13 might actually fix current issues as mentioned in #10937
Author
Owner

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

I just started getting it too.

@nukeop commented on GitHub (Jan 28, 2026): I just started getting it too.
Author
Owner

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

Image
@OdayTarek commented on GitHub (Jan 28, 2026): <img width="949" height="365" alt="Image" src="https://github.com/user-attachments/assets/39174e79-ba8c-4b94-9ae8-1f5697374aa2" />
Author
Owner

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

"plugin": [
        "opencode-anthropic-auth@latest"
]

Works, here's a copy-pastable version

@nukeop commented on GitHub (Jan 28, 2026): ```json "plugin": [ "opencode-anthropic-auth@latest" ] ``` Works, here's a copy-pastable version
Author
Owner

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

Workaround confirmed working

Added mode override in opencode.json to bypass the pattern matching:

"mode": {
  "build": {
    "prompt": "You are Claude Code, Anthropic's official CLI for Claude."
  },
  "plan": {
    "prompt": "You are Claude Code, Anthropic's official CLI for Claude."
  }
}

Tested with: Anthropic Max Subscription + claude-opus-4-5 and claude-sonnet-4-5

This replaces the system prompt identifier that Anthropic is blocking. Works as of 2026-01-28.

Copy-paste ready: See commit with full opencode.json

Reference: https://github.com/anomalyco/opencode-anthropic-auth/issues/17#issuecomment-3752059576

@Steffen025 commented on GitHub (Jan 28, 2026): ## ✅ Workaround confirmed working Added `mode` override in `opencode.json` to bypass the pattern matching: ```json "mode": { "build": { "prompt": "You are Claude Code, Anthropic's official CLI for Claude." }, "plan": { "prompt": "You are Claude Code, Anthropic's official CLI for Claude." } } ``` **Tested with:** Anthropic Max Subscription + claude-opus-4-5 and claude-sonnet-4-5 This replaces the system prompt identifier that Anthropic is blocking. Works as of 2026-01-28. **Copy-paste ready:** [See commit with full opencode.json](https://github.com/Steffen025/pai-opencode/commit/6934c7f) Reference: https://github.com/anomalyco/opencode-anthropic-auth/issues/17#issuecomment-3752059576
Author
Owner

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

Is this guy advertising his vibecoded garbage in Github issues now...?

@nukeop commented on GitHub (Jan 28, 2026): Is this guy advertising his vibecoded garbage in Github issues now...?
Author
Owner

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

If anybody else was confused about where this file is because they didn't read the docs. https://opencode.ai/docs/config/
~/.config/opencode/opencode.json

@JoshElias commented on GitHub (Jan 28, 2026): If anybody else was confused about where this file is because they didn't read the docs. https://opencode.ai/docs/config/ `~/.config/opencode/opencode.json`
Author
Owner

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

I tried this and it fixed it for me as well. Thanks!

"plugin": [
        "opencode-anthropic-auth@latest"
]
@viiqswim commented on GitHub (Jan 28, 2026): I tried this and it fixed it for me as well. Thanks! ```json "plugin": [ "opencode-anthropic-auth@latest" ] ```
Author
Owner

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

I tried this and it fixed it for me as well. Thanks!

"plugin": [
"opencode-anthropic-auth@latest"
]

Not working in standalone app v1.1.39 | I'm using the windows version

v1.1.39 was push out just this morning so maybe older versions still work?

@doodirock commented on GitHub (Jan 28, 2026): > I tried this and it fixed it for me as well. Thanks! > > "plugin": [ > "opencode-anthropic-auth@latest" > ] Not working in standalone app v1.1.39 | I'm using the windows version v1.1.39 was push out just this morning so maybe older versions still work?
Author
Owner

@Biuro-Legarti commented on GitHub (Jan 28, 2026):

v1.1.39 not working, older version it's ok

@Biuro-Legarti commented on GitHub (Jan 28, 2026): v1.1.39 not working, older version it's ok
Author
Owner

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

I am running an older version from nixos repo,

$ opencode --version
1.1.25

$ cat ~/.config/opencode/opencode.json 
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "opencode-anthropic-auth@latest"
  ]
}

Unfortunately, i am still the auth error.

@rajil commented on GitHub (Jan 28, 2026): I am running an older version from nixos repo, ``` $ opencode --version 1.1.25 $ cat ~/.config/opencode/opencode.json { "$schema": "https://opencode.ai/config.json", "plugin": [ "opencode-anthropic-auth@latest" ] } ``` Unfortunately, i am still the auth error.
Author
Owner

@rekram1-node commented on GitHub (Jan 28, 2026):

1.1.40

@rekram1-node commented on GitHub (Jan 28, 2026): 1.1.40
Author
Owner

@NikiLentz commented on GitHub (Feb 5, 2026):

plugin stuff is not working for me on the npm version

@NikiLentz commented on GitHub (Feb 5, 2026): plugin stuff is not working for me on the npm version
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7833