install.sh
install.sh 做了什么
一行 curl 命令,装好 omb 全套。展开看每一步在干啥 —— IDE / MCP 客户端的接入是自动完成的,无需手动配置。
$ curl -fsSL https://api.omb.org.cn/install.sh | sh
安装的内容
- omb CLI —— 走 stdio 的 MCP server,IDE / agent 平台用它驱动浏览器
- Oh My Browser 浏览器扩展 —— Chrome 上你的真实登录态,扩展跑在那里
- 5 家 IDE 的 skill / rules / commands —— Claude Code、Cursor、Codex、Windsurf、Continue 自动接入
- config 写到 ~/.omb/config.json —— region(CN/Global)+ API endpoint 选择
自动完成,不用手动配
脚本会检测你电脑上已安装的 IDE,只把 skill 投放到对应位置。已存在但被你改过的文件不会被覆盖 —— 新内容落到 .omb-new 旁边,你自己决定要不要替换。
装到哪里去了
- CLI binary —— /usr/local/bin/omb (或 ~/.local/bin)
- 扩展 —— Chrome 扩展商店或本地 unpacked
- 用户配置 —— ~/.omb/config.json
- IDE skill —— ~/.claude/skills、~/.codex/agents/skills、~/.cursor/rules、~/.codeium/windsurf/、~/.continue/rules
卸载
运行 `omb uninstall` 移除 CLI + 配置 + IDE skill。浏览器扩展需要在 Chrome 里手动移除。
常见问题
我已经手动配过 IDE 的 mcpServers,还需要 install.sh 吗?
需要。install.sh 不只是配 IDE,还装 omb CLI 本身和浏览器扩展 —— 这两个是必需的。你手改的 mcpServers 配置不会被覆盖。
脚本会要 sudo 吗?
默认不要。CLI 装到 ~/.local/bin。如果你的 PATH 不含这个,脚本会提示加一行 .zshrc / .bashrc。
中国大陆 / 海外网络环境支持?
脚本自动检测:CN 走 api.omb.org.cn,海外走 api-browser.getohmy.com。你也可以用 `omb config set-api-base` 手动 pin。