info
official websit: OpenCode | The open source AI coding agent
installation
you should open magic tool to install opencode.
cli
windows
- install bun
powershell -c "irm bun.sh/install.ps1|iex"执行失败就手工下载 https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip 并放到C:\Users\Administrator.bun\bin\bun-windows-x64.zip中
- open new cmd, and
bun add -g opencode-ailinux / wsl
suggestion is via node(v20.x).
vs code
in vscode, install extension ‘opencode’.
click ‘Open opencode in new tab’ and you will see opencode tool.
ide
no officail plugins for jetbrains idea.
suggestion is using terminal (and typing opencode).
plugins
vim “C:\Users\Administrator.config\opencode\opencode.json”
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"superpowers@git+https://github.com/obra/superpowers.git",
"oh-my-openagent@latest"
]
}superpower
https://github.com/obra/superpowers
https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md
oh-my-opencode
website: https://github.com/opensoft/oh-my-opencode
bunx oh-my-opencode installfiles
C:\Users\Administrator\.config\opencode
| ----------------- opencode.json
| ----------------- oh-my-opencode.jsonfilename oh-my-opencode.json
https://github.com/ziho7/opencode-config/blob/main/oh-my-opencode.json
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"agents": {
"librarian": {
"model": "opencode/glm-4.7-free"
},
"explore": {
"model": "opencode/grok-code"
},
"oracle": {
"model": "opencode/grok-code"
},
"frontend-ui-ux-engineer": {
"model": "gemini/gemini-3-pro-preview"
},
"document-writer": {
"model": "gemini/gemini-3-flash"
},
"multimodal-looker": {
"model": "gemini/gemini-3-flash"
}
},
"categories": {
"quick": {
"model": "opencode/glm-4.7-free"
},
"deep": {
"model": "opencode/grok-code"
},
"ultrabrain": {
"model": "opencode/grok-code"
},
"writing": {
"model": "gemini/gemini-3-flash"
},
"visual-engineering": {
"model": "gemini/gemini-3-pro-preview"
},
"artistry": {
"model": "gemini/gemini-3-pro-preview"
},
"unspecified-low": {
"model": "opencode/glm-4.7-free"
},
"unspecified-high": {
"model": "opencode/grok-code"
}
}
}最后编辑:张三 更新时间:2026-06-08 19:38