---
name: "Trace coding agent API traffic locally with Claude Tap"
slug: "trace-coding-agent-api-traffic-locally-with-claude-tap"
description: "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."
github_stars: 2639
verification: "security_reviewed"
source: "https://github.com/liaohch3/claude-tap"
author: "liaohch3"
publisher_type: "open_source_project"
category: "Monitoring & Alerts"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "liaohch3/claude-tap"
  github_stars: 2639
---

# 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

- Source: https://github.com/liaohch3/claude-tap

## Documentation

- https://github.com/liaohch3/claude-tap

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/trace-coding-agent-api-traffic-locally-with-claude-tap/)
