AI API request tracing proxy with Web UI, log analysis, and visual report generation.
npm installnpm start
# or
make startOpen http://localhost:3001 to access the Web UI. The browser opens automatically on start.
- Proxy (
/) - Configure and control the tracing proxy - Analyze (
/analyze) - Browse log files from~/.claude/projects/and view usage analytics (token usage, cost, model breakdown, etc.) - Report (
/report/<file>) - Visual report with conversations, raw API calls, and request simulator
- Enter target domain (e.g.,
https://api.anthropic.com) - Optionally enter paths to skip logging (comma-separated)
- Click START - proxy launches on port
8080 - Claude Code's
ANTHROPIC_BASE_URLis automatically updated to use the proxy - Click STOP - proxy stops and
ANTHROPIC_BASE_URLis restored
- Navigate to the Analyze page
- Browse
~/.claude/projects/to find.jsonllog files - Select one or more files to view token usage, cost breakdown, and model statistics
Click View Report from the Proxy page after a session, or run manually:
node generate-report.js <input.jsonl> [output.html]JSONL format, filename log-<timestamp>.jsonl:
{
"request": { "timestamp": 1234.56, "method": "POST", "url": "...", "headers": {}, "body": {} },
"response": { "timestamp": 1234.78, "status_code": 200, "headers": {}, "body": {}, "body_raw": "...", "first_chunk_timestamp": null },
"logged_at": "2025-10-12T10:30:00.000Z"
}Supports SSE stream capture with real-time forwarding.
make install # Install dependencies
make start # Start server
make stop # Kill running server
make report # Generate report from latest log
make clean # Remove generated files and node_modules
Node.js, native HTTP proxy, vanilla HTML/CSS/JS, Chart.js
MIT