/ de-omarchy / config / opencode / opencode.jsonc
swadhinbiswas Scrub committed API keys and personal paths; enforce secret scan pre-commit · 8/24/2026
70bd3af
192 lines · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "tokenrouter": {
      "api": "https://api.tokenrouter.com/v1",
      "name": "TokenRouter",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.tokenrouter.com/v1",
        "apiKey": "{env:TOKENROUTER_API_KEY}"
      },
      "models": {
        "z-ai/glm-5.2-free": {
          "id": "z-ai/glm-5.2-free",
          "name": "Z.AI: GLM 5.2 (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 1000000,
            "output": 8192
          }
        },
        "MiniMax-M3": {
          "id": "MiniMax-M3",
          "name": "MiniMax M3",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        },
        "moonshotai/kimi-k3-free": {
          "id": "moonshotai/kimi-k3-free",
          "name": "MoonshotAI: Kimi K3 (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 262144,
            "output": 8192
          }
        }
      }
    },
    "aihubmix": {
      "api": "https://aihubmix.com/v1",
      "name": "AiHubMix",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://aihubmix.com/v1",
        "apiKey": "{env:AIHUBMIX_API_KEY}"
      },
      "models": {
        "coding-kimi-k3-free": {
          "id": "coding-kimi-k3-free",
          "name": "Kimi K3 Code (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        }
      }
    },
    "agentrouter": {
      "api": "https://agentrouter.org/v1",
      "name": "AgentRouter (OpenAI Compatible)",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://agentrouter.org/v1",
        "apiKey": "{env:AGENTROUTER_API_KEY}"
      },
      "models": {
        "glm-5.2": {
          "id": "glm-5.2",
          "name": "GLM 5.2",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        }
      }
    },
    "inferx": {
      "api": "https://model.inferx.net/endpoints/v1",
      "name": "InferX",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://model.inferx.net/endpoints/v1",
        "apiKey": "{env:INFERX_API_KEY}"
      },
      "models": {
        "deepseek-v4-flash": {
          "id": "deepseek-v4-flash",
          "name": "DeepSeek V4 Flash",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 131072,
            "output": 8192
          }
        }
      }
    },
    "zenmux": {
      "api": "https://zenmux.ai/api/v1",
      "name": "Zenmux",
      "npm": "@ai-sdk/openai-compatible",
      "models": {
        "z-ai/glm-5.2-free": {
          "id": "z-ai/glm-5.2-free",
          "name": "Z.AI: GLM 5.2 (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 1000000,
            "output": 8192
          }
        },
        "z-ai/glm-4.7-flash-free": {
          "id": "z-ai/glm-4.7-flash-free",
          "name": "Z.AI: GLM 4.7 Flash (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        },
        "z-ai/glm-4.6v-flash-free": {
          "id": "z-ai/glm-4.6v-flash-free",
          "name": "Z.AI: GLM 4.6V Flash (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        },
        "moonshotai/kimi-k2.7-code-free": {
          "id": "moonshotai/kimi-k2.7-code-free",
          "name": "MoonshotAI: Kimi K2.7 Code (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 262144,
            "output": 8192
          }
        },
        "stepfun/step-3.7-flash-free": {
          "id": "stepfun/step-3.7-flash-free",
          "name": "StepFun: Step 3.7 Flash (Free)",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 256000,
            "output": 8192
          }
        }
      }
    }
  },
  "model": "tokenrouter/moonshotai/kimi-k3-free",
  "skills": {
    "paths": ["~/.config/opencode/skills"]
  }
}