Trace coding agent API traffic locally with Claude Tap
Run Claude Code, Codex CLI, Gemini CLI, Cursor CLI, OpenCode, and related coding agents through a local proxy so an operator can inspect prompts, tool calls, token usage, and request diffs.
Prerequisites
Python 3.11+, uv or pip, and at least one supported coding-agent CLI such as Claude Code, Codex CLI, Gemini CLI, Cursor CLI, OpenCode, or OpenClaw
Installation
Install or set up from the source-backed instructions:
uv tool install claude-tap or pip install claude-tap