anomalyco / anomalyco/opencode
opencode.jsonc is empty even though models are configured
Open
@kitlangton is already working on this.
Since Aug 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I configured Mistral and OpenRouter for OpenCode, but my ~/.config/opencode.jsonc is empty (only schema is applied):
My opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json"
}
Shouldn't there be a provider and model section?
Where does opencode store these as well as my API Keys I added? How can I edit them?
Plugins
none
OpenCode version
1.18.16
Steps to reproduce
- install opencode
- open opencode via terminal
/connectand connect provider (tested with mistral and open router)- open ~/.config/opencode.jsonc
- file is empty
Screenshot and/or share link
No response
Operating System
macOS 26.6.1
Terminal
macOS build in Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.