Not Selecting my global profile #359

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

Originally created by @agileandy on GitHub (Jun 28, 2025).

I've configured ~/.config/opencode/opencode.json with some preferred extra models but opencode is not reading them.

In particular I've added a some Openrouter models but these are not available for selection in the provider window.

Originally created by @agileandy on GitHub (Jun 28, 2025). I've configured ~/.config/opencode/opencode.json with some preferred extra models but opencode is not reading them. In particular I've added a some Openrouter models but these are not available for selection in the provider window.
yindo closed this issue 2026-02-16 17:26:26 -05:00
Author
Owner

@cravenceiling commented on GitHub (Jun 28, 2025):

The config file in that directory must be config.json.

@cravenceiling commented on GitHub (Jun 28, 2025): The config file in that directory must be `config.json`.
Author
Owner

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

^ yep

@thdxr commented on GitHub (Jun 28, 2025): ^ yep
Author
Owner

@agileandy commented on GitHub (Jun 28, 2025):

thanks team... changed that and it work fine.

Can I suggest having a consistent config name for this? Having different config file names depending on location is a little confusing.

You can configure opencode using a JSON config file that can be placed in:
Globally under ~/.config/opencode/config.json.
Your project root under opencode.json. This is safe to be checked into Git and uses the same schema as the global one.
@agileandy commented on GitHub (Jun 28, 2025): thanks team... changed that and it work fine. Can I suggest having a consistent config name for this? Having different config file names depending on location is a little confusing. ``` You can configure opencode using a JSON config file that can be placed in: Globally under ~/.config/opencode/config.json. Your project root under opencode.json. This is safe to be checked into Git and uses the same schema as the global one. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#359