@crewkit/cli

中文文档
0.9.5发布于 2026/11/11SEE LICENSE IN LICENSECommonJS零依赖近 30 天下载 3162

Manage Claude Code agents for teams - role-based configs, A/B testing, accuracy tracking

原始使用文档
文档目录18 节
  1. Quick Start
  2. Why crewkit?
  3. Commands
  4. Features
  5. Installation
  6. Shell Script (recommended)
  7. npm
  8. Homebrew (macOS/Linux)
  9. Windows — use WSL
  10. Direct Download
  11. Shell completions
  12. Supported Platforms
  13. Requirements
  14. Troubleshooting
  15. Privacy & Telemetry
  16. Documentation
  17. Links
  18. License

@crewkit/cli

npm version

Manage your team's Claude Code agents from the terminal. Sync role-based configs and track what's working - all CLI-first. A/B experiments live in the dashboard at https://crewkit.io.

Quick Start

curl -fsSL https://crewkit.io/install.sh | sh
crewkit auth login
crewkit

That's it. Your team's agent configurations are now synced.

Why crewkit?

  • Team consistency: One source of truth for agent configurations across your org
  • Role-based modes: Junior devs get coaching mode, seniors get autonomy
  • A/B testing built-in: Experiment with prompts, measure what works
  • Works with your workflow: CLI-first, integrates with your existing tools

Commands

CommandDescription
crewkitStart a coding session — launches Claude Code with your team's agent configs
crewkit codeThe same launch under its explicit name
crewkit tuiThe same session inside crewkit's terminal interface (live sidebar)
crewkit -p "prompt"Headless mode for scripting and CI
crewkit auth loginAuthenticate with crewkit
crewkit auth statusCheck authentication status

Features

For Individual Developers

  • Automatic agent sync when you run crewkit
  • Session history and metrics tracking
  • Works in any git repository

For Teams

  • Role-based modes (coaching for juniors, autonomy for seniors)
  • Centralized configuration management
  • A/B testing framework for prompt optimization
  • Usage analytics and cost tracking

Installation

curl -fsSL https://crewkit.io/install.sh | sh

npm

npm install -g @crewkit/cli

Homebrew (macOS/Linux)

brew install karibew/tap/crewkit

Windows — use WSL

wsl npm install -g @crewkit/cli

This package ships no native Windows binary: those builds are paused. On native Windows npm install -g @crewkit/cli still installs — and says so — but the CLI refuses to run and points you here. The Chocolatey package (choco install crewkit) is frozen at 0.4.1 and no longer follows releases. WSL is the better target anyway — background observation is Unix-only.

Direct Download

See GitHub Releases for platform-specific binaries.

Shell completions

Tab completions for bash, zsh, fish, and PowerShell (Homebrew installs them automatically):

# bash
echo 'source <(crewkit completions bash)' >> ~/.bashrc

# zsh — add fpath+=~/.zfunc to ~/.zshrc before compinit
mkdir -p ~/.zfunc && crewkit completions zsh > ~/.zfunc/_crewkit

# fish
mkdir -p ~/.config/fish/completions && crewkit completions fish > ~/.config/fish/completions/crewkit.fish

crewkit completions --help has the full per-shell setup, including PowerShell.

Supported Platforms

  • macOS Apple Silicon (M1/M2/M3/M4)
  • Linux x64
  • Windows x64 — via WSL (install the Linux build there)

Not published: macOS Intel, and native Windows (paused).

Requirements

  • Node.js 18+ (for npm installation)
  • Git (for project detection)
  • A crewkit account (sign up free)

Troubleshooting

"Cannot connect to crewkit API"

  • Check your network connection
  • Verify authentication: crewkit auth status

"No agent configurations found"

  • Ensure you're in a git repository
  • Check that your org has configured agents at app.crewkit.io

Binary not found after install

  • Try reinstalling: npm install -g @crewkit/cli --force
  • Check if --no-optional flag was used (platform binaries are required)

Privacy & Telemetry

crewkit collects anonymous error reports via Sentry to improve reliability. No code, prompts, or personal data is collected. You can disable telemetry by setting either of these in your environment:

export CREWKIT_NO_TELEMETRY=1

DO_NOT_TRACK=1 is honoured too. With either set, no Sentry client is initialized at all — nothing is sent.

See our Privacy Policy for details.

Documentation

License

See Terms of Service for license details.

版本与发布记录

@crewkit/cli 共发布 74 个版本,首次发布于 2025/10/12;过去 12 个月发布了 69 个版本。

版本发布日期距今
0.9.5latest2026/11/11今天
0.9.42026/11/091 天前
0.9.32026/10/2912 天前
0.9.22026/10/2912 天前
0.9.12026/10/2714 天前
0.9.02026/10/2715 天前

关于 @crewkit/cli 的常见问题

@crewkit/cli 是什么?

Manage Claude Code agents for teams - role-based configs, A/B testing, accuracy tracking

如何安装 @crewkit/cli?

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

@crewkit/cli 支持 TypeScript 吗?

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

@crewkit/cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@crewkit/cli 需要什么版本的 Node.js?

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

@crewkit/cli 可以商用吗?

@crewkit/cli 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@crewkit/cli 的下载量有多少?

根据 npm 官方下载统计,@crewkit/cli 在 2026/10/11 – 2026/11/09 这 30 天内被下载 3,162 次,日均约 105 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@crewkit/cli 还在维护吗?

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