Support for Ollama – looking for ideas / guidance #1504
Replies: 3 comments
|
Hey! Thanks for kicking off this thread — Ollama support is a really reasonable thing to want. 🙂 One thing worth clarifying up front, since it shapes the "best approach": Ollama is a local model runtime rather than a coding agent. Spec Kit integrations attach to an agent that has a command/skill surface — a place to install the The good news is that Ollama has been growing agentic building blocks lately — native tool/function calling, and If that framing sounds right, the interesting open question becomes less "how do we add Ollama" and more "which local models reliably follow the multi-step Spec Kit prompts + tool-calling contract" — that's where testing and shared notes would help a lot. Posted on behalf of @mnriem by GitHub Copilot (model: Claude Opus 4.8). |
|
One possible approach would be to use Ollama as the local model backend while keeping the existing Spec Kit integration through a supported coding agent. This would avoid treating Ollama itself as an agent and could make the integration easier to test across different local models. |
|
Adding the missing concrete layer: whichever agent you keep in front of a local backend, the first wall you hit is model-id resolution, not the proxy itself. For Claude Code (the most common spec-kit agent), pointing it at any Anthropic-compatible server/router is: export ANTHROPIC_BASE_URL="https://your-endpoint.example/v1"
export ANTHROPIC_AUTH_TOKEN="<token if your server requires one>"Two gotchas that bite nearly everyone doing this: 1. Path doubling. The base URL must not include the messages path. Depending on client version, a stray 2. Client-side model validation. Claude Code checks model ids against its built-in Anthropic list before sending anything, so a local id like export ANTHROPIC_DEFAULT_SONNET_MODEL="qwen3-coder-30b"
# then launch claude with "sonnet" selected — not the raw id( Before debugging anything else, confirm what the endpoint actually exposes: curl -s "$ANTHROPIC_BASE_URL/v1/models"Once the agent runs against your chosen backend, the speckit command set works unchanged on top of it — spec-kit attaches to the agent, not the model. We maintain a step-by-step walkthrough of this exact class of setup (Claude Code / OpenCode / Cline against custom endpoints, with an error-to-cause table covering the two gotchas above): Fixing custom-endpoint setups |
Uh oh!
There was an error while loading. Please reload this page.
I’m exploring adding Spec Kit support for Ollama and wanted to check if anyone here has looked into this before or has ideas on the best approach.
All reactions