ccboard
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseccboard - Claude Code Dashboard
ccboard - Claude Code 仪表盘
Comprehensive TUI/Web dashboard for monitoring and managing your Claude Code usage.
用于监控和管理你的Claude Code使用情况的全功能TUI/网页仪表盘。
Overview
概述
ccboard provides a unified interface to visualize and explore all your Claude Code data:
- Sessions: Browse all conversations across your projects
- Statistics: Real-time token usage, cache hit rates, activity trends
- MCP Servers: Monitor and manage Model Context Protocol servers
- Costs: Track spending with detailed token breakdown and pricing
- Configuration: View cascading settings (Global > Project > Local)
- Hooks: Explore pre/post execution hooks and automation
- Agents: Manage custom agents, commands, and skills
- History: Search across all messages with full-text search
ccboard提供了统一界面来可视化和探索你所有的Claude Code数据:
- 会话:浏览你所有项目下的全部对话
- 统计数据:实时Token使用量、缓存命中率、活跃度趋势
- MCP服务器:监控和管理Model Context Protocol服务器
- 成本:通过详细的Token明细和定价追踪支出
- 配置:查看层级设置(全局>项目>本地)
- 钩子:浏览执行前后的钩子和自动化功能
- Agents:管理自定义Agent、命令和技能
- 历史记录:通过全文搜索查找所有消息
Installation
安装
Via Cargo (Recommended)
通过Cargo安装(推荐)
bash
undefinedbash
undefinedUsing Claude Code command
使用Claude Code命令
/ccboard-install
/ccboard-install
Or manually
或手动安装
cargo install ccboard
undefinedcargo install ccboard
undefinedRequirements
依赖要求
- Rust 1.70+ and Cargo
- Claude Code installed (reads from )
~/.claude/
- Rust 1.70+ 与 Cargo
- 已安装Claude Code(从读取数据)
~/.claude/
Commands
命令
| Command | Description | Shortcut |
|---|---|---|
| Launch TUI dashboard | |
| Open MCP servers tab | Press |
| Open costs analysis | Press |
| Browse sessions | Press |
| Launch web UI | |
| Install/update ccboard | - |
| 命令 | 描述 | 快捷键 |
|---|---|---|
| 启动TUI仪表盘 | |
| 打开MCP服务器标签页 | 按 |
| 打开成本分析页 | 按 |
| 浏览会话 | 按 |
| 启动网页UI | |
| 安装/更新ccboard | - |
Features
功能特性
8 Interactive Tabs
8个交互式标签页
1. Dashboard (Press 1
)
11. 仪表盘(按1
)
1- Token usage statistics
- Session count
- Messages sent
- Cache hit ratio
- MCP server count
- 7-day activity sparkline
- Top 5 models usage gauges
- Token使用统计
- 会话数量
- 已发送消息数
- 缓存命中率
- MCP服务器数量
- 7天活跃度迷你图
- 前5大模型使用量仪表盘
2. Sessions (Press 2
)
22. 会话(按2
)
2- Dual-pane: Project tree + Session list
- Metadata: timestamps, duration, tokens, models
- Search: Filter by project, message, or model (press )
/ - File operations: to edit JSONL,
eto reveal in findero
- 双面板布局:项目树 + 会话列表
- 元数据:时间戳、会话时长、Token数、使用模型
- 搜索:按项目、消息或模型筛选(按)
/ - 文件操作:按编辑JSONL,按
e在文件管理器中打开o
3. Config (Press 3
)
33. 配置(按3
)
3- 4-column cascading view: Global | Project | Local | Merged
- Settings inheritance visualization
- MCP servers configuration
- Rules (CLAUDE.md) preview
- Permissions, hooks, environment variables
- Edit config with key
e
- 4列层级视图:全局 | 项目 | 本地 | 合并后
- 设置继承关系可视化
- MCP服务器配置
- 规则(CLAUDE.md)预览
- 权限、钩子、环境变量
- 按键编辑配置
e
4. Hooks (Press 4
)
44. 钩子(按4
)
4- Event-based hook browsing (PreToolUse, UserPromptSubmit)
- Hook bash script preview
- Match patterns and conditions
- File path tracking for easy editing
- 基于事件的钩子浏览(PreToolUse、UserPromptSubmit)
- 钩子Bash脚本预览
- 匹配模式和条件
- 文件路径追踪,方便编辑
5. Agents (Press 5
)
55. Agents(按5
)
5- 3 sub-tabs: Agents (12) | / Commands (5) | ★ Skills (0)
- Frontmatter metadata extraction
- File preview and editing
- Recursive directory scanning
- 3个子标签:Agents (12) | / 命令 (5) | ★ 技能 (0)
- Frontmatter元数据提取
- 文件预览和编辑
- 递归目录扫描
6. Costs (Press 6
)
66. 成本(按6
)
6- 3 views: Overview | By Model | Daily Trend
- Token breakdown: input, output, cache read/write
- Pricing: total estimated costs
- Model distribution breakdown
- 3种视图:概览 | 按模型拆分 | 每日趋势
- Token明细:输入、输出、缓存读/写
- 定价:预估总成本
- 模型使用分布拆分
7. History (Press 7
)
77. 历史记录(按7
)
7- Full-text search across all sessions
- Activity by hour histogram (24h)
- 7-day sparkline
- All messages searchable
- 所有会话的全文搜索
- 每小时活跃度直方图(24小时)
- 7天活跃度迷你图
- 所有消息均可搜索
8. MCP (Press 8
) NEW
88. MCP(按8
)新功能
8- Dual-pane: Server list (35%) | Details (65%)
- Live status detection: ● Running, ○ Stopped, ? Unknown
- Full server details: command, args, environment vars
- Quick actions: edit config,
ereveal file,orefresh statusr
- 双面板布局:服务器列表(35%) | 详情(65%)
- 实时状态检测:● 运行中、○ 已停止、? 未知
- 完整服务器详情:命令、参数、环境变量
- 快捷操作:编辑配置、
e打开文件所在位置、o刷新状态r
Navigation
导航操作
Global Keys:
- : Jump to tab
1-8 - /
Tab: Navigate tabsShift+Tab - : Quit
q - : Refresh data
F5
Vim-style:
- : Navigate (left/down/up/right)
h/j/k/l - : Arrow alternatives
←/→/↑/↓
Common Actions:
- : View details / Focus pane
Enter - : Edit file in $EDITOR
e - : Reveal file in finder
o - : Search (in Sessions/History tabs)
/ - : Close popup / Cancel
Esc
全局按键:
- :跳转至对应标签页
1-8 - /
Tab:切换标签页Shift+Tab - :退出
q - :刷新数据
F5
Vim风格操作:
- :导航(左/下/上/右)
h/j/k/l - :方向键替代方案
←/→/↑/↓
通用操作:
- :查看详情 / 聚焦面板
Enter - :在$EDITOR中打开文件编辑
e - :在文件管理器中打开文件
o - :搜索(在会话/历史记录标签页中)
/ - :关闭弹窗 / 取消操作
Esc
Real-time Monitoring
实时监控
ccboard includes a file watcher that monitors for changes:
~/.claude/- Stats updates: Live refresh when changes
stats-cache.json - Session updates: New sessions appear automatically
- Config updates: Settings changes reflected in UI
- 500ms debounce: Prevents excessive updates
ccboard内置文件监听器,监控目录的变更:
~/.claude/- 统计数据更新:变更时实时刷新
stats-cache.json - 会话更新:新会话自动展示
- 配置更新:设置变更会实时同步到UI
- 500ms防抖:避免过度更新
File Editing
文件编辑
Press on any item to open in your preferred editor:
e- Uses >
$VISUAL> platform default (nano/notepad)$EDITOR - Supports: Sessions (JSONL), Config (JSON), Hooks (Shell), Agents (Markdown)
- Terminal state preserved (alternate screen mode)
- Cross-platform (macOS, Linux, Windows)
在任意条目上按即可在你偏好的编辑器中打开:
e- 优先顺序:>
$VISUAL> 平台默认编辑器(nano/notepad)$EDITOR - 支持编辑:会话(JSONL)、配置(JSON)、钩子(Shell)、Agents(Markdown)
- 终端状态保留(备用屏幕模式)
- 跨平台支持(macOS、Linux、Windows)
MCP Server Management
MCP服务器管理
The MCP tab provides comprehensive server monitoring:
Status Detection (Unix):
- Checks running processes via
ps aux - Extracts package name from command
- Displays PID when running
- Windows shows "Unknown" status
Server Details:
- Full command and arguments
- Environment variables with values
- Config file path ()
~/.claude/claude_desktop_config.json - Quick edit/reveal actions
Navigation:
- or
h/l: Switch between list and details←/→ - or
j/k: Select server↑/↓ - : Focus detail pane
Enter - : Edit MCP config
e - : Reveal config in finder
o - : Refresh server status
r
MCP标签页提供全面的服务器监控能力:
状态检测(Unix系统):
- 通过检查运行中的进程
ps aux - 从命令中提取包名
- 运行时展示PID
- Windows系统默认显示"未知"状态
服务器详情:
- 完整命令和参数
- 带值的环境变量
- 配置文件路径()
~/.claude/claude_desktop_config.json - 快捷编辑/打开操作
导航操作:
- 或
h/l:在列表和详情页之间切换←/→ - 或
j/k:选择服务器↑/↓ - :聚焦详情面板
Enter - :编辑MCP配置
e - :在文件管理器中打开配置
o - :刷新服务器状态
r
Usage Examples
使用示例
Daily Monitoring
日常监控
bash
undefinedbash
undefinedLaunch dashboard
启动仪表盘
/dashboard
/dashboard
Check activity and costs
查看活跃度和成本
Press '1' for overview
按'1'查看概览
Press '6' for costs breakdown
按'6'查看成本明细
Press '7' for recent history
按'7'查看最近历史记录
undefinedundefinedMCP Troubleshooting
MCP故障排查
bash
undefinedbash
undefinedOpen MCP tab
打开MCP标签页
/mcp-status
/mcp-status
Or: ccboard then press '8'
或者:执行ccboard后按'8'
Check server status (● green = running)
检查服务器状态(● 绿色 = 运行中)
Press 'e' to edit config if needed
如需修改配置按'e'编辑
Press 'r' to refresh status after changes
修改后按'r'刷新状态
undefinedundefinedSession Analysis
会话分析
bash
undefinedbash
undefinedBrowse sessions
浏览会话
/sessions
/sessions
Press '/' to search
按'/'搜索
Filter by project: /my-project
按项目筛选:/my-project
Filter by model: /opus
按模型筛选:/opus
Press 'e' on session to view full JSONL
在会话上按'e'查看完整JSONL内容
undefinedundefinedCost Tracking
成本追踪
bash
undefinedbash
undefinedView costs
查看成本
/costs
/costs
Press '1' for overview
按'1'查看概览
Press '2' for breakdown by model
按'2'查看按模型拆分的明细
Press '3' for daily trend
按'3'查看每日趋势
Identify expensive sessions
识别高成本会话
Track cache efficiency (99.9% hit rate)
追踪缓存效率(99.9% 命中率)
undefinedundefinedWeb Interface
网页界面
Launch browser-based interface for remote monitoring:
bash
undefined启动基于浏览器的界面用于远程监控:
bash
undefinedLaunch web UI
启动网页UI
/ccboard-web
/ccboard-web
Or with custom port
或使用自定义端口
ccboard web --port 8080
ccboard web --port 8080
Access at http://localhost:3333
**Features**:
- Same data as TUI (shared backend)
- Server-Sent Events (SSE) for live updates
- Responsive design (desktop/tablet/mobile)
- Concurrent multi-user access
**Run both simultaneously**:
```bash
ccboard both --port 3333
**功能特性**:
- 和TUI使用相同数据(共享后端)
- 服务器发送事件(SSE)实现实时更新
- 响应式设计(桌面/平板/移动端适配)
- 支持多用户同时访问
**同时运行两个界面**:
```bash
ccboard both --port 3333Architecture
架构
ccboard is a single Rust binary with dual frontends:
ccboard/
├── ccboard-core/ # Parsers, models, data store, watcher
├── ccboard-tui/ # Ratatui frontend (8 tabs)
└── ccboard-web/ # Axum + Leptos frontendData Sources:
- - Statistics
~/.claude/stats-cache.json - - MCP config
~/.claude/claude_desktop_config.json - - Session JSONL files
~/.claude/projects/*/ - - Global settings
~/.claude/settings.json - - Project settings
.claude/settings.json - - Local overrides
.claude/settings.local.json - - Rules and behavior
.claude/CLAUDE.md
ccboard是单一Rust二进制文件,包含双前端:
ccboard/
├── ccboard-core/ # 解析器、模型、数据存储、监听器
├── ccboard-tui/ # Ratatui前端(8个标签页)
└── ccboard-web/ # Axum + Leptos前端数据来源:
- - 统计数据
~/.claude/stats-cache.json - - MCP配置
~/.claude/claude_desktop_config.json - - 会话JSONL文件
~/.claude/projects/*/ - - 全局设置
~/.claude/settings.json - - 项目设置
.claude/settings.json - - 本地覆盖设置
.claude/settings.local.json - - 规则和行为配置
.claude/CLAUDE.md
Troubleshooting
故障排除
ccboard not found
找不到ccboard命令
bash
undefinedbash
undefinedCheck installation
检查安装情况
which ccboard
which ccboard
Install if needed
如需安装执行
/ccboard-install
undefined/ccboard-install
undefinedNo data visible
没有展示任何数据
bash
undefinedbash
undefinedVerify Claude Code is installed
确认已安装Claude Code
ls ~/.claude/
ls ~/.claude/
Check stats file exists
检查统计文件是否存在
cat ~/.claude/stats-cache.json
cat ~/.claude/stats-cache.json
Run with specific project
指定项目运行
ccboard --project ~/path/to/project
undefinedccboard --project ~/path/to/project
undefinedMCP status shows "Unknown"
MCP状态显示"未知"
- Status detection requires Unix (macOS/Linux)
- Windows shows "Unknown" by default
- Check if server process is actually running:
ps aux | grep <server-name>
- 状态检测仅支持Unix系统(macOS/Linux)
- Windows系统默认显示"未知"
- 检查服务器进程是否实际运行:
ps aux | grep <server-name>
File watcher not working
文件监听器不工作
- Ensure crate supports your platform
notify - Check file permissions on
~/.claude/ - Restart ccboard if file system events missed
- 确认库支持你的操作系统
notify - 检查目录的文件权限
~/.claude/ - 如果文件系统事件丢失,重启ccboard
Advanced Usage
高级用法
Command-line Options
命令行参数
bash
ccboard --help # Show all options
ccboard --claude-home PATH # Custom Claude directory
ccboard --project PATH # Specific project
ccboard stats # Print stats and exit
ccboard web --port 8080 # Web UI on port 8080
ccboard both # TUI + Web simultaneouslybash
ccboard --help # 查看所有参数
ccboard --claude-home PATH # 自定义Claude目录
ccboard --project PATH # 指定项目
ccboard stats # 打印统计数据后退出
ccboard web --port 8080 # 网页UI使用8080端口
ccboard both # 同时运行TUI和网页界面Environment Variables
环境变量
bash
undefinedbash
undefinedEditor preference
编辑器偏好设置
export EDITOR=vim
export VISUAL=code
export EDITOR=vim
export VISUAL=code
Custom Claude home
自定义Claude主目录
export CLAUDE_HOME=~/custom/.claude
undefinedexport CLAUDE_HOME=~/custom/.claude
undefinedIntegration with Claude Code
与Claude Code集成
ccboard reads read-only from Claude Code directories:
- Non-invasive monitoring
- No modifications to Claude data
- Safe to run concurrently with Claude Code
- File watcher detects changes in real-time
ccboard以只读方式读取Claude Code目录:
- 非侵入式监控
- 不会修改Claude数据
- 可与Claude Code同时安全运行
- 文件监听器可实时检测变更
Performance
性能
- Binary size: 2.4MB (release build)
- Initial load: <2s for 1,000+ sessions
- Memory: ~50MB typical usage
- CPU: <5% during monitoring
- Lazy loading: Session content loaded on-demand
- 二进制文件大小:2.4MB(Release构建)
- 初始加载时间:1000+会话小于2秒
- 内存占用:典型使用约50MB
- CPU占用:监控期间小于5%
- 懒加载:会话内容按需加载
Limitations
限制
Current version (0.1.0):
- Read-only: No write operations to Claude data
- MCP status: Unix only (Windows shows "Unknown")
- Web UI: In development (TUI is primary interface)
- Search: Basic substring matching (no fuzzy search yet)
Future roadmap:
- Enhanced MCP server management (start/stop)
- MCP protocol health checks
- Export reports (PDF, JSON, CSV)
- Config editing (write settings.json)
- Session resume integration
- Enhanced search with fuzzy matching
当前版本(0.1.0):
- 只读:不会对Claude数据执行写入操作
- MCP状态:仅支持Unix系统(Windows显示"未知")
- 网页UI:开发中(TUI是主要界面)
- 搜索:基础子字符串匹配(暂不支持模糊搜索)
未来路线图:
- 增强MCP服务器管理(启动/停止)
- MCP协议健康检查
- 导出报告(PDF、JSON、CSV)
- 配置编辑(写入settings.json)
- 会话恢复集成
- 支持模糊搜索的增强搜索功能
Contributing
贡献
ccboard is open source (MIT OR Apache-2.0).
Repository: https://github.com/{OWNER}/ccboard
Contributions welcome:
- Bug reports and feature requests
- Pull requests for new features
- Documentation improvements
- Platform-specific testing (Windows, Linux)
ccboard是开源项目(MIT OR Apache-2.0许可)。
欢迎贡献:
- 提交Bug报告和功能需求
- 提交新功能的Pull Request
- 文档改进
- 平台特定测试(Windows、Linux)
Credits
致谢
Built with:
License
许可
MIT OR Apache-2.0
Questions?
- GitHub Issues: https://github.com/{OWNER}/ccboard/issues
- Documentation: https://github.com/{OWNER}/ccboard
- Claude Code: https://claude.ai/code
MIT OR Apache-2.0
有疑问?
- GitHub Issues:https://github.com/{OWNER}/ccboard/issues
- 文档:https://github.com/{OWNER}/ccboard
- Claude Code:https://claude.ai/code