[opencode] Add mcp and provider settings to opencode

This commit is contained in:
2026-07-28 11:49:30 -04:00
parent 935b95adbb
commit 1f3b74ae50

View File

@ -0,0 +1,29 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"api_key": "{env:ANTHROPIC_API_KEY}"
},
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (hr-macos)",
"options": {
"baseURL": "http://llm.service:11434/v1"
},
"models": {
"gemma4:latest": {},
"qwen3:8b-16k": {}
}
}
},
"mcp": {
"life": {
"type": "remote",
"url": "https://life.lab.unbl.ink/mcp",
"headers": {
"Authorization": "Token {env:LIFE_API_KEY}",
"Accept": "application/json"
}
}
}
}