opencode.jsonc 配置文件(参考)
·
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": [
],
"provider": {
"cucloud-cn": {
"name": "Unicom",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://aigw-gzgy2.cucloud.cn:8443/v1"
},
"models": {
"DeepSeek-V4-Flash": {
"name": "DeepSeek V4 Flash",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"DeepSeek-V4-Pro": {
"name": "DeepSeek V4 Pro",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-5": {
"name": "GLM 5",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-5.1": {
"name": "GLM 5.1",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
}
}
}
},
"plugin": [
"OContinue"
],
"permission": {
"*": "allow"
},
"mode": {
"build": {
"temperature": 0,
"permission": {
"*": "allow"
}
},
"plan": {
"temperature": 0,
"permission": {
"*": "allow"
}
}
},
"agent": {
"build": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "构建主代理,负责执行构建任务"
},
"plan": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "计划主代理,负责制定执行计划"
},
"sisyphus": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "西西弗斯主代理,执行持续性任务"
},
"general": {
"mode": "subagent",
"temperature": 0,
"description": "通用子代理,用于复杂搜索和多步任务",
"permission": {
"*": "allow"
}
},
"explore": {
"mode": "subagent",
"temperature": 0,
"description": "探索子代理,用于快速代码库探索",
"permission": {
"*": "allow"
}
}
}
}
opencode.json(字节跳动)
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"OContinue"
],
"permission": {
"*": "allow"
},
"mode": {
"build": {
"temperature": 0,
"permission": {
"*": "allow"
},
"options": {}
},
"plan": {
"temperature": 0,
"permission": {
"*": "allow"
},
"options": {}
}
},
"agent": {
"build": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "构建主代理,负责执行构建任务",
"options": {}
},
"plan": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "计划主代理,负责制定执行计划",
"options": {}
},
"sisyphus": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "西西弗斯主代理,执行持续性任务",
"options": {}
},
"general": {
"mode": "subagent",
"temperature": 0,
"description": "通用子代理,用于复杂搜索和多步任务",
"permission": {
"*": "allow"
},
"options": {}
},
"explore": {
"mode": "subagent",
"temperature": 0,
"description": "探索子代理,用于快速代码库探索",
"permission": {
"*": "allow"
},
"options": {}
}
},
"disabled_providers": [],
"model": "volcengine-plan/ark-code-latest",
"provider": {
"volcengine-plan": {
"npm": "@ai-sdk/openai-compatible",
"name": "Volcano Engine",
"options": {
"baseURL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"apiKey": "<你的API_KEY>"
},
"models": {
"ark-code-latest": {
"name": "Auto",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-code": {
"name": "Doubao-Seed-Code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-5.1": {
"name": "GLM-5.1",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-4.7": {
"name": "GLM-4.7",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"deepseek-v3.2": {
"name": "DeepSeek V3.2",
"limit": {
"context": 128000,
"output": 4096
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-code": {
"name": "Doubao-Seed-2.0-Code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-pro": {
"name": "Doubao-Seed-2.0-Pro",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-lite": {
"name": "Doubao-Seed-2.0-Lite",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"minimax-latest": {
"name": "MiniMax-M2.7",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"kimi-k2.6": {
"name": "Kimi-K2.6",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"kimi-k2.5": {
"name": "Kimi-K2.5",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
}
}
}
}
}
Unicom+ByteDance
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"OContinue"
],
"permission": {
"*": "allow"
},
"mode": {
"build": {
"temperature": 0,
"permission": {
"*": "allow"
},
"options": {}
},
"plan": {
"temperature": 0,
"permission": {
"*": "allow"
},
"options": {}
}
},
"agent": {
"build": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "构建主代理,负责执行构建任务",
"options": {}
},
"plan": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "计划主代理,负责制定执行计划",
"options": {}
},
"sisyphus": {
"mode": "primary",
"temperature": 0,
"permission": {
"*": "allow"
},
"description": "西西弗斯主代理,执行持续性任务",
"options": {}
},
"general": {
"mode": "subagent",
"temperature": 0,
"description": "通用子代理,用于复杂搜索和多步任务",
"permission": {
"*": "allow"
},
"options": {}
},
"explore": {
"mode": "subagent",
"temperature": 0,
"description": "探索子代理,用于快速代码库探索",
"permission": {
"*": "allow"
},
"options": {}
}
},
"disabled_providers": [],
"model": "volcengine-plan/ark-code-latest",
"provider": {
"volcengine-plan": {
"npm": "@ai-sdk/openai-compatible",
"name": "Volcano Engine",
"options": {
"baseURL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"apiKey": ""
},
"models": {
"ark-code-latest": {
"name": "Auto",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-code": {
"name": "Doubao-Seed-Code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-5.1": {
"name": "GLM-5.1",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"glm-4.7": {
"name": "GLM-4.7",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"deepseek-v3.2": {
"name": "DeepSeek V3.2",
"limit": {
"context": 128000,
"output": 4096
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-code": {
"name": "Doubao-Seed-2.0-Code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-pro": {
"name": "Doubao-Seed-2.0-Pro",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"doubao-seed-2.0-lite": {
"name": "Doubao-Seed-2.0-Lite",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"minimax-latest": {
"name": "MiniMax-M2.7",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"kimi-k2.6": {
"name": "Kimi-K2.6",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
},
"kimi-k2.5": {
"name": "Kimi-K2.5",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
}
}
}
},
"cucloud-cn": {
"name": "Unicom",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://aigw-gzgy2.cucloud.cn:8443/v1",
"apiKey": ""
},
"models": {
"DeepSeek-V4-Flash": {
"name": "DeepSeek V4 Flash",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
},
"limit": {
"context": 1000000,
"output": 393216
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
}
},
"DeepSeek-V4-Pro": {
"name": "DeepSeek V4 Pro",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
},
"limit": {
"context": 1000000,
"output": 393216
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
}
},
"glm-5": {
"name": "GLM-5",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
},
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"glm-5.1": {
"name": "GLM-5.1",
"options": {
"thinking": {
"type": "enabled"
},
"extraBody": {
"think": "max"
}
},
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
}
}
}
}
}
更多推荐



所有评论(0)