anomalyco / anomalyco/opencode

opencode.jsonc is empty even though models are configured

Open
#42,009 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. install opencode
  2. open opencode via terminal
  3. /connect and connect provider (tested with mistral and open router)
  4. open ~/.config/opencode.jsonc
  5. file is empty
Screenshot and/or share link

No response

Operating System

macOS 26.6.1

Terminal

macOS build in Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.