open-index/open-npm huggingface dataset:
npm package: @otdrfu/cck
Description: Claude Code Key Manager - Seamlessly manage multiple Anthropic API keys and launch Claude CLI
Author: todrfu
Latest version: 0.7.0

# CCK - Claude Code Key Manager

[English](./README.md) | [中文](./README.zh-CN.md)

> 轻松管理多个 Anthropic API 密钥并启动 Claude CLI。

## 特性

- 🔐 **安全的密钥管理** - 安全存储多个 API 密钥
- 🖥️ **Web UI** - 可选的可视化界面管理密钥

## 安装

```bash
npm install -g @otdrfu/cck
```

## 快速开始

```bash
# 添加你的第一个 API 密钥
cck add

# 启动 Claude CLI（交互式密钥选择）
cck

# 列出所有密钥
cck list
```

## 使用说明

### 密钥管理命令

```bash
# 列出所有 API 密钥
cck list
cck ls
cck list -f               # 显示完整密钥

# 查看指定密钥详情
cck show <key-name>
cck show <key-name> -f    # 显示完整密钥

# 添加新的 API 密钥
cck add

# 编辑 API 密钥
cck edit <key-name>

# 重命名密钥
cck rename <old-name> <new-name>

# 删除 API 密钥
cck remove <key-name>
cck rm <key-name>

# 复制密钥到剪贴板
cck copy <key-name>
cck cp <key-name>

# 显示当前默认密钥
cck current

# 切换默认密钥
cck use <key-name>

# 导出所有密钥到文件
cck export backup.json

# 从文件导入密钥
cck import backup.json           # 跳过已存在的密钥
cck import backup.json -o        # 覆盖已存在的密钥

# 显示帮助
cck help
```

### Web UI（可选）

Web UI 是一个可选功能，首次使用需要安装依赖。运行时会提示你是否安装（约需 2-3 分钟）。

```bash
# 启动 Web 管理界面（首次运行会提示安装）
cck web

# 或先手动安装
cck web --install

# 指定端口
cck web --port 8080

# 不自动打开浏览器
cck web --no-open
```

> **注意**：Web UI 文件会安装到 `~/.cck/web`。你可以在提示时选择跳过，之后通过 `cck web --install` 手动安装。

Web UI 提供以下功能：
- 📋 密钥列表展示（卡片式布局）
- ➕ 添加/编辑/删除密钥
- 🔍 搜索过滤
- ✅ 密钥有效性验证
- 📤 导入/导出
- 🌙 深色模式支持
- 🌍 语言切换（中/英）

### 启动 Claude CLI

```bash
# 交互式密钥选择
cck

# 使用默认密钥
cck --use-default

# 使用指定密钥
cck --key <key-name>

# 传递参数给 Claude CLI
cck -r                    # 重置会话
cck --verbose             # 详细输出
cck -r --verbose          # 组合参数

# 混合 CCK 和 Claude 选项
cck --key prod -r --verbose
```

## 配置

创建 `~/.cckrc` 文件来自定义行为：

```json
{
  "version": "1.0.0",
  "keysFile": "~/.cck/keys.json",
  "cacheFile": "~/.cck/cache",
  "logLevel": "info",
  "display": {
    "colorEnabled": true
  }
}
```

## 开发

```bash
# 克隆仓库
git clone https://github.com/todrfu/claude-code-key-manager.git
cd claude-code-key-manager

# 安装依赖
npm install
cd web && npm install && cd ..

# 构建
npm run build

# 运行测试
npm test

# 开发模式
npm run dev
```

## 发布

```bash
# 补丁版本发布 (0.5.0 -> 0.5.1)
npm run release:patch

# 次版本发布 (0.5.0 -> 0.6.0)
npm run release:minor

# 主版本发布 (0.5.0 -> 1.0.0)
npm run release:major
```

## 许可证

MIT © [todrfu](https://github.com/todrfu)

## 贡献

欢迎贡献！提交 PR 前请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。

## 更新日志

查看 [CHANGELOG.md](./CHANGELOG.md) 了解版本历史。
npm package: @otdrfu/cv
Description: hi cv engineer
Author: todrfu
Latest version: 0.1.4

# @cv-cli

+ [![Release](https://github.com/todrfu/cv-cli/actions/workflows/release.yml/badge.svg)](https://github.com/todrfu/cv-cli/actions/workflows/release.yml)

The global command for `cli` is: `cv`

```bash
➜  cv -h
Usage: cv [options] [command]

Options:
  -v, --version        output the version number
  -h, --help           display help for command

Commands:
  create|c             create a project
  install|i <pkgName>  install a cv template
  yo|y <projectName>   create cv template
  update               update cv self
  help [command]       display help for command
```

## create

Initialize a project and choose from different project templates. The default template will be downloaded and configured on first use:

- xxx template

If the desired template is not available, you can choose to install [other templates](#install).

```bash
✗  cv create
? Please select a template: (Use arrow keys)
  xxx template 
  yyy template 
❯ Don't have the template you want? Install a new template now?
```

## install

Install other templates, supporting both `npm` packages and `git url` packages.

The `npm` package for templates should have the prefix `cv-generator-`.

```bash
cv install cv-generator-pc-xxx
```

If the project corresponding to the `git url` is not a `yeoman-generator` package as specified by this project, it will be forcibly converted to a `yeoman-generator` package after downloading.

```bash
➜  cv install https://github.com/todrfu/xxx.git

# or specify the branch
➜  cv install https://github.com/todrfu/xxx.git#master
```

## yo

When you need to add template options, you can customize the project template using the `cv yo xxx` command to initialize a `Yeoman` project template. Fill in the content as needed.

```bash
➜  cv yo test-yo
```

A folder named `generator-test-yo` will be created in the current directory, containing the code for creating project templates suitable for `cv`.

➜  cd generator-test-yo

➜  tree -L 1

```plaintext
.
├── README.md
├── index.js
├── package.json  # The package name must have the prefix cv-generator-
├── questions.js  # Yeoman script, can be adjusted as needed
└── template      # Project template code should be placed in this directory
```