"Free" grok key is not working #1629

Closed
opened 2026-02-16 17:31:49 -05:00 by yindo · 5 comments
Owner

Originally created by @haltingstate on GitHub (Sep 6, 2025).

Originally assigned to: @rekram1-node on GitHub.

I ran opencode

I am supposed to be able to use this new grok model for free?

When I run opencode, with the grok model, I get an authentication / API key invalid error

Problem: there is no instructions anywhere, how to setup API key, or what I need to do.


The free "opencode/" qwen model also does not work

Originally created by @haltingstate on GitHub (Sep 6, 2025). Originally assigned to: @rekram1-node on GitHub. I ran opencode I am supposed to be able to use this new grok model for free? When I run opencode, with the grok model, I get an authentication / API key invalid error Problem: there is no instructions anywhere, how to setup API key, or what I need to do. --- The free "opencode/" qwen model also does not work
yindo closed this issue 2026-02-16 17:31:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 6, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1597: Improve provider and API key update workflow after initial setup - describes lack of clear instructions for API key setup after initial configuration
  • #2245: AI_APICallError: User not found with OpenRouter despite valid API key - similar authentication issues with API keys
  • #1154: Fresh brew install asks for Github Copilot API key - describes API key setup confusion during installation

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 6, 2025): This issue might be a duplicate of existing issues. Please check: - #1597: Improve provider and API key update workflow after initial setup - describes lack of clear instructions for API key setup after initial configuration - #2245: AI_APICallError: User not found with OpenRouter despite valid API key - similar authentication issues with API keys - #1154: Fresh brew install asks for Github Copilot API key - describes API key setup confusion during installation Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 6, 2025):

@haltingstate the opencode/qwen… model is NOT a free model see here for the docs on zen: https://opencode.ai/docs/zen/#pricing

i will check out what happened with grok tho

@rekram1-node commented on GitHub (Sep 6, 2025): @haltingstate the opencode/qwen… model is NOT a free model see here for the docs on zen: https://opencode.ai/docs/zen/#pricing i will check out what happened with grok tho
Author
Owner

@rekram1-node commented on GitHub (Sep 6, 2025):

@haltingstate opencode grok code still works just fine for me. Maybe you can show me the error you were seeing?

@rekram1-node commented on GitHub (Sep 6, 2025): @haltingstate opencode grok code still works just fine for me. Maybe you can show me the error you were seeing?
Author
Owner

@rekram1-node commented on GitHub (Sep 13, 2025):

going to close I don't see anyone else w/ this issue lmk if u need more help

@rekram1-node commented on GitHub (Sep 13, 2025): going to close I don't see anyone else w/ this issue lmk if u need more help
Author
Owner

@rodrigolive commented on GitHub (Sep 14, 2025):

I was having the same issue, Grok Fast (free offer) was showing up under /models, selected it and then got an AI_APICallError.

Then I noticed that under models the Grok Fast had "copilot" next to it, which is a Github thing. not sure how they relate, but I inferred that it was just picking up my $GITHUB_TOKEN from the Macos bash environment.

so I unset the variable before opening Opencode and it worked.

unset GITHUB_TOKEN
opencode

And after hitting /models the Grok Code Fast 1 had opencode as provider next to it, instead of copilot.

@rodrigolive commented on GitHub (Sep 14, 2025): I was having the same issue, Grok Fast (free offer) was showing up under `/models`, selected it and then got an `AI_APICallError`. Then I noticed that under models the Grok Fast had "copilot" next to it, which is a Github thing. not sure how they relate, but I inferred that it was just picking up my `$GITHUB_TOKEN` from the Macos bash environment. so I unset the variable before opening Opencode and it worked. ``` unset GITHUB_TOKEN opencode ``` And after hitting `/models` the Grok Code Fast 1 had `opencode` as provider next to it, instead of `copilot`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1629