Commit 5317a31
committed
feat: Add OpenCode Zen as a provider
OpenCode Zen (opencode.ai) is a curated AI gateway with tested/verified
models for coding agents. It offers:
- Free models: Big Pickle, MiniMax M2.5 Free, Kimi K2.5 Free
- Premium models: Claude, GPT-5.x, Gemini 3, Qwen3 Coder, etc.
- Pay-as-you-go pricing, often cheaper than direct providers
Provider details:
- ID: opencode
- Base URL: https://opencode.ai/zen/v1
- Auth: API key from opencode.ai/auth
- Format: OpenAI-compatible chat/completions
Includes:
- Provider definition with 40+ models
- CLI argument --opencode-api-key / OPENCODE_API_KEY env var
- Credential file mapping (opencode.key)
- Help text pointing to opencode.ai/auth1 parent 94b450f commit 5317a31
3 files changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
1449 | 1452 | | |
1450 | 1453 | | |
1451 | 1454 | | |
| 1455 | + | |
1452 | 1456 | | |
1453 | 1457 | | |
1454 | 1458 | | |
| |||
1598 | 1602 | | |
1599 | 1603 | | |
1600 | 1604 | | |
| 1605 | + | |
1601 | 1606 | | |
1602 | 1607 | | |
1603 | 1608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
198 | 246 | | |
199 | 247 | | |
200 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments