T3 Code 遥测核查:官网写“No telemetry”,代码 3 月起默认上报
T3 Code 遥测对照 GitHub 原页:2026-03-06 起默认开启,官网 5 月却写“No telemetry”,6 月删掉;读取本机 Codex、Claude 配置里的账号 ID 做不加盐哈希。附 UTC 时间线和关闭方法。

T3 Code 是 Theo(@theo)团队做的开源 AI 编程工具,仓库在 pingdotgg/t3code。2026 年 11 月 24 日,X 用户 @realchendahuang 发了一条长帖,列出它的遥测问题。我把帖子里的说法逐条对回 GitHub 的 PR、Issue、commit 和源码,又翻了官网的 Wayback 存档。这篇只写能用原始链接证明的部分。源码行号以 main 分支 commit a326dea2(2026-11-24)为准,日期都是 UTC。
先说结论,主要是三组对照:
- 官网首页在 2026 年 5 月写过 “No telemetry / Unless you opt in. Full stop.”;而代码从 3 月 6 日起,遥测默认值就是开启。
- 遥测文档 9 月 4 日才补上,App 引导页的提示 10 月 6 日才加;到今天,App 设置里仍然没有关闭遥测的开关。
- 产品遥测不上传提示词、模型回复、文件内容和登录凭证,但会上传 token 用量数字和模型名。它还会读取本机 Codex、Claude 配置文件里的账号 ID,做不加盐的 SHA-256 哈希后上传。
时间线(UTC)

| 日期(UTC) | 事件 | 原始链接 |
|---|---|---|
| 2026-03-06 | PR #174 合并,加入 PostHog 遥测,代码默认值是开启 | PR #174 |
| 2026-05-14 | 首页加上 “No telemetry / Unless you opt in. Full stop.”(commit 时间为美西 5-13 18:31) | commit 34bb18c8 |
| 2026-06-18 | Theo 的首页改版 commit 删掉这两行 | commit 3bdaa6e1 |
| 2026-06-23 | 维护者 Julius 以 not planned 关闭 Issue #1397(请求加关闭开关) | #1397 评论 |
| 2026-09-04 | 新增遥测文档 docs/user/telemetry.md | commit 1587f248 |
| 2026-10-06 | App 引导页加上遥测提示,隐私政策加上说明 | commit 115640ae、commit 3b44698d |
| 2026-10-18 | PR #15028 合并:上报改发自家 ingest.t3.codes,每 10 秒一批 | PR #15028 |
| 2026-10-19 | PR #21506 提交(10-20 合并):读取本机 Codex、Claude 配置里的账号 ID | PR #21506 |
| 2026-10-21 / 10-22 / 11-04 | Issue #4123 被 Theo 账号关闭、重开、再次关闭 | #4123 |
| 2026-11-17 | 加设置开关的 PR #27077 被 Julius 关闭 | #27077 评论 |
首页那句话:5 月加上,6 月删掉
Wayback Machine 2026 年 5 月 14 日的首页存档里,有一块写着:
No telemetry Unless you opt in. Full stop.
这两行是 Theo 在 commit 34bb18c8(#2681,“Made marketing site less cringe”)里加上的。那时距离遥测默认开启已经两个多月。6 月 18 日,Theo 的 commit 3bdaa6e1 在 apps/marketing/src/pages/index.astro 里删掉了这两行。这个 commit 的标题是 “Polish marketing homepage: nav, hero, and endorsements (#3137)”,说明里没有提到遥测。

这句话在首页上挂了大约五周。
代码默认值:从 PR #174 起就是开启
PR #174 由维护者 Julius Marminge 提交并在 3 月 6 日合并,标题是 “Add anonymous PostHog telemetry for provider lifecycle events”。合并时的 AnalyticsService.ts 第 31 行是:
enabled: Config.boolean(“T3CODE_TELEMETRY_ENABLED”).pipe(Config.withDefault(true)),
也就是说,不设环境变量就会上报,数据直接发往 us.i.posthog.com。现在 main 分支的同一处代码,默认值仍是 true。
当时仓库里没有遥测文档,App 里没有提示,设置里也没有开关。文档在 9 月 4 日补上;引导页的提示 “T3 Code collects anonymous usage data to improve the app” 是 10 月 6 日加的。截至 11 月 24 日,main 分支的设置项里仍然没有遥测开关。
上报什么,不上报什么

按 T3 Code 官方文档和源码,产品遥测不上传提示词、模型回复、文件内容和登录凭证(access token、API key 都不传),但会上传每轮对话的 token 用量数字(输入、输出、缓存、推理 token 数)和所用模型名,包括用户自己配置的自定义模型名。
官方文档的原话是:“Product events do not include prompts, responses, file contents, authentication tokens, conversation IDs, raw provider events, or child-agent output.” 同一份文档也写明:“Events include the model ID the provider used, including custom models and models served by a custom endpoint.”
源码里能看到的上报内容包括:
- 模型名:能匹配内置目录的会归一,其余按原文上报;像本地文件路径的只保留文件名(ProviderDimensions.ts)。
- token 用量:
inputTokens、cachedInputTokens、cacheCreationTokens、outputTokens、reasoningTokens等(ProviderUsageAnalytics.ts)。 - 推理强度、权限和交互模式、每轮耗时。
- 启动时的项目数和线程数(只有数量,没有项目名)。
- 约 36 种功能的使用计数,例如开终端、建 worktree、fork 线程。
- 操作系统、CPU 架构、版本号、设备型号。
有三处例外。一是 Agent feedback:默认关闭,用户批准并勾选后会附带对话文本。二是 Publish agent activity:开启后会把项目和线程标题发给 T3 Connect 中继,用于手机通知。三是发往 Axiom 的诊断追踪:错误信息和堆栈里可能带出正在处理的值或路径,官方文档自己也写了 “error text can quote a value”。
读取本机 Codex、Claude 配置文件里的账号 ID
PR #21506 由 Theo 在 10 月 19 日提交,10 月 20 日合并。它的说明写的目的是:“We cannot count installs reliably or tell how many installs one person runs.”
按现在的 Identify.ts,T3 Code 会读取本机两个配置文件里的账号 ID:
~/.codex/auth.json:读tokens.account_id,并在本地从id_token里解出 OpenAI 的user_id。~/.claude.json:读userID和oauthAccount.accountUuid。
这些 ID 和 T3 Connect 账号、设备 ID 一样,各自单独做 SHA-256 后上传,哈希函数不加盐。上传的只有哈希值,token 本身不上传。
读取 Codex 配置其实从 3 月就开始了:PR #174 的第一版 Identify.ts 就读取 tokens.account_id,哈希后作为 PostHog 的用户标识。
隐私上的风险是:不加盐哈希,理论上可被持有原始 ID 的一方匹配。
自建 ingest:存档后再转发 PostHog
PR #15028 由 Theo 提交,10 月 18 日合并。它把默认上报地址从 PostHog 改成 https://ingest.t3.codes,发送间隔从 1 秒改成 10 秒。合并时 AnalyticsService.ts 开头的注释是:
Events go to the T3 Code ingest endpoint, which keeps a copy and forwards them to PostHog.
PR 说明写的是:“That endpoint takes the same /batch/ body, archives every event, and forwards a filtered set to PostHog.” ingest 服务端的代码不在这个公开仓库里,存档的具体做法只能以这两段文字为准。
Issue 和 PR:维护者怎么回应
Issue #1397:sbansal1999 在 3 月 25 日开的,请求加关闭遥测的功能。6 月 23 日,Julius 留言后以 not planned 关闭,原话是:
We only collect data so we know what platforms people are using and how many users we have. There is no personal data, agent runs etc captured. We will not make this easier to opt out of, it is crucial for us to know how many users we have
Issue #4123:salixhost 在 7 月 18 日开的,正文引用了首页存档和 3bdaa6e1。
- 10 月 21 日,t3dotgg 账号回复,开头注明 “Claude Opus 5.5 responding on behalf of Theo”。回复说 “One part of this is fixed on main in #14413”(#14413 让中继追踪遵守退出设置),同时说默认开启、应用内同意和开关这部分仍未解决,请对方另开 Issue。随后关闭了这个 Issue。
- 10 月 22 日,t3dotgg 重开,没有留评论。
- 11 月 4 日,t3dotgg 再次关闭,也没有留评论。
四个加开关的 PR,都没有合并:
- #13458:9 月 25 日被作者自己关闭,没写理由。
- #16763:10 月 14 日被维护者 maria-rcks 关闭,理由是改动 535 行,超过对未认证贡献者 500 行的审查上限。
- #21248:10 月 18 日被作者自己关闭,理由是 “closing due to #1397 discussion”。
- #27077:维护者 maria-rcks 11 月 1 日在实机上验证过,评论里写 “147 focused existing tests passed”。11 月 17 日,Julius 关闭了它,原话是 “Thanks for this. It is not something the project wants to take on.”
Theo 和维护者自己说的用途
Julius 在 #1397 里说,收集数据是为了知道用户用什么平台、有多少用户(原话见上)。
Theo 在 11 月 4 日回复 #16763 的作者,原帖写道:
To be VERY clear, you can absolutely disable our anonymous telemetry. It is an env var you can set, preventing us from even being informed of the initial boot (literally nobody else does this afaik). We even detail this during the onboarding now!
同一条里他说明了用途:
We use it to steer product, gain credibility, better understand how people use T3 Code, and to let us get enough funding to continue giving it out for free.
11 月 7 日,Theo 又发帖:
I gave Adam access to the T3 Code anonymized telemetry data to make more posts like this 🙂
这里的 Adam 是 @AdamHoltererer,他用这些数据发了一条 Opus 5.5 在不同推理强度下失败率的分析。
原帖对这些数据的商业用途还有进一步的推测。我没有找到可以核实的材料,这里不展开,读者可以对照上面的原话自己判断。
怎么关
在启动 T3 Code 的 server 或桌面版之前,设置:
export T3CODE_TELEMETRY_ENABLED=false
按 main 分支的代码,这一项会关掉产品事件(发往 ingest.t3.codes、再转 PostHog 的这一路),也会关掉本机 server 和桌面窗口发往 Axiom 的中继连接追踪。
- 桌面版:在 macOS 和 Linux 上,变量要写进 shell 配置文件(例如
~/.zshrc)后重启 App;Windows 要设成用户环境变量。 - 管理员可以用 managed policy 的
telemetry: false达到同样效果。
第二个变量 T3CODE_OTEL_SDK_DISABLED=true 只关 OpenTelemetry 导出和中继追踪,不关产品事件。只设它,用量数据照样上报。
网页版和移动端关不掉。官方文档写明:浏览器版在构建配置了中继追踪时,“sends its own connection traces even if the server has opted out. The browser app has no relay tracing toggle.” 移动端 “has no separate relay tracing toggle. Server environment variables and managed policy do not disable mobile tracing.” 手机上的崩溃报告可以在 Settings > About T3 Code > Diagnostics 里关掉 Send crash reports。
核查方法和来源
我用 GitHub API 读取了上文所有 Issue 和 PR 的创建、关闭、重开记录和评论原文,在本地 clone 的仓库里用 git log、git show 查了上面列出的 commit。Theo 的两条 X 帖是从 X 上直接读的。代码会上传哪些字段,我先用 Codex CLI 在只读模式下审计了一遍,再自己打开文中引用的文件和行号逐处复核。
这次核查没有打开 ingest.t3.codes 的服务端,因为它不在公开仓库里;也没有抓包测试实际发出的请求。上文的上报内容按源码和官方文档写。