uploaded OpenCode and Claude-Code Router configs

This commit is contained in:
2026-01-19 15:45:12 -07:00
commit 169bc392d4
2 changed files with 158 additions and 0 deletions

89
config.json Normal file
View File

@@ -0,0 +1,89 @@
{
"LOG": false,
"LOG_LEVEL": "debug",
"CLAUDE_PATH": "",
"HOST": "127.0.0.1",
"PORT": 3456,
"APIKEY": "",
"API_TIMEOUT_MS": 600000,
"PROXY_URL": "",
"NON_INTERACTIVE_MODE": false,
"Providers": [
{
"name": "nanogpt",
"api_base_url": "https://nano-gpt.com/api/v1legacy/chat/completions",
"api_key": "${NANOGPT_API_KEY}",
"models": [
"deepseek/deepseek-v3.2",
"deepseek/deepseek-v3.2:thinking",
"moonshotai/Kimi-K2-Instruct-0905",
"moonshotai/kimi-k2-thinking",
"zai-org/GLM-4.5-Air",
"zai-org/glm-4.7",
"zai-org/glm-4.7:thinking",
"Qwen/Qwen3-Next-80B-A3B-Instruct",
"Qwen/Qwen3-VL-235B-A22B-Instruct",
"qwen/qwen3-coder",
"qwen3-vl-235b-a22b-thinking",
"minimax/minimax-m2.1",
"openai/gpt-oss-120b",
"xiaomi/mimo-v2-flash",
"mistralai/devstral-2-123b-instruct-2512",
"mistralai/Devstral-Small-2505",
"zai-org/glm-4.7-flash",
"zai-org/glm-4.7-flash:thinking"
],
"transformer": {
"use": [
"reasoning"
]
}
}
],
"transformers": [
{
"name": "tooluse",
"models": [
"nanogpt,deepseek/deepseek-v3.2",
"nanogpt,qwen/qwen3-coder",
"nanogpt,moonshotai/Kimi-K2-Instruct-0905",
"nanogpt,moonshotai/kimi-k2-thinking"
]
}
],
"StatusLine": {
"enabled": true,
"currentStyle": "default",
"default": {
"modules": [
{
"type": "workDir",
"icon": "🧷",
"text": "{{workDirName}} ||",
"color": "bright_blue"
},
{
"type": "gitBranch",
"icon": "🌿",
"text": "{{gitBranch}} ||",
"color": "bright_green"
},
{
"type": "model",
"icon": "🤖",
"text": "{{model}} ||",
"color": "bright_yellow"
}
]
}
},
"Router": {
"default": "nanogpt,minimax/minimax-m2.1",
"background": "nanogpt,xiaomi/mimo-v2-flash",
"think": "nanogpt,deepseek/deepseek-v3.2:thinking",
"longContext": "nanogpt,zai-org/glm-4.7",
"longContextThreshold": 80000,
"webSearch": "nanogpt,zai-org/glm-4.7",
"image": "nanogpt,Qwen/Qwen3-VL-235B-A22B-Instruct"
}
}

69
opencode.json Normal file
View File

@@ -0,0 +1,69 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"nanogpt": {
"name": "nanogpt",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://nano-gpt.com/api/v1",
"stream": true,
"apiKey": "{env:NANOGPT_API_KEY}"
},
"models": {
"xiaomi/mimo-v2-flash": {
"id": "xiaomi/mimo-v2-flash"
},
"zai-org/glm-4.7": {
"id": "zai-org/glm-4.7"
},
"zai-org/glm-4.7:thinking": {
"id": "zai-org/glm-4.7:thinking"
},
"zai-org/GLM-4.5-Air": {
"id": "zai-org/GLM-4.5-Air"
},
"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": {
"id": "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8"
},
"Qwen/Qwen3-Next-80B-A3B-Instruct": {
"id": "Qwen/Qwen3-Next-80B-A3B-Instruct"
},
"Qwen/Qwen3-VL-235B-A22B-Instruct": {
"id": "Qwen/Qwen3-VL-235B-A22B-Instruct"
},
"minimax/minimax-m2.1": {
"id": "minimax/minimax-m2.1"
},
"zai-org/glm-4.7-flash": {
"id": "zai-org/glm-4.7-flash"
},
"zai-org/glm-4.7-flash:thinking": {
"id": "zai-org/glm-4.7-flash:thinking"
}
}
},
"litellm": {
"name": "litellm",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://litellm.navraj.me/v1",
"apiKey": "{env:LITELLM_MASTER_KEY}"
},
"models": {
"deepseek/deepseek-v3.2": {
"id": "deepseek/deepseek-v3.2"
},
"deepseek/deepseek-v3.2:thinking": {
"id": "deepseek/deepseek-v3.2:thinking"
},
"moonshotai/Kimi-K2-Instruct-0905": {
"id": "moonshotai/Kimi-K2-Instruct-0905"
},
"moonshotai/kimi-k2-thinking": {
"id": "moonshotai/kimi-k2-thinking"
}
}
}
},
"plugin": ["oh-my-opencode"]
}