经 AI Skill Hub 精选评估,claude-tap Agent工作流 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
claude-tap Agent工作流 是一款基于 Python 开发的开源工具,专注于 Agent调试、API观察、流量拦截 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
claude-tap Agent工作流 是一款基于 Python 开发的开源工具,专注于 Agent调试、API观察、流量拦截 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install claude-tap
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install claude-tap
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/liaohch3/claude-tap
cd claude-tap
pip install -e .
# 验证安装
python -c "import claude_tap; print('安装成功')"
# 命令行使用
claude-tap --help
# 基本用法
claude-tap input_file -o output_file
# Python 代码中调用
import claude_tap
# 示例
result = claude_tap.process("input")
print(result)
# claude-tap 配置文件示例(config.yml) app: name: "claude-tap" debug: false log_level: "INFO" # 运行时指定配置文件 claude-tap --config config.yml # 或通过环境变量配置 export CLAUDE_TAP_API_KEY="your-key" export CLAUDE_TAP_OUTPUT_DIR="./output"
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, Codex CLI, Gemini CLI, Kimi CLI, OpenCode, Pi, Hermes Agent, Cursor CLI, Qoder CLI, and Antigravity CLI.
<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>
Light viewer overview |
Dark mode for long review sessions |
Structured diff across adjacent requests |
The viewer is a single self-contained HTML file (zero external dependencies):
/v1/messages only)j/k or arrow keysRequires Python 3.11+ and the client you want to trace.
```bash
claude-tap --tap-no-launch --tap-port 8080
Run the client you want to inspect through claude-tap. Flags after -- are passed to the selected client.
```bash
claude-tap with OpenClaw. Simplified Chinese version: OpenClaw 设置指南.<details> <summary>Qoder CLI examples</summary>
Qoder CLI talks to multiple Qoder endpoints, so claude-tap defaults to forward proxy mode for --tap-client qoder.
```bash
qodercli login
claude-tap --tap-client qoder -- -p "hello" --permission-mode dont_ask
</details>
<details>
<summary>Antigravity CLI examples</summary>
Antigravity CLI talks to multiple Google/Antigravity endpoints, so claude-tap defaults to **forward proxy** mode for `--tap-client agy`. Its Code Assist model API also honors `CLOUD_CODE_URL`; claude-tap injects that automatically so model requests such as `/v1internal:streamGenerateContent` are captured by the same local proxy.
On macOS, Antigravity may not honor per-process CA environment variables. claude-tap automatically trusts the local CA in your current user's login keychain on first `agy` launch. This does not use `sudo` or the System keychain, though macOS may prompt to unlock the login keychain.
bash claude-tap --tap-client agy --tap-live
claude-tap trust-ca
</details>
<details>
<summary>Viewer, export, and advanced options</summary>
bash
All flags are forwarded to the selected client, except these --tap-* ones:
--tap-client CLIENT Client to launch: claude (default), agy, codex, gemini, kimi, opencode, pi, hermes, cursor, or qoder
--tap-target URL Upstream API URL (default: auto per client)
--tap-live Start real-time viewer while the client runs (default: on)
--tap-no-live Disable the real-time viewer server (pre-v0.1.75 behavior)
--tap-live-port PORT Port for live viewer server (default: auto)
--tap-no-open Don't auto-open live or generated HTML viewers in a browser
--tap-output-dir DIR Trace output directory (default: ./.traces)
--tap-port PORT Proxy port (default: auto)
--tap-host HOST Bind address (default: 127.0.0.1, or 0.0.0.0 in --tap-no-launch mode)
--tap-no-launch Only start the proxy, don't launch client
--tap-max-traces N Max trace sessions to keep (default: 50, 0 = unlimited)
--tap-no-update-check Disable PyPI update check on startup
--tap-no-auto-update Check for updates but don't auto-download
--tap-proxy-mode MODE Proxy mode: reverse or forward (default: reverse for claude/codex/kimi, forward for agy/gemini/opencode/pi/hermes/cursor/qoder)
--tap-trust-ca On macOS, explicitly trust the local CA in the user login keychain before launch (agy does this automatically)
</details>
claude-tap --tap-client codex
claude-tap --tap-client gemini --tap-proxy-mode reverse -- -p "hello"
</details>
<details>
<summary>OpenCode examples</summary>
[OpenCode](https://opencode.ai) is a multi-provider terminal AI assistant. Because it can talk to many providers, claude-tap defaults to **forward proxy** mode for opencode: it injects `HTTPS_PROXY` plus the local CA into the child process so traffic to any provider is captured.
bash
claude-tap 是一个专为开发者设计的交互式追踪工具,旨在通过可视化界面实时监控和分析 AI 客户端的通信过程。它能够帮助开发者深入理解模型请求与响应的细节,是调试 AI 工作流、优化 Prompt 以及分析 API 调用行为的利器。
内置强大的 Trace viewer 功能,通过单个自包含的 HTML 文件实现零依赖可视化。支持 Structural diff 功能,能够精确对比连续请求之间的差异(如新增/删除的消息、System Prompt 的变化),并提供字符级的行内高亮显示。此外,还支持按 API endpoint 进行路径过滤,并能根据 Model 进行分组管理,方便开发者快速定位特定模型的交互记录。
在使用前,请确保您的系统中已配置好 messaging platform,相关配置需存储在 ~/.hermes/.env 文件中。
项目要求 Python 版本为 3.11 及以上。您可以通过 pip 进行安装,并配合需要进行追踪的客户端使用。如果需要针对自定义环境进行设置,可以使用 `claude-tap --tap-no-launch --tap-port 8080` 仅启动代理服务,而不自动启动客户端。
快速上手非常简单:只需通过 `claude-tap` 启动您想要检查的客户端即可。需要注意的是,在命令中使用 `--` 后跟随的所有参数都会被透传给所选的客户端。此外,我们提供了针对 OpenClaw 和 Claude Code 搭配 DeepSeek API 等多种集成场景的详细指南,帮助您快速完成环境搭建。
默认情况下,系统通过环境变量进行配置。对于特定的 Reverse mode(反向代理模式),仅在 ~/.hermes 配置生效时才建议开启。在使用浏览器登录、PAT 或 Job Token 时,请务必在启动前完成相关配置。对于 Antigravity CLI 等涉及多个端点的工具,claude-tap 会默认切换为 forward proxy 模式以确保通信正常。
对于使用 API Key 的用户,默认的 OpenAI API 目标已开箱即用。针对兼容 API-key 或 Vertex AI 的工作流,可以通过 `--tap-proxy-mode reverse` 参数开启反向代理模式。此外,针对 OpenCode 等多供应商终端 AI 助手,claude-tap 也会自动适配为 forward proxy 模式以实现无缝接入。
专业的Agent调试工具,架构设计合理,Star数稳定增长。填补AI Agent可观测性空白,对Agent开发者有实用价值。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:claude-tap Agent工作流 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | claude-tap |
| 原始描述 | 开源AI工作流:Intercept and inspect Coding Agent API traffic from Claude Code, Codex CLI, Gemi。⭐475 · Python |
| Topics | Agent调试API观察流量拦截工作流编码Agent |
| GitHub | https://github.com/liaohch3/claude-tap |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-17 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。