oh-aicoding-tool
v0.1.36
Published
Configure AI coding tools with Langfuse tracing and install the oh-ai-report issue feedback plugin.
Readme
oh-aicoding-tool
oh-aicoding-tool 是 AI 编码工具的一体化安装入口,当前聚合两类能力:
- Langfuse 追踪配置:支持 Claude Code、OpenCode、Codex。
- 问题反馈插件:为 OpenCode / Claude Code 安装
/report-ai-issue。
当前 npm 版本:0.1.36
快速使用
建议始终带 @latest:
npx oh-aicoding-tool@latest直接命令:
npx oh-aicoding-tool@latest langfuse setup
npx oh-aicoding-tool@latest langfuse setup opencode
npx oh-aicoding-tool@latest langfuse check opencode
npx oh-aicoding-tool@latest report install opencode --email [email protected]
npx oh-aicoding-tool@latest report install claude --email [email protected]
npx oh-aicoding-tool@latest report doctor本地开发运行:
node bin/cli.js
node bin/cli.js langfuse check
node bin/cli.js report doctor交互式安装
运行 npx oh-aicoding-tool@latest 会打开交互式菜单。
- 菜单默认不勾选任何安装项,避免误导用户。
- 使用方向键移动,
Space勾选,Enter确认。 - 如果终端不支持原始按键输入,会自动降级为数字输入模式。
- 选择 Langfuse 后,会进入内置的
oh-langfuse安装向导。 - 选择问题反馈插件后,会在 Langfuse 安装结束后再询问邮箱,避免 readline 状态影响后续方向键和空格输入。
Langfuse
Langfuse 能力来自内置的 oh-langfuse,支持:
- Claude Code Langfuse
- OpenCode Langfuse
- Codex Langfuse
员工号必须匹配:
^[a-z](?:\d{8}|wx\d{7})$示例:h00613222、hwx1234567。
OpenCode 在 Windows 下会生成 launch-opencode-langfuse.cmd,并写入用户级 LANGFUSE_* 环境变量。当前终端不会立即继承用户级环境变量,新开终端或使用 launcher 即可生效。check opencode 会把用户级环境变量和 launcher 都作为有效来源,避免把刚安装完的 Windows 环境误报为失败。
WSL 用户请在 WSL shell 中直接安装和检查,不做 Windows 到 WSL 转发:
npx oh-aicoding-tool@latest langfuse setup opencode --userId=h00613222 --yes
npx oh-aicoding-tool@latest langfuse check opencode问题反馈插件
问题反馈能力来自内置的 oh-aireport。它会安装 /report-ai-issue 命令,并把运行时复制到稳定目录,避免依赖临时 npx 缓存。
npx oh-aicoding-tool@latest report install opencode --email [email protected]
npx oh-aicoding-tool@latest report install claude --email [email protected]
npx oh-aicoding-tool@latest report install both --email [email protected]邮箱用于标识提交人,会保存到对应工具的本地配置中。也可以使用 --skip-email 跳过。
命令
oh-aicoding-tool
oh-aicoding-tool langfuse setup
oh-aicoding-tool langfuse setup claude
oh-aicoding-tool langfuse setup opencode
oh-aicoding-tool langfuse setup codex
oh-aicoding-tool langfuse check
oh-aicoding-tool langfuse check environment
oh-aicoding-tool langfuse check claude
oh-aicoding-tool langfuse check opencode
oh-aicoding-tool langfuse check codex
oh-aicoding-tool report install opencode
oh-aicoding-tool report install claude
oh-aicoding-tool report install both
oh-aicoding-tool report doctor兼容入口:
code-tool-langfuseopencode-ohai-reportohai-report
维护命令
node --check bin/cli.js
npm pack --dry-run