Config file not being picked up #260

Closed
opened 2026-02-16 17:25:57 -05:00 by yindo · 3 comments
Owner

Originally created by @xplosunn on GitHub (Jun 24, 2025).

Originally assigned to: @thdxr on GitHub.

Apologies if I'm doing something dumb here. I'm trying to run it with a local model. I installed and started ollama.

Then I tried running open code by running on my terminal:

npx opencode-ai

And it always loads with the "OpenAI Codex Mini" model. When I try /models it only shows OpenAI models.

I tried creating the config file as stated on the website both in the project directory and on ~/.config/opencode/config.json but no luck. I still only get the OpenAI models.

Perhaps you could give me a pointer in the right direction?

Originally created by @xplosunn on GitHub (Jun 24, 2025). Originally assigned to: @thdxr on GitHub. Apologies if I'm doing something dumb here. I'm trying to run it with a local model. I installed and started ollama. Then I tried running open code by running on my terminal: ``` npx opencode-ai ``` And it always loads with the "OpenAI Codex Mini" model. When I try `/models` it only shows OpenAI models. I tried creating the config file as stated on the website both in the project directory and on `~/.config/opencode/config.json` but no luck. I still only get the OpenAI models. Perhaps you could give me a pointer in the right direction?
yindo closed this issue 2026-02-16 17:25:57 -05:00
Author
Owner

@xHeaven commented on GitHub (Jun 24, 2025):

Perhaps you could give me a pointer in the right direction?

You could give that pointer in the right direction to yourself too, quite literally - write /models and use your right arrow to switch to see other models.

@xHeaven commented on GitHub (Jun 24, 2025): > Perhaps you could give me a pointer in the right direction? You could give that pointer in the right direction to yourself too, quite literally - write `/models` and use your right arrow to switch to see other models.
Author
Owner

@thdxr commented on GitHub (Jun 24, 2025):

can you share you config?

@thdxr commented on GitHub (Jun 24, 2025): can you share you config?
Author
Owner

@thdxr commented on GitHub (Jun 24, 2025):

v0.1.132 has a fix that should walk you through the correct onboarding

@thdxr commented on GitHub (Jun 24, 2025): v0.1.132 has a fix that should walk you through the correct onboarding
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#260