Skip to content

Anthropic Subscription Key not working anymore #10937

@robertfels

Description

@robertfels

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

1.1.37

Steps to reproduce

  1. Log in using Anthropic Subscription credentials
  2. Select an Anthropic model (Opus or Sonnet)
  3. Run any prompt
  4. 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

Image

Operating System

macOS 26.2 (25C56)

Terminal

Terminal.app

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions