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
OpenCode Go CLI OAuth loop - Demands non-existent API Key #50895
I have an active OpenCode Go subscription ($10/month), but I am unable to use the service via the CLI / VS Code terminal environment.
Issue Summary:
When running opencode or npx opencode-ai@latest auth login and selecting OpenCode Go, the CLI fails to complete the OAuth browser callback in my WSL / Windows environment.
Because the OAuth handshake fails, the CLI automatically falls back to prompting for a manual API Key.
However, there is no API Key provided on my opencode.ai account dashboard for the Go subscription.
As a result, I am stuck in an authentication loop where the CLI demands an API key that does not exist in the dashboard.
Could you please either:
Provide an API key for my Go subscription, or
Help resolve/manually link the OAuth authentication for my account?
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
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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊