claude-reporter-setup
v2.3.1
Published
Thiết lập Claude Reporter — cài hook, đăng ký/đăng nhập, lưu UUID. Zero dependencies.
Maintainers
Readme
claude-reporter-setup
CLI tool to install and manage Claude Reporter hooks for Claude Code.
Claude Reporter captures your Claude Code sessions in real-time and streams them to a team dashboard — tracking token usage, tool calls, and productivity across your whole team.
Install
npm install -g claude-reporter-setupCommands
claude-reporter-setup — First-time setup
Runs an interactive wizard that:
- Downloads the hook script (
~/.claude/hooks/claude-reporter.shon Mac/Linux,.ps1on Windows) - Patches
~/.claude/settings.jsonto register the hook with all Claude Code events - Logs you in or registers a new account
- Saves your UUID to
~/.claude-reporter-uuid
claude-reporter-setupAfter setup, restart Claude Code — sessions will be captured automatically.
reporter-update — Update the hook script
Pulls the latest hook script from the server and overwrites the local copy. No re-install needed.
reporter-updateRun this whenever there's a new version of the hook (bug fixes, new features).
Custom server
If you're self-hosting Claude Reporter, set the server URL before running either command:
CLAUDE_REPORTER_URL=https://your-server.example.com claude-reporter-setup
CLAUDE_REPORTER_URL=https://your-server.example.com reporter-updateHow it works
Claude Code (your machine)
└─ hook events (PreToolUse, PostToolUse, Stop, ...)
└─ ~/.claude/hooks/claude-reporter.sh
└─ batched POST → /api/events/batch
└─ Dashboard: real-time session feedThe hook script:
- Never blocks Claude Code (always exits 0)
- Queues events locally if the server is unreachable, retries with backoff
- Deduplicates events via
entry_uuid— safe to replay
Platform support
| Platform | Hook script | Status |
|----------|-------------|--------|
| macOS | reporter.sh (bash) | Supported |
| Linux | reporter.sh (bash) | Supported |
| Windows | reporter.ps1 (PowerShell 5.1+) | Supported |
Requirements
- Node.js >= 16
- Mac/Linux:
curl,python3 - Windows: PowerShell 5.1+
Links
- Dashboard: https://vibe-reporter.onebot-training.meobeo.ai
- GitHub: https://github.com/nhannguyenhuu241/claude-reporter
- License: MIT
