1 min read 63 words Updated Sep 24, 2026 Created Sep 24, 2026
#AI#CLI#LLM#tool

opencode is an agentic coding CLI.

The config is in ~/.config/opencode - make sure to create opencode.jsonthere.
In windows, C:\Users\Username.config\opencode

You can use it with Ollama to run models locally:

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "one-dark",
   "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "mistral:7b": {
          "name": "mistral:7b"
        }
      }
    }
  }
}

ctx7sk-b957ef30-3090-436b-a150-cf9a4925543f