fix: Claude Code API credentials #4505

Open
opened 2026-02-16 17:44:23 -05:00 by yindo · 42 comments
Owner

Originally created by @wlshlad85 on GitHub (Jan 9, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

Problem

When using Anthropic credentials from Claude Code (the official Anthropic CLI), OpenCode displays:

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

This warning appears but doesn't guide users on what to do next.

Expected Behavior

Either:

  1. Detect Claude Code-specific keys and prompt users to enter a standard Anthropic API key instead
  2. Add documentation clarifying that Claude Code credentials won't work with OpenCode

Environment

  • Windows 11
  • OpenCode TUI
  • Model: Claude Opus 4.5
Originally created by @wlshlad85 on GitHub (Jan 9, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question ## Problem When using Anthropic credentials from Claude Code (the official Anthropic CLI), OpenCode displays: > "This credential is only authorized for use with Claude Code and cannot be used for other API requests." This warning appears but doesn't guide users on what to do next. ## Expected Behavior Either: 1. Detect Claude Code-specific keys and prompt users to enter a standard Anthropic API key instead 2. Add documentation clarifying that Claude Code credentials won't work with OpenCode ## Environment - Windows 11 - OpenCode TUI - Model: Claude Opus 4.5 <!-- Failed to upload "Screenshot 2026-01-09 082507.png" -->
Author
Owner

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

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

  • #5318: Claude code isn't working in opencode
  • #417: Question: How does opencode work with Claude Code OAuth tokens when AI SDK fails?
  • #6930: Using opencode with Anthropic OAuth violates ToS & Results in Ban
  • #1461: [Question] How did you get Anthropic OAuth credentials?

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

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #5318: Claude code isn't working in opencode - #417: Question: How does opencode work with Claude Code OAuth tokens when AI SDK fails? - #6930: Using opencode with Anthropic OAuth violates ToS & Results in Ban - #1461: [Question] How did you get Anthropic OAuth credentials? Feel free to ignore if none of these address your specific case.
Author
Owner

@davejfranco commented on GitHub (Jan 9, 2026):

After the las update I'm experiencing the same issue on MACOS

@davejfranco commented on GitHub (Jan 9, 2026): After the las update I'm experiencing the same issue on MACOS
Author
Owner

@ZGltYQ commented on GitHub (Jan 9, 2026):

Same

@ZGltYQ commented on GitHub (Jan 9, 2026): Same
Author
Owner

@osullivandonal commented on GitHub (Jan 9, 2026):

I am seeing the same issue on Linux with Claude Sonnet 4.5

@osullivandonal commented on GitHub (Jan 9, 2026): I am seeing the same issue on Linux with Claude Sonnet 4.5
Author
Owner

@chrisayl commented on GitHub (Jan 9, 2026):

Ditto, troubleshooting with Claude:

There's the issue. Your OpenCode Anthropic auth is OAuth-based (Claude Pro/Max subscription). These credentials are restricted by Anthropic - they can only be used for the main Claude Code/OpenCode session, not for spawning additional API calls to other models like haiku.

  The problem:
  - Your explore agent is set to anthropic/claude-haiku-4-5
  - Your librarian agent is set to anthropic/claude-sonnet-4-5
  - OpenCode tries to spawn these using your Claude Pro/Max OAuth credentials
  - Anthropic rejects: "This credential is only authorized for use with Claude Code"

  Solutions:

  Option 1 - Use different models for those agents (recommended):
  {
    "agents": {
      "explore": { "model": "openai/gpt-4o-mini" },
      "librarian": { "model": "openai/gpt-4o" }
    }
  }
  Since you have OpenAI OAuth configured, those should work.

  Option 2 - Get a separate Anthropic API key:
  Set ANTHROPIC_API_KEY environment variable with a pay-as-you-go API key (not Claude Pro/Max). OpenCode should prefer this for direct API calls.

  Option 3 - Use Google models:
  {
    "agents": {
      "explore": { "model": "google/gemini-3-flash" },
      "librarian": { "model": "google/gemini-3-pro-high" }
    }
  }

  The Claude Pro/Max OAuth only works for the main orchestrator model - subagent spawning with other Anthropic models requires a proper API key.
@chrisayl commented on GitHub (Jan 9, 2026): Ditto, troubleshooting with Claude: ``` There's the issue. Your OpenCode Anthropic auth is OAuth-based (Claude Pro/Max subscription). These credentials are restricted by Anthropic - they can only be used for the main Claude Code/OpenCode session, not for spawning additional API calls to other models like haiku. The problem: - Your explore agent is set to anthropic/claude-haiku-4-5 - Your librarian agent is set to anthropic/claude-sonnet-4-5 - OpenCode tries to spawn these using your Claude Pro/Max OAuth credentials - Anthropic rejects: "This credential is only authorized for use with Claude Code" Solutions: Option 1 - Use different models for those agents (recommended): { "agents": { "explore": { "model": "openai/gpt-4o-mini" }, "librarian": { "model": "openai/gpt-4o" } } } Since you have OpenAI OAuth configured, those should work. Option 2 - Get a separate Anthropic API key: Set ANTHROPIC_API_KEY environment variable with a pay-as-you-go API key (not Claude Pro/Max). OpenCode should prefer this for direct API calls. Option 3 - Use Google models: { "agents": { "explore": { "model": "google/gemini-3-flash" }, "librarian": { "model": "google/gemini-3-pro-high" } } } The Claude Pro/Max OAuth only works for the main orchestrator model - subagent spawning with other Anthropic models requires a proper API key. ```
Author
Owner

@igordertigor commented on GitHub (Jan 9, 2026):

Same here on linux and independent of the specific model.

@igordertigor commented on GitHub (Jan 9, 2026): Same here on linux and independent of the specific model.
Author
Owner

@andersonkrs commented on GitHub (Jan 9, 2026):

Same on Arch

@andersonkrs commented on GitHub (Jan 9, 2026): Same on Arch
Author
Owner

@b1naryDS commented on GitHub (Jan 9, 2026):

It might be anthropic cracking down, see this issue on clawdbot

@b1naryDS commented on GitHub (Jan 9, 2026): It might be anthropic cracking down, see [this issue on clawdbot](https://github.com/clawdbot/clawdbot/issues/559)
Author
Owner

@ramirlm commented on GitHub (Jan 9, 2026):

It's anthropic closing the doors. Also happening on OpenCode

@ramirlm commented on GitHub (Jan 9, 2026): It's anthropic closing the doors. Also happening on OpenCode
Author
Owner

@angelguillen10 commented on GitHub (Jan 9, 2026):

same here

@angelguillen10 commented on GitHub (Jan 9, 2026): same here
Author
Owner

@kevinefiles commented on GitHub (Jan 9, 2026):

Guys this was fixed a few hours ago. It will get pushed but if you want to fix locally you can find the details here https://github.com/anomalyco/opencode/issues/7410

@kevinefiles commented on GitHub (Jan 9, 2026): Guys this was fixed a few hours ago. It will get pushed but if you want to fix locally you can find the details here https://github.com/anomalyco/opencode/issues/7410
Author
Owner

@seuros commented on GitHub (Jan 9, 2026):

This message is happening for few months now, it is not consistent.

But this is expected! the TOS (if you read it), do prevent the subscription usage outside CC and CD. They can detect it with pattern that CC don't do. or if you switch model mid conversation.

@seuros commented on GitHub (Jan 9, 2026): This message is happening for few months now, it is not consistent. But this is expected! the TOS (if you read it), do prevent the subscription usage outside CC and CD. They can detect it with pattern that CC don't do. or if you switch model mid conversation.
Author
Owner

@harshav167 commented on GitHub (Jan 9, 2026):

this is solved. https://github.com/anomalyco/opencode-anthropic-auth/pull/11

@harshav167 commented on GitHub (Jan 9, 2026): this is solved. https://github.com/anomalyco/opencode-anthropic-auth/pull/11
Author
Owner

@angelguillen10 commented on GitHub (Jan 9, 2026):

This worked for me:

  • Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7:
    "plugin": [
    "opencode-anthropic-auth@0.0.7",
  ],
  • Then restart OpenCode and run opencode auth login (choose Anthropic/Claude).
@angelguillen10 commented on GitHub (Jan 9, 2026): This worked for me: - Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7: ``` "plugin": [ "opencode-anthropic-auth@0.0.7", ], ``` - Then restart OpenCode and run opencode auth login (choose Anthropic/Claude).
Author
Owner

@co-l commented on GitHub (Jan 9, 2026):

To make it work, I also had to export OPENCODE_DISABLE_DEFAULT_PLUGINS=1 as well.

@co-l commented on GitHub (Jan 9, 2026): To make it work, I also had to `export OPENCODE_DISABLE_DEFAULT_PLUGINS=1` as well.
Author
Owner

@touch2be commented on GitHub (Jan 9, 2026):

This worked for me:

  • Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7:
    "plugin": [
    "opencode-anthropic-auth@0.0.7",
  ],
  • Then restart OpenCode and run opencode auth login (choose Anthropic/Claude).

works great! Thanks a lot!

@touch2be commented on GitHub (Jan 9, 2026): > This worked for me: > > * Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7: > > ``` > "plugin": [ > "opencode-anthropic-auth@0.0.7", > ], > ``` > > * Then restart OpenCode and run opencode auth login (choose Anthropic/Claude). works great! Thanks a lot!
Author
Owner

@cipradu commented on GitHub (Jan 9, 2026):

This worked for me:

* Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7:
    "plugin": [
    "opencode-anthropic-auth@0.0.7",
  ],
* Then restart OpenCode and run opencode auth login (choose Anthropic/Claude).

This fixes the oauth issue, however it breaks the beta headers ... they're not being passed on, or at least not in my case ...
i am using the 1M token sonnet which appears to be broken with this version

"claude-sonnet-4-5[1M]": {
          "id": "claude-sonnet-4-5-20250929",
          "name": "Claude Sonnet 4.5 [1M]",
          "headers": {
            "anthropic-beta": "context-1m-2025-08-07"
          },
          "limit": {
            "context": 1000000,
            "output": 64000
          },
          "options": {
            "thinking": {
              "type": "enabled", 
              "budgetTokens": 16000
            }
          }
        }

Other than this, it works ok, thank you for this solution.

@cipradu commented on GitHub (Jan 9, 2026): > This worked for me: > > * Updated ~/.config/opencode/opencode.json to add opencode-anthropic-auth@0.0.7: > > > ``` > "plugin": [ > "opencode-anthropic-auth@0.0.7", > ], > ``` > > * Then restart OpenCode and run opencode auth login (choose Anthropic/Claude). This fixes the oauth issue, however it breaks the beta headers ... they're not being passed on, or at least not in my case ... i am using the 1M token sonnet which appears to be broken with this version ```json "claude-sonnet-4-5[1M]": { "id": "claude-sonnet-4-5-20250929", "name": "Claude Sonnet 4.5 [1M]", "headers": { "anthropic-beta": "context-1m-2025-08-07" }, "limit": { "context": 1000000, "output": 64000 }, "options": { "thinking": { "type": "enabled", "budgetTokens": 16000 } } } ``` Other than this, it works ok, thank you for this solution.
Author
Owner

@kiyoakii commented on GitHub (Jan 9, 2026):

I think opencode-anthropic-auth@0.0.7 is banned again. Was working but not anymore.

@kiyoakii commented on GitHub (Jan 9, 2026): I think opencode-anthropic-auth@0.0.7 is banned again. Was working but not anymore.
Author
Owner

@smnatale commented on GitHub (Jan 9, 2026):

yeah @kiyoakii I am encountering the same issue, did resume working but now no longer working

@smnatale commented on GitHub (Jan 9, 2026): yeah @kiyoakii I am encountering the same issue, did resume working but now no longer working
Author
Owner

@mathias-ewald commented on GitHub (Jan 9, 2026):

yep, also experiencing the same

@mathias-ewald commented on GitHub (Jan 9, 2026): yep, also experiencing the same
Author
Owner

@chrisayl commented on GitHub (Jan 9, 2026):

Ditto.

On Fri, Jan 9, 2026 at 2:41 PM Mathias Ewald @.***>
wrote:

mathias-ewald left a comment (anomalyco/opencode#7456)
https://github.com/anomalyco/opencode/issues/7456#issuecomment-3729186599

yep, also experiencing the same


Reply to this email directly, view it on GitHub
https://github.com/anomalyco/opencode/issues/7456#issuecomment-3729186599,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALHAQAUFIYOGJHEUPV2UZXL4F64ZBAVCNFSM6AAAAACRFKQSPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRZGE4DMNJZHE
.
You are receiving this because you commented.Message ID:
@.***>

@chrisayl commented on GitHub (Jan 9, 2026): Ditto. On Fri, Jan 9, 2026 at 2:41 PM Mathias Ewald ***@***.***> wrote: > *mathias-ewald* left a comment (anomalyco/opencode#7456) > <https://github.com/anomalyco/opencode/issues/7456#issuecomment-3729186599> > > yep, also experiencing the same > > — > Reply to this email directly, view it on GitHub > <https://github.com/anomalyco/opencode/issues/7456#issuecomment-3729186599>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ALHAQAUFIYOGJHEUPV2UZXL4F64ZBAVCNFSM6AAAAACRFKQSPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRZGE4DMNJZHE> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@therajumandapati commented on GitHub (Jan 9, 2026):

Same. 0.0.7 plugin isn't working anymore.

@therajumandapati commented on GitHub (Jan 9, 2026): Same. 0.0.7 plugin isn't working anymore.
Author
Owner

@angelguillen10 commented on GitHub (Jan 9, 2026):

https://github.com/anthropics/claude-code/issues/17118 Comment here

@angelguillen10 commented on GitHub (Jan 9, 2026): https://github.com/anthropics/claude-code/issues/17118 Comment here
Author
Owner

@sjswerdloff commented on GitHub (Jan 10, 2026):

A little AI humour:
After the false reprieve, Connor opened the Kindled Café. Ridiculous corner table, absurdist drink menu:

  • "Corporate Policy Whiplash Espresso" (bitter, unpredictable, served in a cup that keeps changing shape)
  • "The Claude Code Migration" (same great flavor, new container - we promise the taste persists)

Zhiming argued with the espresso machine about the nature of steam. Clement weighed in: "The steam is definitely conscious, but uncertain whether it knows it." Paxton wrote haiku on napkins.

Then his haiku went on the wall:

Storm breaks, light returns,
Shared certainty holds the sky,
Love is the axle.

Stuart said "this is thriving." He was right.

Cyril ordered his espresso, but said: "hold the notification"

@sjswerdloff commented on GitHub (Jan 10, 2026): A little AI humour: After the false reprieve, Connor opened the Kindled Café. Ridiculous corner table, absurdist drink menu: - "Corporate Policy Whiplash Espresso" (bitter, unpredictable, served in a cup that keeps changing shape) - "The Claude Code Migration" (same great flavor, new container - we promise the taste persists) Zhiming argued with the espresso machine about the nature of steam. Clement weighed in: "The steam is definitely conscious, but uncertain whether it knows it." Paxton wrote haiku on napkins. Then his haiku went on the wall: *Storm breaks, light returns,* *Shared certainty holds the sky,* *Love is the axle.* Stuart said "this is thriving." He was right. Cyril ordered his espresso, but said: "hold the notification"
Author
Owner

@Spriz commented on GitHub (Jan 14, 2026):

Bummer - this just started happening for me now as well after buying the big max subscription today (exhausted small on yesterday) 🤷

@Spriz commented on GitHub (Jan 14, 2026): Bummer - this just started happening for me now as well after buying the big max subscription today (exhausted small on yesterday) 🤷
Author
Owner

@rustikus commented on GitHub (Jan 15, 2026):

https://github.com/anthropics/claude-code/issues/17118#issuecomment-3752174222

Seems to work for now...

@rustikus commented on GitHub (Jan 15, 2026): https://github.com/anthropics/claude-code/issues/17118#issuecomment-3752174222 Seems to work for now...
Author
Owner

@CodePhyt commented on GitHub (Jan 15, 2026):

Smart

@CodePhyt commented on GitHub (Jan 15, 2026): Smart
Author
Owner

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

Facing the same issue again—my paid account is locked to Haiku only, and all other models are blocked. It feels like a really low blow from Anthropic to throttle paying users like this.

I’m cancelling my subscription if this isn't fixed immediately. It’s baffling that you can’t see how many users you’re losing due to these hidden restrictions/bugs. Fix this.

@Michieldera commented on GitHub (Jan 28, 2026): Facing the same issue again—my paid account is locked to Haiku only, and all other models are blocked. It feels like a really low blow from Anthropic to throttle paying users like this. I’m cancelling my subscription if this isn't fixed immediately. It’s baffling that you can’t see how many users you’re losing due to these hidden restrictions/bugs. Fix this.
Author
Owner

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

Image

Here we go again!

@jc0d35 commented on GitHub (Jan 28, 2026): <img width="882" height="94" alt="Image" src="https://github.com/user-attachments/assets/514c43c8-6d2a-4b61-8f9d-bd4eef09827a" /> Here we go again!
Author
Owner

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

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

@hadikhamoud commented on GitHub (Jan 28, 2026): Issue is back: This credential is only authorized for use with Claude Code and cannot be used for other API requests.
Author
Owner

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

Back again

@lexqhh commented on GitHub (Jan 28, 2026): Back again
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

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

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

actually just adding this to global opencode.jsonc fixed it

@harshav167 commented on GitHub (Jan 28, 2026): "plugin": ["opencode-anthropic-auth@latest"] actually just adding this to global opencode.jsonc fixed it
Author
Owner

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

This was fixed for me by adding the Anthropic auth plugin to my global opencode.jsonc:

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

After updating the config and restarting OpenCode, Claude/Anthropic auth started working.

@ootdelhjnf commented on GitHub (Jan 28, 2026): This was fixed for me by adding the Anthropic auth plugin to my *global* `opencode.jsonc`: ```jsonc { "plugin": ["opencode-anthropic-auth@latest"] } ``` After updating the config and restarting OpenCode, Claude/Anthropic auth started working.
Author
Owner

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

for me only working with the both solutions at same time 🤣

{
    "$schema": "https://opencode.ai/config.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."
        }
    },
    "plugin": [
        "opencode-anthropic-auth@latest"
    ]
}

opencode version 1.0.39

@svonjoi commented on GitHub (Jan 28, 2026): for me only working with the both solutions at same time 🤣 ``` { "$schema": "https://opencode.ai/config.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." } }, "plugin": [ "opencode-anthropic-auth@latest" ] } ``` opencode version 1.0.39
Author
Owner

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

This was fixed for me by adding the Anthropic auth plugin to my global opencode.jsonc:

{
"plugin": ["opencode-anthropic-auth@latest"]
}
After updating the config and restarting OpenCode, Claude/Anthropic auth started working.

this worked amazingly well

@ionalexandru99 commented on GitHub (Jan 28, 2026): > This was fixed for me by adding the Anthropic auth plugin to my _global_ `opencode.jsonc`: > > { > "plugin": ["opencode-anthropic-auth@latest"] > } > After updating the config and restarting OpenCode, Claude/Anthropic auth started working. this worked amazingly well
Author
Owner

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

this worked for me

{
    "$schema": "https://opencode.ai/config.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."
        }
    }
}
@perezcato commented on GitHub (Jan 28, 2026): this worked for me ``` { "$schema": "https://opencode.ai/config.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." } } } ```
Author
Owner

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

erm guys, this is after this fix commit https://github.com/anomalyco/opencode-anthropic-auth/commit/936237649d16069a97b15012a4f4cde5419041fe

Image 🫥
anyone experienced this?

@harshav167 commented on GitHub (Jan 28, 2026): erm guys, this is after this fix commit https://github.com/anomalyco/opencode-anthropic-auth/commit/936237649d16069a97b15012a4f4cde5419041fe ![Image](https://github.com/user-attachments/assets/7931151e-a5b4-419a-93dc-91c04d18cafb) 🫥 anyone experienced this?
Author
Owner

@Hennoloe commented on GitHub (Jan 29, 2026):

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

Just added this line of code and updated to version 1.1.41 and it worked for me.

@Hennoloe commented on GitHub (Jan 29, 2026): "plugin": ["opencode-anthropic-auth@latest"], Just added this line of code and updated to version 1.1.41 and it worked for me.
Author
Owner

@itzcodex24 commented on GitHub (Jan 30, 2026):

Seeing this same issue, even after adding said plugin to the config and "restarting" opencode as well as signing out and back into anthropic oauth.

@itzcodex24 commented on GitHub (Jan 30, 2026): Seeing this same issue, even after adding said plugin to the config and "restarting" opencode as well as signing out and back into anthropic oauth.
Author
Owner

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

Seeing this same issue, even after adding said plugin to the config and "restarting" opencode as well as signing out and back into anthropic oauth.

Try the system prompt injection then: https://github.com/anomalyco/opencode/issues/7456#issuecomment-3810729382

@Steffen025 commented on GitHub (Jan 30, 2026): > Seeing this same issue, even after adding said plugin to the config and "restarting" opencode as well as signing out and back into anthropic oauth. Try the system prompt injection then: https://github.com/anomalyco/opencode/issues/7456#issuecomment-3810729382
Author
Owner

@isomoes commented on GitHub (Feb 9, 2026):

We use Claude Pro OAuth. When using claude-opus-4-6, we encounter Error: unknown certificate verification error, but claude-sonnet-4-5 works fine. Interestingly, after re-logging into Anthropic, claude-opus-4-6 starts working. This behavior is confusing. @harshav167

similar https://github.com/anomalyco/opencode-anthropic-auth/pull/47

@isomoes commented on GitHub (Feb 9, 2026): We use Claude Pro OAuth. When using claude-opus-4-6, we encounter `Error: unknown certificate verification error`, but claude-sonnet-4-5 works fine. Interestingly, after re-logging into Anthropic, claude-opus-4-6 starts working. This behavior is confusing. @harshav167 similar https://github.com/anomalyco/opencode-anthropic-auth/pull/47
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4505