bitfab-cli

中文文档
0.2.512发布于 2026/11/03MITES Module

Install and configure the Bitfab plugin in Claude Code, Codex, or Cursor, or the Bitfab skill pack in Amp (Alpha).

原始使用文档
文档目录3 节
  1. Usage
  2. Terminal-native setup
  3. Amp

bitfab-cli

Install and configure the Bitfab plugin in Claude Code, Codex, Cursor, or Amp.

Usage

npx bitfab-cli init                       # Detect editors, prompt if multiple
npx bitfab-cli init --editor claude       # Install for Claude Code
npx bitfab-cli init --editor codex        # Install for Codex
npx bitfab-cli init --editor cursor       # Install for Cursor
npx bitfab-cli init --editor amp          # Install for Amp
npx bitfab-cli init --prompt "instrument the chat workflow"
npx bitfab-cli init --v2                    # Login + setup entirely in this terminal
npx bitfab-cli setup --v2 instrument        # Run one setup mode in this terminal
npx bitfab-cli setup --v2 --diagram         # Print the declarative Mermaid state diagram
npx bitfab-cli setup --prompt "modify the billing trace"
npx bitfab-cli session-logs enable        # Enable session log collection
npx bitfab-cli session-logs disable       # Disable session log collection
npx bitfab-cli session-logs status        # Show the saved session log setting
npx bitfab-cli analyze-repo --help        # Show help for analyze-repo
npx bitfab-cli help setup                 # Show help for setup

Terminal-native setup

init --v2 and setup --v2 run a declarative setup flow in the terminal through Claude Agent SDK. Setup reads the selected workflow and writes instrumentation and its replay registry directly. Login can open a browser. Template editing stays in the terminal. The agent asks for missing choices or required refactors and follows the terminal's tool permissions.

Set ANTHROPIC_API_KEY, or configure one of the Agent SDK's supported cloud providers, before using --v2. Bitfab authentication is separate: init --v2 opens the browser for login when needed, then returns to the terminal.

setup --v2 accepts wizard, explain, login, session-logs, instrument, modify, inspect, switch-org, view, replay, db-snapshot, templates, or analyze-repo. Add --diagram with any mode to inspect the exact state graph without authenticating or starting an agent.

Amp

--editor amp clones the Bitfab Amp plugin into ~/.config/amp/plugins/bitfab, confirms Amp loaded it with amp plugins list, then starts Amp and prints the skill to invoke (bitfab:setup, bitfab:update sdk), since Amp takes no initial message on launch. analyze-repo --editor amp runs headless through amp -x. --skip-permissions has no Amp launch flag; the CLI points at the amp.dangerouslyAllowAll setting instead.

版本与发布记录

bitfab-cli 共发布 504 个版本,首次发布于 2026/05/14;过去 12 个月发布了 504 个版本。

版本发布日期距今
0.2.512latest2026/11/03今天
0.2.5112026/11/012 天前
0.2.5102026/11/012 天前
0.2.5092026/11/012 天前
0.2.5082026/10/312 天前
0.2.5072026/10/304 天前

关于 bitfab-cli 的常见问题

bitfab-cli 是什么?

在Claude Code, Codex或Cursor中安装和配置Bitfab插件,或在Amp (Alpha)中安装和配置Bitfab技能包。

如何安装 bitfab-cli?

在项目目录运行 npm install bitfab-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 bitfab,可以用 npx bitfab 直接运行。

bitfab-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bitfab-cli 是否存在。

bitfab-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

bitfab-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

bitfab-cli 可以商用吗?

bitfab-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

bitfab-cli 还在维护吗?

最新版本 0.2.512 发布于 2026/11/03(今天);至今共发布 504 个版本,其中过去 12 个月发布了 504 个;首次发布于 2026/05/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。