Skip to content

Read custom providers from opencode.json from central ~/.config/opencode/ config instead of root of each project #152

@GitMurf

Description

@GitMurf

@thdxr I followed the instructions from the readme for custom options for a openai compatible provider (as you pointed to in your readme) and that works when I add it to a opencode.json file in the root of a project. But I want to be able to use it for all projects but cannot seem to get it to read it from ~/.config/opencode/ or from ~ (home) or from ~/.opencode/ etc... I tried all the potential opencode config locations with no luck.

Am I doing something wrong or do I need to copy the custom opencode.json to each of my project locations in every place I want to use OpenCode with my custom provider options?

Thanks!!

Originally posted by @GitMurf in #140

Figured easier for you all to track @thdxr if I open a new issue for this. Thanks!

p.s. I have dev repo pulled locally and seeing your minute by minute pushes ;) so whenever you are ready for me to test and I fetch and pull and confirm if working!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions