summaryrefslogtreecommitdiff
path: root/opencode.json
blob: a5bab546daeb7a3ac91561943e28c4651be26277 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
  "$schema": "https://opencode.ai/config.json",
  "model": "go-a/glm-5.3-flash",
  "small_model": "go-a/glm-5.3-flash",
  "enabled_providers": [
    "strategy-go",
    "ark-plan",
    "openai",
    "go-a",
    "go-b"
  ],
  "share": "disabled",
  "autoupdate": false,
  "provider": {
    "strategy-go": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenCode Go (Hermes credential)",
      "options": {
        "baseURL": "https://opencode.ai/zen/go/v1",
        "apiKey": "{env:OPENCODE_GO_API_KEY}"
      },
      "models": {
        "glm-5.3-flash": {
          "name": "GLM-5.3-Flash",
          "tool_call": true,
          "limit": {
            "context": 1000000,
            "input": 1000000,
            "output": 16000
          }
        }
      }
    },
    "ark-plan": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Volcano Ark Coding Plan",
      "options": {
        "baseURL": "https://ark.cn-beijing.volces.com/api/plan/v3",
        "apiKey": "{env:ARK_PLAN_API_KEY}"
      },
      "models": {
        "glm-5.3-flash": {
          "name": "GLM-5.3-Flash (Ark Plan)",
          "tool_call": true,
          "limit": {
            "context": 262144,
            "input": 262144,
            "output": 32000
          }
        }
      }
    },
    "openai": {
      "models": {
        "gpt-5.6-luna": {
          "options": {
            "reasoningEffort": "max"
          }
        }
      }
    }
  },
  "compaction": {
    "auto": true,
    "prune": true,
    "reserved": 192000
  },
  "permission": {
    "*": "allow",
    "external_directory": "deny"
  }
}