OpenCode through Ollama¶
Use this route when Ollama should install/launch OpenCode and supply a local or cloud model. A standalone PATH installation of OpenCode is not required.
Prerequisites and connect¶
JSAT writes the same OpenCode MCP configuration used by a native installation and installs
/jsat plus /jsat-help. Ollama owns OpenCode installation, sign-in, and model selection.
You can also preserve Ollama's normal menu flow:
Select and launch a model¶
jsat ollama --tool opencode # interactive local/cloud selector
ollama pull qwen2.5:0.5b # or any tag from `ollama list`
jsat ollama --tool opencode -m qwen2.5:0.5b # exact local model
ollama signin
jsat ollama --tool opencode -m <model>-cloud
The selected model is injected into only the launched OpenCode process. It does not persist as
JSAT's direct AI provider and does not require another pull. A cloud model is authenticated with
ollama signin, not downloaded.
Remember a model for this tool¶
jsat connect ollama tool=opencode --model <model>-cloud saves that model as OpenCode's
default for this launch route. A later bare jsat ollama --tool opencode (or the shorthand
jsat ollama opencode) reuses it automatically instead of showing Ollama's interactive
selector — pass -m/--model explicitly to override it for a single launch.
Use and verify JSAT¶
Inside OpenCode:
Ask OpenCode to call jsat__get_index_status, and verify the model/provider shown in OpenCode's
status line. Seeing 1 MCP alone proves only that a server is registered; a successful tool call
proves it can execute.
Managed lifecycle¶
jsat start opencode --via ollama --model qwen2.5:0.5b
jsat ps
jsat restart opencode
jsat stop opencode
jsat resume opencode
jsat resume opencode --session SESSION_ID
With --via auto, JSAT prefers a PATH-visible native OpenCode. If none is visible and Ollama is
installed, it uses this route. Pass --via ollama to remove ambiguity.
Troubleshooting¶
- If OpenCode works via
ollama launch opencodebut direct JSAT says a model is missing, the two routes have different model configuration. Do not pull again unless you actually want direct local Ollama; launch OpenCode through Ollama with its selected model. - If
/jsatis absent, rerunjsat connect ollama tool=opencode, then restart OpenCode. - If MCP is listed but commands are absent, the MCP config loaded but command files did not; reconnect to reinstall both surfaces.
For a separately installed binary and OpenCode-owned provider, use native OpenCode.