English | 简体中文
a local gui for managing opencode configurations. toggle mcp servers, edit skills, manage plugins, handle auth - no json editing required.
npm install -g opencode-studio-servervisit opencode.micr.dev and click "Launch Backend" in the sidebar.
windows
quickstart.batmacos / linux
chmod +x quickstart.sh && ./quickstart.sh- mcp manager: toggle servers on/off, add new ones by pasting npx commands, delete unused configs
- profiles: isolated environments with separate configs, history, and sessions. switch instantly.
- skill editor: browse/edit skills, create from templates, import from url, bulk import multiple urls
- plugin hub: manage js/ts plugins, multiple templates (hooks, watchers, lifecycle), bulk import
- commands: browse and manage custom slash commands
- agents: manage custom agents with mode, model, tools, permissions (supports OMO format)
- usage dashboard: token costs, model breakdown, project stats from local message logs
- auth: login/logout per provider, save and switch between credential profiles
- github sync: push/pull config to a private github repo via
ghcli - backup/restore: export/import complete config including skills and plugins
- settings: general config, system prompt editor, oh my opencode model preferences
- i18n: internationalization support with Chinese (zh-CN) translation
OpenCode Studio supports multiple languages:
- English (default)
- Chinese (zh-CN) - 完整中文翻译
Language can be switched via the language switcher in the sidebar. Selection is saved in cookies and persists across sessions.
To add a new language:
- Create
client-next/messages/{locale}.json(e.g.,ja.jsonfor Japanese) - Copy structure from
en.jsonand translate all keys - Add locale to
client-next/src/i18n/request.ts
flowchart LR
A[Browser] -->|HTTP| B(Express API :1920+)
B -->|Read/Write| C[~/.config/opencode/]
C --> D[opencode.json]
C --> E[skill/]
C --> F[plugin/]
- detect: server finds your opencode config directory automatically
- read: loads opencode.json, skills, plugins, auth
- edit: make changes through the ui
- save: writes back to disk instantly
| route | actions |
|---|---|
/mcp |
toggle switches, add via npx command, search/filter |
/profiles |
create/switch isolated environments |
/skills |
create from template, bulk import, edit in monaco |
/plugins |
pick template, bulk import, click to edit |
/commands |
browse custom slash commands |
/agents |
manage agents with model, tools, permissions |
/usage |
token costs, model breakdown, project stats |
/auth |
login/logout, save/switch credential profiles |
/settings |
general, system prompt, github sync, oh my opencode models |
paste multiple raw github urls (one per line):
https://raw.githubusercontent.com/.../skills/brainstorming/SKILL.md
https://raw.githubusercontent.com/.../skills/debugging/SKILL.md
https://raw.githubusercontent.com/.../skills/tdd/SKILL.md
click fetch → preview with checkboxes → existing items unchecked → import selected
opencode studio supports deep links for one-click installs from external sites.
note: github blocks custom protocols like
opencodestudio://in user content. use a redirect page on github pages to bypass this.
| protocol | description |
|---|---|
opencodestudio://launch |
start backend only |
opencodestudio://launch?open=local |
start backend + open localhost:1080+ |
opencodestudio://install-mcp?name=NAME&cmd=COMMAND |
install mcp server |
opencodestudio://import-skill?url=URL |
import skill from url |
opencodestudio://import-plugin?url=URL |
import plugin from url |
add mcp server button (for docs/repos):
<a href="https://github.com/Microck/opencode-studio">
<img src="https://img.shields.io/badge/opencode-studio-brown" alt="Add with OpenCode Studio" />
</a>import skill button:
<a href="opencodestudio://import-skill?url=https%3A%2F%2Fraw.githubusercontent.com%2F...%2FSKILL.md">
Import Skill
</a>with environment variables:
opencodestudio://install-mcp?name=api-server&cmd=npx%20-y%20my-mcp&env=%7B%22API_KEY%22%3A%22%22%7D
parameters must be url-encoded:
- spaces →
%20 /→%2F:→%3A{→%7B}→%7D
when clicking deep links, users see a confirmation dialog showing the command or url and a warning about trusting the source.
opencode-studio/
├── client-next/ # next.js 16 frontend
│ ├── src/app/ # pages (mcp, profiles, skills, plugins, auth, settings, usage)
│ ├── src/components/ # ui components
│ ├── src/i18n/ # internationalization config
│ ├── messages/ # translation files (en.json, zh-CN.json)
│ └── public/ # static assets
├── server/
│ └── index.js # express api
├── quickstart.bat
├── quickstart.sh
└── package.json # runs both with concurrently
config locations:
- opencode config:
~/.config/opencode/ - studio data:
~/.config/opencode-studio/ - profiles:
~/.config/opencode-profiles/
| problem | fix |
|---|---|
| "opencode not found" | ensure ~/.config/opencode/opencode.json exists |
| port conflicts | both services auto-detect available ports (backend 1920+, frontend 1080+) |
| skills not showing | check ~/.config/opencode/skill/ has SKILL.md files |
| bulk import fails | ensure urls are raw github links |
| "Launch Backend" not working | run npm install -g opencode-studio-server first |
| protocol handler not registered | run opencode-studio-server --register as admin |
| github sync not working | run gh auth login first |
| agents not showing (OMO) | ensure oh-my-openagent.json exists with agents field |
mit
English | 简体中文
OpenCode 配置本地管理 GUI。切换 MCP 服务器、编辑技能、管理插件、处理认证 - 无需手动编辑 JSON。
npm install -g opencode-studio-server访问 opencode.micr.dev 并在侧边栏点击 "Launch Backend"。
Windows
quickstart.batmacOS / Linux
chmod +x quickstart.sh && ./quickstart.sh- MCP 管理器: 开关服务器、粘贴 npx 命令添加新服务器、删除未使用的配置
- 配置环境 (Profiles): 独立的配置环境,各自有配置、历史和会话。即时切换。
- 技能编辑器: 浏览/编辑技能、从模板创建、从 URL 导入、批量导入多个 URL
- 插件中心: 管理 JS/TS 插件、多种模板 (hooks、watchers、生命周期)、批量导入
- 命令: 浏览和管理自定义斜杠命令
- 代理 (Agents): 管理自定义代理,设置模式、模型、工具、权限 (支持 OMO 格式)
- 使用统计: Token 消耗、模型分布、项目统计
- 认证: 每个提供商登录/注销、保存和切换凭证配置
- GitHub 同步: 通过
ghCLI 推送/拉取配置到私有 GitHub 仓库 - 备份/恢复: 导出/导入完整配置(包括技能和插件)
- 设置: 常规配置、系统提示词编辑器、Oh My OpenCode 模型偏好
- 国际化: 支持多语言,已包含中文 (zh-CN) 翻译
OpenCode Studio 支持多种语言:
- 英文 (默认)
- 中文 (zh-CN) - 完整中文翻译
可通过侧边栏底部的语言切换器切换语言。选择会保存在 cookie 中,刷新后保持。
添加新语言:
- 创建
client-next/messages/{locale}.json(如ja.json用于日语) - 复制
en.json结构并翻译所有键 - 在
client-next/src/i18n/request.ts中添加 locale
flowchart LR
A[浏览器] -->|HTTP| B(Express API :1920+)
B -->|读写| C[~/.config/opencode/]
C --> D[opencode.json]
C --> E[skill/]
C --> F[plugin/]
- 检测: 服务器自动查找你的 opencode 配置目录
- 读取: 加载 opencode.json、技能、插件、认证信息
- 编辑: 通过 UI 进行修改
- 保存: 立即写入磁盘
| 路径 | 功能 |
|---|---|
/mcp |
开关切换、粘贴 npx 命令添加、搜索/过滤 |
/profiles |
创建/切换独立配置环境 |
/skills |
从模板创建、批量导入、Monaco 编辑器编辑 |
/plugins |
选择模板、批量导入、点击编辑 |
/commands |
浏览自定义斜杠命令 |
/agents |
管理代理的模型、工具、权限 |
/usage |
Token 消耗、模型分布、项目统计 |
/auth |
登录/注销、保存/切换凭证配置 |
/settings |
常规设置、系统提示词、GitHub 同步、模型偏好 |
粘贴多个 GitHub raw URL(每行一个):
https://raw.githubusercontent.com/.../skills/brainstorming/SKILL.md
https://raw.githubusercontent.com/.../skills/debugging/SKILL.md
https://raw.githubusercontent.com/.../skills/tdd/SKILL.md
点击获取 → 带复选框预览 → 已存在项目取消勾选 → 导入选中项
OpenCode Studio 支持深度链接,可从外部站点一键安装。
注意: GitHub 在用户内容中屏蔽自定义协议如
opencodestudio://。使用 GitHub Pages 重定向页面绕过此限制。
| 协议 | 描述 |
|---|---|
opencodestudio://launch |
仅启动后端 |
opencodestudio://launch?open=local |
启动后端 + 打开 localhost:1080+ |
opencodestudio://install-mcp?name=NAME&cmd=COMMAND |
安装 MCP 服务器 |
opencodestudio://import-skill?url=URL |
从 URL 导入技能 |
opencodestudio://import-plugin?url=URL |
从 URL 导入插件 |
添加 MCP 服务器按钮 (用于文档/仓库):
<a href="https://github.com/Microck/opencode-studio">
<img src="https://img.shields.io/badge/opencode-studio-brown" alt="Add with OpenCode Studio" />
</a>导入技能按钮:
<a href="opencodestudio://import-skill?url=https%3A%2F%2Fraw.githubusercontent.com%2F...%2FSKILL.md">
Import Skill
</a>带环境变量:
opencodestudio://install-mcp?name=api-server&cmd=npx%20-y%20my-mcp&env=%7B%22API_KEY%22%3A%22%22%7D
参数必须进行 URL 编码:
- 空格 →
%20 /→%2F:→%3A{→%7B}→%7D
点击深度链接时,用户会看到确认对话框,显示命令或 URL,并提示信任来源的警告。
opencode-studio/
├── client-next/ # Next.js 16 前端
│ ├── src/app/ # 页面 (mcp, profiles, skills, plugins, auth, settings, usage)
│ ├── src/components/ # UI 组件
│ ├── src/i18n/ # 国际化配置
│ ├── messages/ # 翻译文件 (en.json, zh-CN.json)
│ └── public/ # 静态资源
├── server/
│ └── index.js # Express API
├── quickstart.bat
├── quickstart.sh
└── package.json # 使用 concurrently 同时运行前后端
配置位置:
- OpenCode 配置:
~/.config/opencode/ - Studio 数据:
~/.config/opencode-studio/ - 配置环境:
~/.config/opencode-profiles/
| 问题 | 解决方案 |
|---|---|
| "opencode not found" | 确保 ~/.config/opencode/opencode.json 存在 |
| 端口冲突 | 两个服务自动检测可用端口 (后端 1920+, 前端 1080+) |
| 技能不显示 | 检查 ~/.config/opencode/skill/ 是否有 SKILL.md 文件 |
| 批量导入失败 | 确保 URL 是 GitHub raw 链接 |
| "Launch Backend" 不工作 | 先运行 npm install -g opencode-studio-server |
| 协议处理未注册 | 以管理员运行 opencode-studio-server --register |
| GitHub 同步不工作 | 先运行 gh auth login |
| Agents 不显示 (OMO) | 确保 oh-my-openagent.json 存在且包含 agents 字段 |
MIT
