Opencode

My opencode config

software
{
  "$schema": "https://opencode.ai/config.json",
  "theme": "system",
  "provider": {
    "<me>": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "<me>",
      "options": {
        "baseURL": "<site>",
        "headers": {
          "Authorization": "Bearer <token>"
        }
      },
      "models": {
        "Qwen3.8-27B": {
          "name": "Qwen3.8-27B",
          "attachment": true,
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "limit": {
            "context": 180000,
            "output": 32768
          }
        }
      }
    }
  },
  "model": "<me>/Qwen3.8-27B",
  "plugin": ["superpowers@git+https://github.com/obra/superpowers.git"],
  "formatter": true,
  "mcp": {
    "servers": {
      "forgejo": {
        "type": "local",
        "command": [
          "go",
          "run",
          "git.b4mad.industries/agentic-forges/forgejo-mcp/v3@latest",
          "--transport",
          "stdio"
        ],
        "environment": {
          "FORGEJO_URL": "https://git.<me>",
          "FORGEJO_ACCESS_TOKEN": "<token>",
          "FORGEJO_USER_AGENT": "opencode-forgejo-agent/1.0"
        }
      },
      "playwright": {
        "type": "local",
        "command": ["bunx", "@playwright/mcp@latest"],
        "enabled": false
      }
    },
    "chrome": {
      // wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
      "type": "local",
      "command": ["bunx", "chrome-devtools-mcp@latest", "--headless"],
      "enabled": true
    },
    "pdf": {
      "type": "local",
      "command": ["uvx", "pdf-mcp"],
      "enabled": false
    }
  },
  "lsp": {
    "typescript": {
      "command": ["bunx", "typescript-language-server@latest", "--stdio"],
      "extensions": [".ts", ".tsx", ".js", ".jsx"]
    },
    "gopls": {
      "command": ["go", "run", "golang.org/x/tools/gopls@latest"],
      "extensions": [".go"]
    }
  },
  "permission": {
    "lsp": "allow"
  }
}