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
I subscribed to OpenCode Go today.
My Go subscription is active, but the console does not show any personal API key or any option to create/copy one.
/connect → OpenCode Go requires an API key.
The Keys page only allows creating Service Accounts, and those do not generate the Go API key described in the documentation.
I'm using OpenCode v2.0.15 on Windows 11.
How can I obtain the API key associated with my Go subscription?
Plugins
No response
OpenCode version
V.2.0.15
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response
Reacted by James Tai, Benjamin Lewis, eichan00, Jin, Murphy Randle, JD, FriendChicken, Thomas Fischer, amatsumara-IK, Aeterio and 1 more
On the main page (https://opencode.ai/console), go to the Keys tab → create a Service Account (if you don't already have one) → click on the Service Account you created → then click Add API Key.
Also, if you get an error when using Chinese AI models, go to Settings → Privacy in the same console (https://opencode.ai/console) and set the region to Global.
I also recommend enabling “Allow paid endpoints that train on request data” if you plan to use models such as Muse Spark Contribution.
@Voolan
Thanks. I’ve already tried this exact flow.
I created a Service Account and added an API key under it, but when I use that key with Claude Code, I get:
402 Upstream request failed: Insufficient account funds
My Go subscription is active, and Go models work normally inside OpenCode CLI, e.g. opencode-go/minimax-m3.
So it looks like the Service Account API key is using the Console pay-as-you-go balance rather than the Go subscription quota.
Is there a separate Go API key, or a way to make the Service Account key use my Go subscription entitlement?
hey, this is a bit confusing and we can improve it for sure, but you should be able to /connect inside v2 and then choose opencode. make sure you select the workspace with go on the auth screen in the browser. then models (including go ones) should load for you.
it's important that you select a go model if you want to use your plan: any other model (besides free and byok) will default to trying to use your org credit. sometimes there'll be multiple instances of a model, so make sure you select the go one.
you should also be able to use an api key for that workspace as well:
create a service account
/connect -> opencode go
insert that api key
all api keys are under service accounts, so there's no separate "go" one to create
I ran into this same issue and I was able to fix it. I suspect this will happen to many customers that have been using the free OpenCode models and then purchased an OpenCode Go subscription.
I followed the v2 instructions on how to connect and then I used /models to select a model that seemed to be part the OpenCode Go plan but did not have OpenCode Go in its name. I used /models again to switch to models with OpenCode Go in the name and the problem resolved.
Like @vaprdev mentions, this is super confusing and easy to miss and I'd highly recommend fixing this because I almost canceled my brand new subscription and demanded a refund. Based on my issues search, this seems to be a common problem new customers encounter.
--
Aaron K. Saunders
CEO Clearly Innovative Inc
***@***.***
www.clearlyinnovative.com
This email message and any attachment(s) are for the sole use of the
intended recipient(s) and may contain proprietary and/or confidential
information which may be privileged or otherwise protected from disclosure.
Any unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient(s), please contact the sender by reply
email and destroy the original message and any copies of the message as
well as any attachment(s) to the original message.
On Sat, Oct 3, 2026 at 7:32 PM Brian Kruse ***@***.***> wrote:
*bkruse* left a comment (anomalyco/opencode#50885)
<#50885 (comment)>
I ran into this same issue and I was able to fix it. I suspect this will
happen to many customers that have been using the free OpenCode models and
then purchased an OpenCode Go subscription.
I followed the v2 instructions on how to connect and then I used /models
to select a model that seemed to be part the OpenCode Go plan but did not
have OpenCode Go in its name. I used /models again to switch to models
with OpenCode Go in the name and the problem resolved.
Like @vaprdev <https://github.com/vaprdev> mentions, this is super
confusing and easy to miss and I'd highly recommend fixing this because I
almost canceled my brand new subscription and demanded a refund. Based on
my issues search, this seems to be a common problem new customers encounter.
—
Reply to this email directly, view it on GitHub
<#50885?email_source=notifications&email_token=AAEAFGJMAAHIQMA72H3OZV35SGEARA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJXGQ3DEMRQGE2KM4TFMFZW63VGNVQW45LBNSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5974622014>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAFGLEQW7GTTAMJXJT7YL5SGEARAVCNFSNUABFKJSXA33TNF2G64TZHM4TONJXGM2DGMJZHNEXG43VMU5TKNJVGIZDMMBYGIYKC5QC>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Activity
FriendChicken commentedon Sep 26, 2026
I have the same issue... Did you solve it? Or is it a bug that persists?
Voolan commentedon Sep 27, 2026
@ToniMCano @ndarilek You can create an API key like this:
On the main page (https://opencode.ai/console), go to the Keys tab → create a Service Account (if you don't already have one) → click on the Service Account you created → then click Add API Key.
Also, if you get an error when using Chinese AI models, go to Settings → Privacy in the same console (https://opencode.ai/console) and set the region to Global.
I also recommend enabling “Allow paid endpoints that train on request data” if you plan to use models such as Muse Spark Contribution.
leeashine commentedon Sep 28, 2026
I'm having the same issue.
ryanmeowy commentedon Sep 29, 2026
@Voolan
Thanks. I’ve already tried this exact flow.
I created a Service Account and added an API key under it, but when I use that key with Claude Code, I get:
402 Upstream request failed: Insufficient account funds
My Go subscription is active, and Go models work normally inside OpenCode CLI, e.g. opencode-go/minimax-m3.
So it looks like the Service Account API key is using the Console pay-as-you-go balance rather than the Go subscription quota.
Is there a separate Go API key, or a way to make the Service Account key use my Go subscription entitlement?
vaprdev commentedon Oct 1, 2026
hey, this is a bit confusing and we can improve it for sure, but you should be able to
/connectinsidev2and then chooseopencode. make sure you select the workspace with go on the auth screen in the browser. then models (including go ones) should load for you.it's important that you select a go model if you want to use your plan: any other model (besides free and byok) will default to trying to use your org credit. sometimes there'll be multiple instances of a model, so make sure you select the go one.
you should also be able to use an api key for that workspace as well:
/connect->opencode goall api keys are under service accounts, so there's no separate "go" one to create
buloxdev commentedon Oct 1, 2026
I'm still having the same issue, there is not a way to connect my Go Sub
rocky-zh commentedon Oct 2, 2026
I'm still having the same issue, there is not a way to connect my Go Sub
bkruse commentedon Oct 3, 2026
I ran into this same issue and I was able to fix it. I suspect this will happen to many customers that have been using the free OpenCode models and then purchased an
OpenCode Gosubscription.I followed the v2 instructions on how to connect and then I used
/modelsto select a model that seemed to be part theOpenCode Goplan but did not haveOpenCode Goin its name. I used/modelsagain to switch to models withOpenCode Goin the name and the problem resolved.Like @vaprdev mentions, this is super confusing and easy to miss and I'd highly recommend fixing this because I almost canceled my brand new subscription and demanded a refund. Based on my issues search, this seems to be a common problem new customers encounter.
aaronksaunders commentedon Oct 3, 2026
itonoz commentedon Oct 17, 2026
Same problem, can't create API keys, there is no Keys tab in the console.