theniceboy/opencode/opencode.json
2026-07-15 14:27:47 +08:00

188 lines
3.4 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"small_model": "zai-coding-plan/glm-4.7",
"agent": {
"build": {
"color": "#ff79c6"
},
"plan": {
"color": "#8be9fd"
}
},
"disabled_providers": [
"openai",
"zai",
"zhipuai",
"zhipuai-coding-plan",
"zen",
"cloudflare",
"cloudflare-ai-gateway",
"cloudflare-workers-ai",
"amazon-bedrock"
],
"compaction": {
"auto": false
},
"plugin": [
"opencode-anthropic-auth@0.0.13"
],
"lsp": {
"dart": {
"command": [
"dart",
"language-server"
],
"extensions": [
".dart"
]
},
"biome": {
"disabled": true
}
},
"permission": {
"edit": "allow",
"bash": "allow",
"webfetch": "deny",
"consult": "deny",
"doom_loop": "allow",
"external_directory": "allow"
},
"mcp": {
"web": {
"type": "remote",
"url": "http://127.0.0.1:8775/searcher/mcp",
"enabled": true
},
"rednote": {
"type": "remote",
"url": "http://127.0.0.1:8776/rednote-evidence/mcp",
"enabled": true
},
"pinchtab": {
"type": "local",
"command": [
"node",
"/Users/david/.config/opencode/tool/pinchtab-mcp.mjs"
],
"enabled": false
},
"sentry": {
"type": "local",
"command": [
"npx",
"-y",
"mcp-remote@latest",
"https://mcp.sentry.dev/mcp"
],
"enabled": false
},
"google-maps": {
"type": "local",
"command": [
"npx",
"-y",
"@cablate/mcp-google-map",
"--stdio"
],
"enabled": false
}
},
"provider": {
"cliproxy": {
"api": "openai",
"name": "CLIProxyAPI (dmini)",
"options": {
"apiKey": "{env:CLIPROXY_API_KEY}",
"baseURL": "{env:CLIPROXY_BASE_URL}"
},
"models": {
"gpt-5.6-sol": {
"name": "gpt-5.6-sol",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
},
"gpt-5.6-terra": {
"name": "gpt-5.6-terra",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
},
"gpt-5.6-luna": {
"name": "gpt-5.6-luna",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
},
"gpt-5.5": {
"name": "gpt-5.5",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
},
"gpt-5.4": {
"name": "gpt-5.4",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
},
"gpt-5.4-mini": {
"name": "gpt-5.4-mini",
"attachment": true,
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"tool_call": true,
"reasoning": true,
"limit": {
"context": 272000,
"output": 128000
}
}
}
}
}
}