AI API request tracing proxy with Web UI control and visual report generation.

npm installTo set default values for the UI (for privacy and convenience), create a .env file:
cp .env.example .envEdit .env with your preferred defaults:
UI_DEFAULT_DOMAIN=https://api.example.com
UI_DEFAULT_BYPASS_PATHS=/health,/metricsImportant: The .env file is git-ignored to protect your privacy. Never commit it to version control.
npm startOpen http://localhost:3000, configure target domain and bypass paths (or use defaults from .env), then start the proxy (listening on port 8080).
- Enter target domain (e.g.,
https://api.example.com) - Enter paths to skip logging, comma-separated (optional)
- Click [START] to launch proxy
- Configure your client to use proxy
http://localhost:8080 - Click [STOP] to stop and generate HTML report
JSONL format, filename log-<timestamp>.jsonl:
{
"request": { "timestamp": 1234.56, "method": "POST", "url": "...", "headers": {...}, "body": {...} },
"response": { "timestamp": 1234.78, "status_code": 200, "headers": {...}, "body": {...} },
"logged_at": "2025-10-12T10:30:00.000Z"
}Supports SSE stream parsing.
Click "Generate Report" button in Web UI, or run manually:
npx claude-trace --generate-html log-xxx.jsonl report.html --no-openNode.js, HTTP Proxy, claude-trace, vanilla HTML/CSS/JS
ISC