summaryrefslogtreecommitdiff
path: root/opencode.json
diff options
context:
space:
mode:
authorHan Muqi <[email protected]>2026-09-18 22:35:00 +0800
committerHan Muqi <[email protected]>2026-09-18 22:35:00 +0800
commit7a035096ac513a5f5021788f8ad6cffb49452a38 (patch)
treeb06ae3650f28c3ea0556f2d79012ca074c846786 /opencode.json
downloadliving-village-7a035096ac513a5f5021788f8ad6cffb49452a38.tar.gz
docs: 《活着的村庄》设计文档 v1 + opencode.json(ark-plan/glm-5.3-flash) + README
Diffstat (limited to 'opencode.json')
-rw-r--r--opencode.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/opencode.json b/opencode.json
new file mode 100644
index 0000000..7d8f9dc
--- /dev/null
+++ b/opencode.json
@@ -0,0 +1,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"
+ }
+}