See what Claude really sends.
看看 Claude 到底发了什么。
LLM tracing — what Claude Code sends and receives each turn. Security & privacy tracing — what actually leaves your machine. One command. Traces the Codex, Grok, and Kimi Code CLIs too.
LLM 追踪:Claude Code 每轮到底发送和接收了什么。 安全/隐私审计:哪些请求出站、去了哪些 host、payload 里带了什么。一行命令。也支持追踪 Codex、Grok 和 Kimi Code CLI。
npm install -g @thevibeworks/cctrace
bunx @thevibeworks/cctrace to run without installing
或 bunx @thevibeworks/cctrace 直接运行,无需安装
Captures /v1/messages, OAuth, usage/credits, MCP registry,
bootstrap, and telemetry — not just the chat endpoint.
捕获 /v1/messages、OAuth、用量/额度、MCP registry、bootstrap、
遥测 — 不只是聊天端点。
Filter chips with live counts, colored category badges, expandable headers and bodies, decoded SSE streams. System, light, and dark themes.
带实时计数的筛选标签、彩色分类徽章、可展开的 headers/bodies、解码后的 SSE 流。 支持跟随系统、浅色和深色主题。
The conversation on one rail: threads with per-turn cost and latency,
subagents attached at the turn that spawned them, model switches as
epochs, compactions as break nodes with the context collapse in turns
and tokens, superseded exchanges kept at their timeline position.
Plus time-travel replay; view --html exports a
self-contained snapshot.
对话在一条轨道上重建:线程带每轮成本与延迟,子代理挂在派发它的回合下,
/model 切换成为 epoch,compact 压缩成为断点节点(上下文收缩了多少回合/
token 一目了然),被覆盖的交互保留在原本的位置。外加时间轴回放;
view --html 可导出自包含快照分享。
First-party hosts are decrypted; everything else your session touches
— npm, GitHub, apt — passes through as an opaque
byte-counted tunnel. An audit trail without the payload copies;
--capture-external when you need every byte.
只解密第一方主机;会话触碰到的其他主机 — npm、GitHub、apt —
以不解密的字节计数隧道通过:留下审计线索,不复制 payload。需要全量时用
--capture-external。
Credentials are redacted from headers, bodies, and URLs before anything hits disk. Your API keys stay your API keys.
凭据在落盘前就已从 headers、bodies 和 URL 中脱敏。你的 API key 还是你的 API key。
Auto-generates a CA, auto-detects your Claude install, and captures
everything by default. Run cctrace and you're done.
自动生成 CA、自动识别 Claude 安装、默认捕获全部。运行 cctrace
就完事了。
cctrace codex / cctrace grok / cctrace kimi / cctrace opencode — same MITM front door, per-request dialect detection (Anthropic, OpenAI Responses, Chat Completions)
cctrace codex / cctrace grok / cctrace kimi / cctrace opencode — 同一套 MITM 前门,按请求识别方言(Anthropic、OpenAI Responses 与 Chat Completions)
--record-timing: replay streams at their captured chunk cadence
--record-timing:按捕获时的分块节奏回放流式输出