cctrace

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
or bunx @thevibeworks/cctrace to run without installing bunx @thevibeworks/cctrace 直接运行,无需安装
cctrace demo

Full picture

完整全貌

Captures /v1/messages, OAuth, usage/credits, MCP registry, bootstrap, and telemetry — not just the chat endpoint.

捕获 /v1/messages、OAuth、用量/额度、MCP registry、bootstrap、 遥测 — 不只是聊天端点。

Live categorized UI

实时分类界面

Filter chips with live counts, colored category badges, expandable headers and bodies, decoded SSE streams. System, light, and dark themes.

带实时计数的筛选标签、彩色分类徽章、可展开的 headers/bodies、解码后的 SSE 流。 支持跟随系统、浅色和深色主题。

Sessions, reconstructed

重建的会话

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 可导出自包含快照分享。

Scoped interception

有边界的拦截

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

Safe by default

默认安全

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。

Zero config

零配置

Auto-generates a CA, auto-detects your Claude install, and captures everything by default. Run cctrace and you're done.

自动生成 CA、自动识别 Claude 安装、默认捕获全部。运行 cctrace 就完事了。

Coming soon

即将推出