summaryrefslogtreecommitdiff
path: root/opencode.json
blob: 7d8f9dc58db2e73e2f089bcb6efcd479aa29fb86 (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
{
  "$schema": "https://opencode.ai/config.json",
  "model": "ark-plan/glm-5.3-flash",
  "small_model": "ark-plan/glm-5.3-flash",
  "enabled_providers": [
    "strategy-go",
    "ark-plan"
  ],
  "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
          }
        }
      }
    }
  },
  "compaction": {
    "auto": true,
    "prune": true,
    "reserved": 192000
  },
  "permission": {
    "*": "allow",
    "external_directory": "deny"
  }
}