Skip to content

[Bug]: This credential is only authorized for use with Claude Code and cannot be used for other API requests. #1198

@jjoa68

Description

@jjoa68

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

When starting a new session, it suddenly says it cannot run due to permission issues.

Image

When trying to create a new connection, the bug below also occurs. Is this an OpenCode issue? Or has the account been blocked?
anomalyco/opencode#10954

Note: Existing projects/sessions continue to work fine, and this issue only appears in new sessions.

Steps to Reproduce

  1. Enter a prompt in a session

Expected Behavior

  1. Expect to receive an LLM response

Actual Behavior

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

Doctor Output

Likewise, does not run

Error Logs

Configuration

Additional Context

No response

Operating System

macOS

OpenCode Version

1.1.39


⚠️ Note: This issue was originally written in Korean and has been automatically translated to English by a maintainer (AI-assisted) to comply with our contribution guidelines. All issues must be in English.

@jjoa68 - Please write future issues in English. You agreed to follow our guidelines when creating this issue by checking the prerequisites. Thank you for your understanding!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions