Be able to export the default config #1939

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

Originally created by @alanxoc3 on GitHub (Oct 3, 2025).

Originally assigned to: @rekram1-node on GitHub.

I wish there was an easy way to export the default or the current configuration for open code. I want a full dump of the live configuration, then save that as my ~/.config/opencode/opencode.json with some tweaks. That way I know completely how it is configured and may find defaults that I want to change. Right now I think the only way to do this is looking at the schema https://opencode.ai/config.json, source code, and parsing through examples in the documentation which is not as easy...

Originally created by @alanxoc3 on GitHub (Oct 3, 2025). Originally assigned to: @rekram1-node on GitHub. I wish there was an easy way to export the default or the current configuration for open code. I want a full dump of the live configuration, then save that as my ~/.config/opencode/opencode.json with some tweaks. That way I know completely how it is configured and may find defaults that I want to change. Right now I think the only way to do this is looking at the schema https://opencode.ai/config.json, source code, and parsing through examples in the documentation which is not as easy...
yindo closed this issue 2026-02-16 17:33:20 -05:00
Author
Owner

@rekram1-node commented on GitHub (Oct 3, 2025):

@alanxoc3 what if we had a command like:

opencode debug config

and it showed the configuration all put together?

@rekram1-node commented on GitHub (Oct 3, 2025): @alanxoc3 what if we had a command like: opencode debug config and it showed the configuration all put together?
Author
Owner

@alanxoc3 commented on GitHub (Oct 3, 2025):

Yeah, that is what I want. I think that's the best way to handle it. Thanks for the swift reply.

@alanxoc3 commented on GitHub (Oct 3, 2025): Yeah, that is what I want. I think that's the best way to handle it. Thanks for the swift reply.
Author
Owner

@linear[bot] commented on GitHub (Oct 3, 2025):

from @rekram1-node:

sweet ill make it today or tmr

@linear[bot] commented on GitHub (Oct 3, 2025): from @rekram1-node: > sweet ill make it today or tmr
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1939