My configured ~/.opencode.json is immediately overwritten and reset upon launching opencode #867

Closed
opened 2026-02-16 17:28:36 -05:00 by yindo · 1 comment
Owner

Originally created by @oxysoft on GitHub (Jul 22, 2025).

I am trying to configure some models:

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "opencode",
  "model": "anthropic/claude-sonnet-4-20250514",
  "autoupdate": true,
  "provider": {
    "openrouter": {
      "models": {
        "moonshotai/kimi-k2": {
          "options": {
            "provider": {
              "order": ["baseten"],
              "allow_fallbacks": false
            }
          }
        }
      }
    },
    "openrouter": {
      "models": {
        "moonshotai/kimi-k2": {
          "options": {
            "provider": {
              "order": ["baseten"],
              "allow_fallbacks": false
            }
          }
        },
        "qwen/qwen3-235b-a22b-07-25:free": {}
      }
    }
  }
}

I run the application and close down

errloom  🍣 main 📝 ×2🗃️  ×3🛤️  ×1🏎️ 💨 ×2🐍 v3.13.5  took 10s
❮ cat ~/.opencode.json
───────┬───────────────────────────────────────────────────────────────────────────────────────────
       │ File: /home/nuck/.opencode.json
───────┼───────────────────────────────────────────────────────────────────────────────────────────
   1   │ {
   2   │   "data": {},
   3   │   "tui": {
   4   │     "theme": "gruvbox"
   5   │   },
   6   │   "shell": {}
   7   │ }
───────┴───────────────────────────────────────────────────────────────────────────────────────────
Originally created by @oxysoft on GitHub (Jul 22, 2025). I am trying to configure some models: ``` { "$schema": "https://opencode.ai/config.json", "theme": "opencode", "model": "anthropic/claude-sonnet-4-20250514", "autoupdate": true, "provider": { "openrouter": { "models": { "moonshotai/kimi-k2": { "options": { "provider": { "order": ["baseten"], "allow_fallbacks": false } } } } }, "openrouter": { "models": { "moonshotai/kimi-k2": { "options": { "provider": { "order": ["baseten"], "allow_fallbacks": false } } }, "qwen/qwen3-235b-a22b-07-25:free": {} } } } } ``` I run the application and close down ``` errloom 🍣 main 📝 ×2🗃️ ×3🛤️ ×1🏎️ 💨 ×2🐍 v3.13.5 took 10s ❮ cat ~/.opencode.json ───────┬─────────────────────────────────────────────────────────────────────────────────────────── │ File: /home/nuck/.opencode.json ───────┼─────────────────────────────────────────────────────────────────────────────────────────── 1 │ { 2 │ "data": {}, 3 │ "tui": { 4 │ "theme": "gruvbox" 5 │ }, 6 │ "shell": {} 7 │ } ───────┴─────────────────────────────────────────────────────────────────────────────────────────── ```
yindo closed this issue 2026-02-16 17:28:36 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jul 22, 2025):

You have installed the wrong opencode

@rekram1-node commented on GitHub (Jul 22, 2025): You have installed the wrong opencode
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#867