summaryrefslogtreecommitdiffhomepage
path: root/opencode.json
blob: 6cba9ba6a64bcbdb0093de9face01d3f9415f185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  "$schema": "https://opencode.ai/config.json",
  "model": "opencode/anthropic/claude-sonnet-4",
  "provider": {
    "opencode": {
      "name": "opencode",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://api.gateway.frank.dev.opencode.ai/v1"
      },
      "models": {
        "anthropic/claude-sonnet-4": {},
        "openai/gpt-4.1": {},
        "zhipu/glm-4.5-flash": {}
      }
    }
  },
  "mcp": {
    "context7": {
      "type": "remote",
      "url": "https://mcp.context7.com/sse"
    },
    "weather": {
      "type": "local",
      "command": ["opencode", "x", "@h1deya/mcp-server-weather"]
    }
  }
}