You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API Key 401 Invalid API key — muse-spark-1.2-contributor models list works but chat rejected #46169
If your issue is different from the above, please add more detail to distinguish it (e.g., account type, subscription plan, when the key was generated).
im in mexico (not restricted) and i get this error sporadically: Error: Error from provider (Console Go): Upstream request failed: [invalid_api_key] Unauthorized
Thanks for the report! Closing as a duplicate of #50885, which has the answer: #50885 (comment)
In short: in OpenCode 2.0, run /connect, choose opencode, and pick the workspace that has Go when signing in. Then select a model marked as Go. To use an API key instead, create one under a service account in the console and add it with /connect → opencode go.
If this still fails on 2.0, please open a new issue with your version.
Activity
github-actions commentedon Aug 29, 2026
This issue might be a duplicate of existing issues. Please check:
/modelsbut rejected on chat endpointsIf your issue is different from the above, please add more detail to distinguish it (e.g., account type, subscription plan, when the key was generated).
felixzsh commentedon Sep 10, 2026
im in mexico (not restricted) and i get this error sporadically: Error: Error from provider (Console Go): Upstream request failed: [invalid_api_key] Unauthorized
Tarquinen commentedon Oct 20, 2026
Thanks for the report! Closing as a duplicate of #50885, which has the answer: #50885 (comment)
In short: in OpenCode 2.0, run
/connect, chooseopencode, and pick the workspace that has Go when signing in. Then select a model marked as Go. To use an API key instead, create one under a service account in the console and add it with/connect→opencode go.If this still fails on 2.0, please open a new issue with your version.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊