anomalyco / anomalyco/opencode

OpenCode Go API Key Invalid Across All Models

Open
#44,326 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

OpenCode Go API key is invalid across all models.

I logged into the OpenCode website normally and copied a newly generated OpenCode Go API key directly from the official web page.

After connecting OpenCode Go with this key, every OpenCode Go model fails with the same error:

"API key is invalid"

I tested multiple different models and all of them return the same error, so this does not appear to be a model-specific issue.

I have also generated/copied a fresh API key from the OpenCode website, but the problem still persists.

Could you please check whether there is any problem with my OpenCode Go account, workspace, subscription, API access, or account status?

If possible, please perform a manual review of my account/API access.

Plugins

None

OpenCode version

1.18.21

Steps to reproduce
  1. Log in to the OpenCode website.
  2. Copy a newly generated OpenCode Go API key.
  3. Open OpenCode.
  4. Run /connect.
  5. Select OpenCode Go.
  6. Paste the newly generated API key.
  7. Select any OpenCode Go model.
  8. Send a normal prompt.
  9. The request fails with: "API key is invalid".
  10. Switching to other OpenCode Go models results in the same error.
Screenshot and/or share link
Image
Operating System

windows11

Terminal

windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the report. Start by reproducing the /connect flow with OpenCode 1.18.21 on Windows 11 across the reported OpenCode Go models; done means determining whether the same invalid-key response is reproducible and whether it is an account or API-access problem rather than a model-specific failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.