How Can I Find Models I Can Use With My Open Code API Key? #3017

Closed
opened 2026-02-16 17:38:15 -05:00 by yindo · 4 comments
Owner

Originally created by @secfb on GitHub (Nov 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

Question

How can I find models that I can use with my API key? OpenCode supports a wide variety of LLM models, which is why I use them. When choosing a model, I need to be able to see the models for which I have entered my API key. I can't choose which model I can use. I wish OpenCode would show us this.

Originally created by @secfb on GitHub (Nov 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question How can I find models that I can use with my API key? OpenCode supports a wide variety of LLM models, which is why I use them. When choosing a model, I need to be able to see the models for which I have entered my API key. I can't choose which model I can use. I wish OpenCode would show us this.
yindo closed this issue 2026-02-16 17:38:15 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

@secfb the /models list is only models u have access to.

Also you can run opencode models and see the same

@rekram1-node commented on GitHub (Nov 21, 2025): @secfb the /models list is only models u have access to. Also you can run `opencode models` and see the same
Author
Owner

@secfb commented on GitHub (Nov 21, 2025):

@rekram1-node I didn't add the OpenAI API key. It also appears in the OpenCode Auth logout options. When I choose a model, I see numerous LLM options, even though I don't have a subscription. This is why I get lost in LLM models. How do we extract the question? It would be nice if it showed which models we can use with the API keys we normally use.

The following file doesn't contain an API key either.

cat ~/.local/share/opencode/auth.json

opencode auth list

opencode auth logout

Image
@secfb commented on GitHub (Nov 21, 2025): @rekram1-node I didn't add the OpenAI API key. It also appears in the OpenCode Auth logout options. When I choose a model, I see numerous LLM options, even though I don't have a subscription. This is why I get lost in LLM models. How do we extract the question? It would be nice if it showed which models we can use with the API keys we normally use. The following file doesn't contain an API key either. cat ~/.local/share/opencode/auth.json opencode auth list opencode auth logout <img width="822" height="889" alt="Image" src="https://github.com/user-attachments/assets/06bda280-61b3-47da-8c1d-684b16f53571" />
Author
Owner

@secfb commented on GitHub (Nov 21, 2025):

Actually, I solved a problem. I made it not to get the API key from Environment.

alias opencode="env -u OPENAI_API_KEY -u ANTHROPIC_API_KEY -u GOOGLE_API_KEY -u CEREBRAS_API_KEY -u GITHUB_TOKEN opencode"

@secfb commented on GitHub (Nov 21, 2025): Actually, I solved a problem. I made it not to get the API key from Environment. `alias opencode="env -u OPENAI_API_KEY -u ANTHROPIC_API_KEY -u GOOGLE_API_KEY -u CEREBRAS_API_KEY -u GITHUB_TOKEN opencode"`
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

Sweet

@rekram1-node commented on GitHub (Nov 21, 2025): Sweet
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3017