{
  "$schema": "https://opencode.ai/config.json",
  "_readme": [
    "Purpose: OpenCode pointed at the Part 9 gateway and at three local engines, with",
    "permissions set so nothing runs without being asked. Platform: all (spark, strix,",
    "mac, nvidia). Minimum memory: 16 GB for the coder model behind the alias.",
    "Assumes: saved as opencode.json in the project root, or as",
    "~/.config/opencode/opencode.json for every project. Every key below is from the",
    "OpenCode providers, config and permissions documentation read on 2026-09-09.",
    "Delete this _readme key if your editor's schema validation objects to it; it is",
    "documentation and nothing reads it."
  ],
  "provider": {
    "gateway": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Part 9 local gateway",
      "options": {
        "baseURL": "http://127.0.0.1:4000/v1"
      },
      "models": {
        "local/coder": {
          "name": "Coder through the gateway alias",
          "limit": {
            "context": 131072,
            "output": 32768
          }
        },
        "local/chat": {
          "name": "Chat through the gateway alias",
          "limit": {
            "context": 32768,
            "output": 8192
          }
        }
      }
    },
    "llama.cpp": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "llama-server (local)",
      "options": {
        "baseURL": "http://127.0.0.1:8080/v1"
      },
      "models": {
        "qwen3-coder:a3b": {
          "name": "Qwen3-Coder 30B-A3B (local)",
          "limit": {
            "context": 131072,
            "output": 65536
          }
        }
      }
    },
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://127.0.0.1:11434/v1"
      },
      "models": {
        "qwen3-coder:30b": {
          "name": "Qwen3-Coder 30B via Ollama"
        }
      }
    },
    "lmstudio": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "LM Studio (local)",
      "options": {
        "baseURL": "http://127.0.0.1:1234/v1"
      },
      "models": {
        "qwen3-coder-30b-a3b": {
          "name": "Qwen3-Coder 30B-A3B via LM Studio"
        }
      }
    }
  },
  "model": "gateway/local/coder",
  "small_model": "gateway/local/chat",
  "instructions": [
    "AGENTS.md",
    "docs/coding-standards.md"
  ],
  "permission": {
    "*": "ask",
    "read": "allow",
    "glob": "allow",
    "grep": "allow",
    "edit": "ask",
    "bash": "ask",
    "webfetch": "deny",
    "websearch": "deny",
    "external_directory": "deny"
  }
}
