liaohch3/claude-tap
1,047 stars · Last commit 2026-06-01
Intercept and inspect Coding Agent API traffic from Claude Code, Codex CLI, Gemini CLI, Cursor CLI, OpenCode, Kimi, Pi, and Hermes in a local trace viewer.
README preview
# claude-tap [](https://pypi.org/project/claude-tap/) [](https://pypi.org/project/claude-tap/) [](https://pypi.org/project/claude-tap/) [](https://github.com/liaohch3/claude-tap/blob/main/LICENSE) [](https://github.com/liaohch3/claude-tap/stargazers) [](#contributors) [中文文档](README_zh.md) `claude-tap` is a local proxy and trace viewer for AI coding agents. Run your CLI through it, then inspect the real API traffic: system prompts, conversation history, tool schemas, tool calls, streaming responses, token usage, and request diffs. It works with [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Codex CLI](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [Kimi CLI](https://github.com/MoonshotAI/kimi-cli), [OpenCode](https://opencode.ai), [Pi](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent), [Hermes Agent](https://github.com/NousResearch/hermes-agent), [Cursor CLI](https://cursor.com/cli), [Qoder CLI](https://qoder.com/cli), [Antigravity CLI](https://antigravity.google/product/antigravity-cli), and [CodeBuddy CLI](https://www.codebuddy.ai). <p align="center"> <img src="docs/demo.gif" alt="claude-tap demo showing a real Codex trace" width="100%"> <br> <sub>Open a real agent run, inspect every request, and compare how context changes between turns.</sub> </p>