e748e9c93f
The RAG plugin probes a local embedding backend (Ollama on localhost:11434 by default) at init with no timeout. When Ollama isn't running, opencode hangs after loading plugins and never starts. Dropped it from the template and documented re-enable steps + the --pure diagnostic in the README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
202 lines
5.3 KiB
Plaintext
202 lines
5.3 KiB
Plaintext
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"disabled_providers": [],
|
|
"model": "ai/kimi-k2.6",
|
|
"small_model": "ai/miaoda-model-flash",
|
|
"provider": {
|
|
"ai": {
|
|
"npm": "@ai-sdk/openai-compatible",
|
|
"options": {
|
|
"baseURL": "https://ai.fs.nomsg.cn/v1",
|
|
"apiKey": "${OPENCODE_API_KEY}",
|
|
"setCacheKey": true
|
|
},
|
|
"models": {
|
|
"doubao-seed-2.0-pro": {
|
|
"id": "doubao-seed-2.0-pro",
|
|
"name": "Doubao Seed 2.0 Pro",
|
|
"tool_call": true
|
|
},
|
|
"glm-5.1": {
|
|
"id": "glm-5.1",
|
|
"name": "GLM 5.1",
|
|
"tool_call": true
|
|
},
|
|
"grok-4.3": {
|
|
"id": "grok-4.3",
|
|
"name": "Grok 4.3",
|
|
"tool_call": true
|
|
},
|
|
"kimi-k2.6": {
|
|
"id": "kimi-k2.6",
|
|
"name": "Kimi K2.6",
|
|
"tool_call": true,
|
|
"reasoning": true
|
|
},
|
|
"miaoda-auto-multimodal": {
|
|
"id": "miaoda-auto-multimodal",
|
|
"name": "Miaoda Auto Multimodal",
|
|
"tool_call": true
|
|
},
|
|
"miaoda-model-auto": {
|
|
"id": "miaoda-model-auto",
|
|
"name": "Miaoda Model Auto",
|
|
"tool_call": true
|
|
},
|
|
"miaoda-model-flash": {
|
|
"id": "miaoda-model-flash",
|
|
"name": "Miaoda Model Flash",
|
|
"tool_call": true
|
|
},
|
|
"mimo-v2.5": {
|
|
"id": "mimo-v2.5",
|
|
"name": "Mimo V2.5",
|
|
"tool_call": true
|
|
},
|
|
"mimo-v2.5-pro": {
|
|
"id": "mimo-v2.5-pro",
|
|
"name": "Mimo V2.5 Pro",
|
|
"tool_call": true
|
|
},
|
|
"minimax-m3": {
|
|
"id": "minimax-m3",
|
|
"name": "MiniMax M3",
|
|
"tool_call": true
|
|
},
|
|
"qwen-3.6-plus": {
|
|
"id": "qwen-3.6-plus",
|
|
"name": "Qwen 3.6 Plus",
|
|
"tool_call": true
|
|
},
|
|
"step-3.5-flash": {
|
|
"id": "step-3.5-flash",
|
|
"name": "Step 3.5 Flash",
|
|
"tool_call": true
|
|
},
|
|
"step-3.5-flash-2603": {
|
|
"id": "step-3.5-flash-2603",
|
|
"name": "Step 3.5 Flash 2603",
|
|
"tool_call": true
|
|
},
|
|
"step-3.7-flash": {
|
|
"id": "step-3.7-flash",
|
|
"name": "Step 3.7 Flash",
|
|
"tool_call": true
|
|
},
|
|
"step-router-v1": {
|
|
"id": "step-router-v1",
|
|
"name": "Step Router V1",
|
|
"tool_call": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"plugin": [
|
|
"oh-my-openagent",
|
|
"opencode-mem",
|
|
"opencode-pty",
|
|
"@tarquinen/opencode-dcp",
|
|
"opencode-command-inject",
|
|
"opencode-notify",
|
|
"@gotgenes/opencode-agent-identity",
|
|
"@ramtinj95/opencode-tokenscope"
|
|
],
|
|
"mcp": {
|
|
"git": {
|
|
"type": "local",
|
|
"command": ["git-mcp-server"],
|
|
"enabled": true
|
|
},
|
|
"filesystem": {
|
|
"type": "local",
|
|
"command": ["mcp-server-filesystem", "${PROJECTS_PATH}"],
|
|
"enabled": true
|
|
},
|
|
"jina": {
|
|
"type": "local",
|
|
"command": ["jina-mcp-tools"],
|
|
"enabled": true
|
|
},
|
|
"codegraph": {
|
|
"type": "local",
|
|
"command": ["codegraph", "serve", "--mcp"],
|
|
"enabled": true
|
|
},
|
|
"smart-tree": {
|
|
"type": "local",
|
|
"command": ["/home/chaos/.local/bin/st", "--mcp"],
|
|
"enabled": true
|
|
},
|
|
"dbhub": {
|
|
"type": "local",
|
|
"command": ["dbhub", "--transport", "stdio", "--demo"],
|
|
"enabled": false
|
|
},
|
|
"memory": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@modelcontextprotocol/server-memory"],
|
|
"enabled": true
|
|
},
|
|
"playwright": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@playwright/mcp@latest"],
|
|
"enabled": true
|
|
},
|
|
"chrome-devtools": {
|
|
"type": "local",
|
|
"command": ["chrome-devtools-mcp"],
|
|
"enabled": true
|
|
},
|
|
"github": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
"enabled": true
|
|
},
|
|
"context7": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@upstash/context7-mcp@latest"],
|
|
"enabled": true
|
|
},
|
|
"exa": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "mcp-remote", "https://mcp.exa.ai/mcp"],
|
|
"enabled": true
|
|
},
|
|
"sequential-thinking": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@modelcontextprotocol/server-sequential-thinking"],
|
|
"enabled": true
|
|
},
|
|
"brave-search": {
|
|
"type": "local",
|
|
"command": ["npx", "-y", "@brave/brave-search-mcp-server"],
|
|
"enabled": true,
|
|
"env": {
|
|
"BRAVE_API_KEY": "${BRAVE_API_KEY}"
|
|
}
|
|
}
|
|
},
|
|
"skills": {
|
|
"paths": ["~/.config/opencode/skills"]
|
|
},
|
|
"agent": {
|
|
"explorer": {
|
|
"description": "Read-only codebase explorer for gathering evidence before changes are proposed.",
|
|
"mode": "subagent",
|
|
"model": "ai/kimi-k2.6",
|
|
"permission": { "edit": "deny", "bash": "ask" }
|
|
},
|
|
"reviewer": {
|
|
"description": "PR reviewer focused on correctness, security, and missing tests.",
|
|
"mode": "subagent",
|
|
"model": "ai/kimi-k2.6",
|
|
"permission": { "edit": "deny", "bash": "ask" }
|
|
},
|
|
"docs-researcher": {
|
|
"description": "Documentation specialist that verifies APIs, framework behavior, and release notes.",
|
|
"mode": "subagent",
|
|
"model": "ai/kimi-k2.6",
|
|
"permission": { "edit": "deny", "bash": "ask" }
|
|
}
|
|
}
|
|
} |