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 API Key Invalid Across All Models #44326
The OpenCode version field contains the literal command opencode --version instead of the actual version output. Please run the command and paste the real version number.
Steps to reproduce is empty. Please provide steps so the team can investigate.
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
订阅了go,api密钥无效无法调用 #44313: Same symptom — subscribed to OpenCode Go but API key is reported as invalid
Thanks for updating the issue! It now includes all the required information — a clear description, version number, detailed steps to reproduce, a screenshot, and system info. We appreciate you taking the time to fill everything out.
I’m seeing the same OpenCode Go authentication failure from the official OpenCode CLI on Windows/Git Bash.
My Go subscription is active in the dashboard and usage remains at 0%.
opencode models opencode-go lists the Go models correctly.
I re-authenticated with:
opencode auth login -p opencode-go
The CLI reports Done, but:
opencode run -m opencode-go/gpt-5.6-luna "test"
returns:
Error: Invalid API key.
Control tests:
opencode/mimo-v2.6-flash-free works successfully.
openai/gpt-5.6-luna reaches my separate OpenAI provider and returns that provider’s expected usage-limit error.
only opencode-go/... is rejected as an invalid API key.
I paid for Go about a week ago. The dashboard initially took several days to show the subscription as active, and it now shows active but still 0% usage because no Go request has authenticated successfully.
Please check whether this is the same Go gateway/key-provisioning issue. I can provide account/invoice details privately if needed.
Environment: Windows, Git Bash, OpenCode CLI.
I will not post the API key publicly.
Activity
github-actions commentedon Aug 23, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
opencode --versioninstead of the actual version output. Please run the command and paste the real version number.Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
Xiao0219 commentedon Aug 23, 2026
+1
github-actions commentedon Aug 23, 2026
Thanks for updating the issue! It now includes all the required information — a clear description, version number, detailed steps to reproduce, a screenshot, and system info. We appreciate you taking the time to fill everything out.
Pooh121974 commentedon Sep 26, 2026
I’m seeing the same OpenCode Go authentication failure from the official OpenCode CLI on Windows/Git Bash.
My Go subscription is active in the dashboard and usage remains at 0%.
opencode models opencode-go lists the Go models correctly.
I re-authenticated with:
opencode auth login -p opencode-go
The CLI reports Done, but:
opencode run -m opencode-go/gpt-5.6-luna "test"
returns:
Error: Invalid API key.
Control tests:
I paid for Go about a week ago. The dashboard initially took several days to show the subscription as active, and it now shows active but still 0% usage because no Go request has authenticated successfully.
Please check whether this is the same Go gateway/key-provisioning issue. I can provide account/invoice details privately if needed.
Environment: Windows, Git Bash, OpenCode CLI.
I will not post the API key publicly.
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊