文章

Claude Code开源

Claude Code开源

Claude Code 开源

必备

  • SuperClaude V3
  • ccusage 查看 CC 使用
  • ccundo

awesome-claude-code

https://github.com/hesreallyhim/awesome-claude-code

Claude Code 增强

将每个库的缩写,放到对应的 agents/commands/hooks 目录,方便调用,也方便管理

【cook】claude-code-cookbook

https://github.com/foreveryh/claude-code-cookbook

【sc】SuperClaude V3/V4

见 [[SuperClaude V3]]、[[SuperClaude V4]]

ruvnet/claude-flow (截止 20250813 5.8k star)

https://github.com/ruvnet/claude-flow

AI 版本控制

yoyo

https://www.runyoyo.com/

提供更用户友好的快照和版本管理界面,适合需要直观操作的用户。

ccundo

https://github.com/RonitSachdev/ccundo

用于跟踪和回滚 Claude Code 对文件的更改。命令如 /CC_undo_list(列出更改)、/CC_undo_preview(预览更改)和 /CC_undo_undo(回滚指定更改)让版本管理更方便。

连接其他模型

1rgs/claude-code-proxy(截止 20250811 1.9k star)

https://github.com/1rgs/claude-code-proxy

musistudio/claude-code-router (截止 20250811 11.9k star)

https://github.com/musistudio/claude-code-router

kimi-cc【kimi 替代 Claude】

https://github.com/LLM-Red-Team/kimi-cc

GUI

ccusage

基本使用

官方查看消耗,但过于笼统,不够直观,推荐使用 ccusage 工具来查看。

1
npm install -g ccusage

如果要查看自某天开始的消耗:

1
ccusage -s 20250721

20250730233504628

如果要 实时 查看消耗:

1
2
3
ccusage blocks --live
# 或者
npx ccusage blocks --live

20250816010750703

Claude Pro / Max 订阅用户可以不用理会消耗,它是按月计费的,不是按使用量计费的。

ccusage 其他常用指令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 基础用法  
ccusage          # 显示每日报告(默认)  
ccusage daily    # 每日 token 使用量及费用  
ccusage monthly  # 月度汇总报告  
ccusage session  # 按会话统计用量  
ccusage blocks   # 5小时计费窗口数据  

# 实时监控  
ccusage blocks --live  # 实时用量仪表盘  

# 筛选与选项  
ccusage daily --since 20250525 --until 20250530  # 指定日期范围  
ccusage daily --json      # 输出 JSON 格式  
ccusage daily --breakdown # 按模型细分费用

和 status line 配合

和 status line 结合 (.claude/settings.json):

1
2
3
4
5
6
{
  "statusLine": {
    "type": "command",
    "command": "bun x ccusage statusline",
  }
}

Extending ccusage to show more information as you use claude code: https://gist.github.com/SomtoUgeh/4e74f7ad8ec7618116635b7f42e54034

Claude Code Web GUI

https://github.com/binggg/Claude-Code-Web-GUI

https://binggg.github.io/Claude-Code-Web-GUI/

浏览和查看您的 Claude Code 会话历史 - 完全在浏览器中运行,无需服务器

claudia

https://github.com/getAsterisk/claudia

sniffly

Claude Code dashboard with usage stats, error analysis, and shareable feature

https://github.com/chiphuyen/sniffly

20250724000817517

claude-code-templates

https://github.com/davila7/claude-code-templates

安装:

1
npx claude-code-templates@latest
  • 查看 Agents 使用20250731231603683
  • Productivity Analytics 20250731231636645
  • Token Analytics 20250731231721606
  • Workflow Intelligence 20250731231808429

其他

intellectronica/ruler

https://github.com/intellectronica/ruler

将 ai rules 应用到主流的 AI Agents

claude-code-guide 【CC 入门教程】

https://github.com/zebbern/claude-code-guide

  • Claude CLI 安装、配置、API Key 设置等全流程
  • 详细讲解每个命令和参数,包含 REPL、One-Shot、Session、Config 等模式
  • MCP 工具集成和权限系统实操,支持自动化、CI/CD、项目协作等高级用法
  • 内置健康检查、安全建议、常见问题排查,适合日常开发和团队协作
  • 适配多平台,支持 NPM,brew,Docker,WSL 等多种安装方式
本文由作者按照 CC BY 4.0 进行授权