How-to

Claude CLI 卸载后仍自动注册的解决技巧

Why we picked it

HiTw93 发现 Claude CLI 卸载后残留的根源,设一个环境变量就能关掉自动注册,专治这毛病。

Claude CLI 每次启动都会自动执行深链接注册,在函数开头有 if (Wo().disableDeepLinkRegistration === "disable") return;

Body

的判断。只有用户主动把 disableDeepLinkRegistration 设为 "disable",CLI 才会跳过注册。

否则即使卸载了 Claude,相关注册项仍会重新出现。HiTw93 在 X 上分享了这一发现。

Original · Tw93

为什么即使卸载了,还会出现,就是 claude 的骚操作了,对应 CLI 里这段判断,每次启动的自动注册函数最开头 会有 if (Wo().disableDeepLinkRegistration === "disable") return; 相当于你必须主动设置上 disableDeepLinkRegistration 这个,才不会去检查,不然每次会帮你重新生成一个

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude, Claude CLI, disableDeepLinkRegistration, environment variables.

Source attribution: curated from Tw93 (@HiTw93).

Spotted an error in the summary or translation? Tell us