@rimuruchan/ccb

中文文档
0.10.10发布于 2026/11/02UNLICENSED零依赖

Run the official Claude Code through a claude-code-bridge gateway

原始使用文档
文档目录3 节
  1. Get started
  2. Commands
  3. Installation notes

ccb

Run the official Claude Code through a claude-code-bridge gateway.

Get started

npm install -g --allow-scripts=@rimuruchan/ccb @rimuruchan/ccb
ccb login --gateway https://your-gateway.example
ccb account
ccb

Approve the device in your browser, then select an account your administrator has granted you access to.

CCB downloads and verifies Claude Code 2.1.295 from Anthropic on the first launch. Your Claude configuration, conversation history and plugins remain available.

Commands

CommandPurpose
ccb -cContinue the most recent conversation
ccb -rChoose a conversation to resume
ccb accountSwitch accounts
ccb statusCheck your connection and runtime
ccb login --renewRenew device authorization
ccb updateUpdate ccb and install or repair Claude Code
ccb --helpShow all CCB commands

ccb updates itself in the background with npm install -g, like Claude Code; ccb update does it now, and CCB_DISABLE_AUTOUPDATE=1 turns it off. The Claude Code version is maintained by CCB releases.

Installation notes

The platform package supplies a native CCB executable. The postinstall step links it to bin/ccb.exe, so CCB starts without Node. Claude Code is downloaded separately and verified against the official manifest and CCB's built-in checksum.

Recent npm releases run a package's install scripts only when they are allowed by name, and warn about the rest; --allow-scripts=@rimuruchan/ccb in the install command allows this one. npm 10 accepts the option too.

If npm install scripts are disabled, run the installed package's install.cjs once:

node "$(npm root -g)/@rimuruchan/ccb/install.cjs"

You can also run CCB through the package's cli-wrapper.cjs using Node.

版本与发布记录

@rimuruchan/ccb 共发布 39 个版本,首次发布于 2026/10/05;过去 12 个月发布了 39 个版本。

版本发布日期距今
0.10.10latest2026/11/021 天前
0.10.82026/11/021 天前
0.10.72026/11/021 天前
0.10.12026/10/313 天前
0.10.02026/10/303 天前
0.9.62026/10/276 天前

关于 @rimuruchan/ccb 的常见问题

@rimuruchan/ccb 是什么?

通过克劳德代码桥网关运行官方的克劳德代码

如何安装 @rimuruchan/ccb?

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

@rimuruchan/ccb 支持 TypeScript 吗?

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

@rimuruchan/ccb 需要什么版本的 Node.js?

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

@rimuruchan/ccb 可以商用吗?

@rimuruchan/ccb 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@rimuruchan/ccb 还在维护吗?

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