Azure 模型配置
在环境变量中添加以下变量,然后重启软件即可:
AZURE_RESOURCE_NAME=""
AZURE_OPENAI_API_KEY="你的 Azure API Key"
AZURE_OPENAI_API_VERSION="2025-xx-xx-xxx"
oh-my-opencode 插件安装
首先需要安装 Bun,在 PowerShell 中运行:
# 安装 Bun
irm https://bun.sh/install.ps1 | iex
# 装完后关闭并重新打开终端,让 PATH 生效,然后确认版本
bun --version
安装 oh-my-opencode:
bunx oh-my-opencode install
oh-my-opencode 安装器调用的命令是 opencode,但 OpenCode Desktop App 不会把 opencode 放到系统 PATH 里,所以 oh-my-opencode 可能会提示 "OpenCode is not installed"。
在安装目录下可以看到 OpenCode.exe 和 opencode-cli.exe 两个文件。最省事的做法是在 ~/.bun/bin(已在 PATH)放一个 opencode.cmd 包装器。
- 先确认 CLI 本体可运行,在 PowerShell 执行:
& "D:\software\OpenCode\opencode-cli.exe" --version
- 创建 opencode 命令别名
$exe = "D:\software\OpenCode\opencode-cli.exe"
$shim = "$env:USERPROFILE\.bun\bin\opencode.cmd"
@echo off
`"$exe`" %* | Set-Content -Encoding ASCII $shim
关闭当前终端,重新打开一个 PowerShell,验证:
opencode --version
- 安装 oh-my-opencode
bunx oh-my-opencode install
安装成功后,重启 OpenCode Desktop App 验证。
至此 OpenCode Desktop App 配置完成。
Superpowers 安装
直接在 OpenCode 输入以下命令:
Clone https://github.com/obra/superpowers to ~/.config/opencode/superpowers, then create directory ~/.config/opencode/plugins, then symlink ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js to ~/.config/opencode/plugins/superpowers.js, then symlink ~/.config/opencode/superpowers/skills to ~/.config/opencode/skills/superpowers, then restart opencode.

