feat: add opencode config + sync.py (LiteLLM + MCP gateway)

This commit is contained in:
2026-05-21 08:03:41 +02:00
parent 8a3d94bfdc
commit 7d33a89a15
3 changed files with 208 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
{
"$schema": "https://opencode.ai/config.json",
"model": "openai/qwen3-coder-30b-a3b-instruct",
"small_model": "openai/gemini-2.5-flash-lite",
"provider": {
"openai": {
"name": "nuclide-litellm",
"options": {
"apiKey": "{env:OPENAI_API_KEY}",
"baseURL": "{env:OPENAI_BASE_URL}",
"timeout": 600000,
"chunkTimeout": 60000
}
},
"anthropic": {
"options": {
"apiKey": "{env:ANTHROPIC_API_KEY}",
"baseURL": "{env:ANTHROPIC_BASE_URL}",
"timeout": 600000
}
}
},
"mcp": {
"nuclide-dev": {
"type": "remote",
"url": "https://mcp.nuclide.systems/group/dev/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:MCP_GATEWAY_TOKEN}"
}
},
"nuclide-research": {
"type": "remote",
"url": "https://mcp.nuclide.systems/group/research/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:MCP_GATEWAY_TOKEN}"
}
},
"nuclide-personal": {
"type": "remote",
"url": "https://mcp.nuclide.systems/group/personal/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:MCP_GATEWAY_TOKEN}"
}
},
"nuclide-image": {
"type": "remote",
"url": "https://mcp.nuclide.systems/group/image/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:MCP_GATEWAY_TOKEN}"
}
},
"nuclide-storage": {
"type": "remote",
"url": "https://mcp.nuclide.systems/group/storage/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:MCP_GATEWAY_TOKEN}"
}
}
}
}