opencode with local models

This commit is contained in:
2026-04-10 11:56:00 +02:00
parent ad37460160
commit 25a427b23a
4 changed files with 234 additions and 1 deletions
+37 -1
View File
@@ -1,4 +1,40 @@
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "plan"
"default_agent": "plan",
"agent": {
"local-build": {
"description": "Build agent optimized for local LM Studio models with explicit tool awareness",
"mode": "primary",
"prompt": "{file:./prompts/local-build.md}"
},
"local-plan": {
"description": "Plan agent for local LM Studio models - tool aware, no file writes without approval",
"mode": "primary",
"prompt": "{file:./prompts/local-plan.md}",
"permission": {
"edit": "ask",
"bash": "ask"
}
}
},
"provider": {
"lmstudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM Studio (local)",
"options": {
"baseURL": "http://127.0.0.1:1234/v1"
},
"models": {
"google/gemma-3-4b": {
"name": "google/gemma-3-4b"
},
"google/gemma-4-26b-a4b": {
"name": "google/gemma-4-26b-a4b"
},
"mistralai/ministral-3-14b-reasoning": {
"name": "mistralai/ministral-3-14b-reasoning"
}
}
}
}
}