Discover and explore top open-source AI tools and projects—updated daily.
liaohch3Inspect LLM API traffic and conversation flow
Top 41.7% on SourcePulse
This project addresses the need for detailed inspection of API traffic generated by various large language model (LLM) command-line interfaces (CLIs), including Claude Code, Codex, Kimi, OpenCode, and Cursor. It targets developers, researchers, and power users who require visibility into how these tools construct system prompts, manage conversation history, select tools, and utilize tokens. The primary benefit is a powerful, user-friendly trace viewer that simplifies debugging and analysis of LLM interactions.
How It Works
claude-tap functions as a proxy, intercepting API calls made by supported CLIs and recording request-response pairs into JSONL trace files. It spawns the specified client, directing its traffic through an internal proxy with low overhead. Upon the client's exit, claude-tap generates a self-contained HTML trace viewer, offering features like structural and character-level diffs, token usage breakdowns, and tool inspection. An optional live mode streams these details to a browser in real-time.
Quick Start & Requirements
uv tool install claude-tap or pip install claude-tap.claude-tap Claude Code or claude-tap --tap-client codex. Client-specific flags are passed after --.Highlighted Details
Maintenance & Community
The project is maintained by liaohch3 and acknowledges contributions from several individuals. A CONTRIBUTING.md file is provided for those interested in contributing. No specific community channels like Discord or Slack are listed in the README.
Licensing & Compatibility
The project is released under the MIT License, which permits broad use, modification, and distribution, including for commercial purposes and integration within closed-source applications.
Limitations & Caveats
Requires Python 3.11 or newer. Specific configurations may be needed for certain CLIs or custom API endpoints (e.g., using --tap-target for DeepSeek or alternative Codex endpoints). The README does not detail known bugs or alpha/beta status.
1 day ago
Inactive
traceloop
langfuse