{
  "$schema": "https://opencode.ai/config.json",
  "_comment": "OpenCode starter config for local/open-weight models. Two settings matter for privacy: point the provider at your local server, and stop session titles from going to a hosted model. Audit before pointing at sensitive repos - see permissions-checklist.md.",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "http://localhost:11434/v1" },
      "models": {
        "qwen3-coder": { "name": "qwen3-coder:latest" }
      }
    }
  },
  "model": "ollama/qwen3-coder",
  "small_model": "ollama/qwen3-coder",
  "_small_model_note": "small_model is used for session titles. Keep it on the local provider so titles never leave your machine.",
  "permission": {
    "edit": "ask",
    "bash": { "*": "ask", "git status": "allow", "git diff": "allow", "ls": "allow" }
  }
}
