-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathopencode.json
More file actions
120 lines (120 loc) · 2.47 KB
/
opencode.json
File metadata and controls
120 lines (120 loc) · 2.47 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"build": {
"permission": {
"bash": {
"$HOME/.claude/skills/qmd-knowledge/scripts/record.sh": "allow",
"$HOME/.config/opencode/skills/qmd-knowledge/scripts/record.sh": "allow",
"git push": "ask",
"qmd": "allow",
"qmd get": "allow",
"qmd query": "allow",
"qmd search": "allow"
}
}
}
},
"default_agent": "plan",
"formatter": {
"biome": {
"command": ["biome", "check", "--write", "$FILE"],
"extensions": [".ts", ".tsx", ".js", ".jsx"]
},
"gofmt": {
"command": ["gofmt", "-w", "$FILE"],
"extensions": [".go"]
},
"prettier": {
"command": ["npx", "prettier", "--write", "$FILE"],
"extensions": [".md", ".mdx"]
},
"ruff": {
"command": ["ruff", "format", "$FILE"],
"extensions": [".py"]
},
"rustfmt": {
"command": ["rustfmt", "$FILE"],
"extensions": [".rs"]
},
"shfmt": {
"command": ["shfmt", "-w", "$FILE"],
"extensions": [".sh"]
},
"stylua": {
"command": ["stylua", "$FILE"],
"extensions": [".lua"]
}
},
"instructions": ["~/.ai-tools/best-practices.md", "~/.ai-tools/MEMORY.md"],
"mcp": {
"context7": {
"enabled": true,
"type": "remote",
"url": "https://mcp.context7.com/mcp"
},
"qmd": {
"command": ["qmd", "mcp"],
"enabled": true,
"type": "local"
},
"chrome-devtools": {
"enabled": true,
"type": "local",
"command": ["npx", "-y", "chrome-devtools-mcp@latest"]
},
"fff": {
"type": "local",
"command": ["fff-mcp"],
"enabled": true
},
"sequential-thinking": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-sequential-thinking"
],
"enabled": true
},
"react-grab-mcp": {
"type": "local",
"command": ["npx", "-y", "@react-grab/mcp", "--stdio"]
}
},
"plugin": ["@plannotator/opencode@latest"],
"provider": {
"llama.cpp": {
"npm": "@ai-sdk/openai-compatible",
"name": "llama-server (local)",
"options": {
"baseURL": "http://192.168.1.11:8000/v1"
},
"models": {
"glm": {
"name": "GLM-4.7-Flash (local)",
"limit": {
"context": 32768,
"output": 16384
}
}
}
},
"ollama": {
"models": {
"minimax-m2.5:cloud": {
"limit": {
"context": 204800,
"output": 128000
},
"name": "minimax-m2.5:cloud"
}
},
"name": "Ollama (local)",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://127.0.0.1:11434/v1"
}
}
}
}