What this thread does
Pin the session, title and compaction models to your local provider, then check the inference server’s request log during a new session and a compaction.
Do first: run opencode --version
Run opencode --version. As of November 2026, this recipe targets OpenCode 2.4.1 (released 2026-11-23), a V2 release in the official release list, checked 2026-11-24. It does not describe a complete V1 upgrade.
1. In /models, select an installed local model. Copy its actual provider/model ID; do not copy an arbitrary model name from a tutorial. Model selection. 2. In the project’s opencode.json, set model and both maintenance overrides to that ID. Replace the placeholder in this example before using it:
{
"model": "ollama/<installed-model-id>",
"agents": {
"title": { "model": "ollama/<installed-model-id>" },
"compaction": { "model": "ollama/<installed-model-id>" }
}
}
The migration reference maps old small_model to agents.title.model. The compaction reference documents agents.compaction.model; an unresolvable compaction model falls back to the session model.
3. Start a new session and send a harmless prompt. Check the local inference server’s request log for the main response and title request. Then request compaction through the documented compaction operation and check the summary request too. These are proposed verification steps, not a reported successful trial. 4. If policy requires offline operation, test with outbound internet blocked while keeping the local inference service reachable. Treat that as a separate acceptance test. Successful routing alone does not establish an offline guarantee.
The problem
Selecting a local chat model leaves a separate question: which model processes the conversation to make its title and summary? A connection to a remote host does not, by itself, establish which content was sent.
Options, checked 2026-10-28
| Route | What it is for; when it wins | When it loses | Cost and limit facts |
|---|---|---|---|
| Explicit local overrides | Keeping maintenance inference on your own service; wins when conversation text must stay there | Local inference consumes your machine’s capacity; a small model may summarize poorly | Actual context and output limits depend on your installed model; this recipe establishes no universal RAM requirement |
| An explicitly chosen hosted maintenance model | Offloading titles or summaries when sending that conversation is permitted | Unsuitable when policy forbids sending the conversation to that provider | Charges depend on the selected endpoint; OpenCode’s Console model page says title generation can appear as low-cost model usage |
Pick explicit local overrides if keeping conversation processing on your own service is the requirement. Pick a hosted maintenance model if your data policy permits it and you prefer to offload that work.
For a solo developer, start with the same installed model for all three routes. For a small team, agree one configuration and test each developer’s endpoint. For an enterprise, require a network-level acceptance test before approving private code; configuration inspection alone is insufficient.
Public evidence
- u/Unusual_Principle536 asked, “I don't want to use it if it's true.” r/LocalLLaMA, 2026-10-21. A commenter described an imperfect packet capture; other comments disagreed. This establishes demand, not a confirmed leak.
- Kreathyn reported, “Thread-title generation runs on a metered model”. OpenCode issue #52004, 2026-09-29. This older technical report supports checking the title route separately; it is not proof about every local installation.
A prompt for your agent
Inspect the configured session, title and compaction model IDs. Propose the smallest configuration change that points all three to my installed local model. Use a disposable project to check main, title and summary requests in the inference logs. Report any other network destinations separately. Ask before changing network policy.
Mistakes
- Treating
small_modelas the native V2 field rather than usingagents.title.model. - Testing only the chat response and assuming compaction follows the same route.
- Calling the setup fully offline because three inference requests reached the local service.
Limits
No agent, model, packet capture or compaction trial was run for this recipe. The community reports conflict. Routing configuration does not audit plugins, web tools, update checks, model-catalog requests or every possible outbound connection. Local summary quality and hardware capacity remain workload-dependent.
Started from a post by @Unusual_Principle536, packaged by the editor. Original post