./opencode.json 团队统一省钱路由配置
{
"$schema": "https://opencode.ai/config.json",
"model": "costlean/leanrouter-auto",
"small_model": "costlean/deepseek-v3-lean",
"provider": {
"costlean": {
"npm": "@ai-sdk/openai-compatible",
"name": "CostLean LeanRouter Smart Gateway",
"options": {
"baseURL": "https://api.costlean.com/v1",
"apiKey": "{env:COSTLEAN_API_KEY}",
"headers": {
"X-CostLean-Policy": "balanced",
"X-CostLean-Cron-Guard": "zero-diff-shortcircuit",
"X-CostLean-Max-Loop-Retries": "2"
}
},
"models": {
"leanrouter-auto": {
"name": "LeanRouter Auto (Semantic Cache + Tiered Routing · -68%)",
"limit": { "context": 128000, "output": 8192 }
},
"deepseek-v3-lean": {
"name": "DeepSeek-V3 Lean (Sub-Bot Execution Tier)",
"limit": { "context": 64000, "output": 8192 }
},
"claude-sonnet-lean": {
"name": "Claude Sonnet Lean (Manager Planning + Prefix Cache)",
"limit": { "context": 200000, "output": 8192 }
}
}
}
}
}