by taekchef
Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复。
# Add to your Claude Code skills
git clone https://github.com/taekchef/claude-code-zh-cnGuides for using cli tools skills like claude-code-zh-cn.
Last scanned: 7/31/2026
{
"issues": [
{
"file": "README.md",
"line": 69,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/downloa\"",
"severity": "low"
},
{
"file": "README.md",
"line": 285,
"type": "dangerous-command",
"message": "Dangerous command (writes to Claude config): \"> **开启前请知情**:本功能会修改本机文件,包括 `~/.claude/\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-07-31T06:42:51.669Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}claude-code-zh-cn is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by taekchef. Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复。. It has 629 GitHub stars.
Yes. claude-code-zh-cn passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/taekchef/claude-code-zh-cn" and add it to your Claude Code skills directory (see the Installation section above).
claude-code-zh-cn is primarily written in JavaScript. It is open-source under taekchef on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-zh-cn against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Claude Code 简体中文本地化插件
让终端里的 AI 编程助手说中文 🇨🇳
一条命令,把 Claude Code 的终端界面、等待提示、系统通知和默认回复切换为简体中文。
187 个趣味 spinner 动词,41 条中文提示,回复耗时中文化;另有 1895 条界面翻译。
macOS · Linux · WSL · Windows
一行远程安装 · 更新后自动修复 · 卸载不丢配置

真实 Ghostty 录制:同一台 Mac、同一个 Claude Code
2.1.211,先运行安装前备份的原版可执行文件,再运行当前中文补丁版。动图只做缩放和前后切换,没有重绘或仿造终端内容。
安装前:
⠙ Photosynthesizing...
Tip: Press Shift+Tab to switch between default, auto-accept edits, and plan modes
安装后:
⠙ 光合作用中...
💡 按 Shift+Tab 在默认模式、自动接受编辑模式和 Plan 模式之间切换
更多画风:
⠙ 蹦迪中... ⠙ 七荤八素中... ⠙ 搞事情中...
⠙ 瞎忙活中... ⠙ 花里胡哨中... ⠙ 变魔术中...
琢磨了 1分23秒
187 个趣味 spinner 动词,41 条中文提示,回复耗时中文化,AI 默认中文回复。装完即用。
已经安装 Claude Code?运行:
curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/download/install-remote.sh | bash
重启 Claude Code,看到“思考中”“光合作用中”等中文提示即安装成功。还没有 claude 命令,请先安装 Claude Code。
安全边界:安装前会备份原文件。补丁、重打包或启动自检失败时会保留或恢复原文件;遇到暂未适配的新文案时,对应内容保持英文,不影响 Claude Code 正常启动。
如果它让你的 Claude Code 更顺手,欢迎点一下右上角 Star,这会帮助更多中文用户发现它。
Claude Code 是一个很棒的终端 AI 编程助手,但它没有中文界面。UI 文字主要硬编码在一个 13MB 的 cli.js 里,没有 i18n 基础设施。
官方短期内不太可能加中文支持。所以我做了这个插件,通过四层机制(设置注入 + Hook 系统 + 插件系统 + CLI Patch)实现中文化,自动检测安装方式,更新后自动修复。遇到还没验证过的新版本也不怕:插件会自动降级,翻不了的部分保持英文,CLI 绝不会坏。
首屏命令会从本项目最新 GitHub Release 下载源码包,然后执行同一套 install.sh。它和官方安装器的区别:
| 命令 | 装什么 | 什么时候用 |
|---|---|---|
curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/download/install-remote.sh | bash |
中文本地化插件 | 已经有 claude 命令,只想安装/更新中文插件 |
curl -fsSL https://claude.ai/install.sh | sh |
Claude Code 本体 | 还没有 claude 命令,或要先安装官方 CLI |
远程安装会优先把本项目登记到 Claude Code 插件管理器;当前 CLI 不支持正式注册时,才启用等价的独立 Hook 兜底,不需要保留本地 clone。
如果你要改翻译或调试脚本,再用本地源码安装:
git clone https://github.com/taekchef/claude-code-zh-cn.git
cd claude-code-zh-cn
./install.sh
安装脚本会自动:
~/.claude/settings.json 和 cli.js(或原生二进制)2.1.112 实测 1595 处有效 patch)node-lief、native 格式变化、提取失败或自检失败时,只跳过 Layer 4;Layer 1~3 和 Claude Code 本体继续可用git clone https://github.com/taekchef/claude-code-zh-cn.git
cd claude-code-zh-cn
powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1
install.ps1 会自动完成与 install.sh 相同的步骤:正式插件注册、依赖检查、Settings 合并、CLI Patch 和失败回滚。需要 PowerShell 5.1+(Windows 10/11 自带)。
Windows native .exe 用户先装 node-lief:如果当前 Claude Code 是 2.1.113+ native
.exe,请先运行npm install -g node-lief再装插件。未安装时 Layer 4 CLI Patch 会跳过,Layer 1~3 不受影响。也可以继续通过 WSL 使用install.sh。
Claude Code 在 Windows 更新后,插件不会现场改写正在运行并被系统锁定的 claude.exe。先照常使用;方便时关闭所有 Claude Code 窗口,再回到本项目目录重跑上面的 install.ps1,安装器会完成补丁、启动自检和失败回滚。
| 安装方式 | 中文化程度 |
|---|---|
npm install -g @anthropic-ai/claude-code@2.1.112 |
最完整(推荐) |
npm install -g @anthropic-ai/claude-code(latest) |
新版先本机自检;已知文案继续中文,新文案保留英文 |
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.112 |
官方安装器指定已验证旧版本(需要 node-lief) |
curl -fsSL https://claude.ai/install.sh | sh(latest) |
新版先本机自检再启用 CLI Patch;格式或自检失败时只保留 Layer 1~3 |
powershell -File install.ps1 |
Windows:旧 npm cli.js 最完整;native .exe 2.1.113 - 2.1.220 内已验证版本需 node-lief;Claude 更新后关闭所有窗口并重跑 |
native binary 说明:官方安装器和新版 npm 包装到的是 native 二进制。插件会提取其中的 JS → 翻译 → 写回,并做启动自检;补丁、重打包或自检失败会恢复原文件。macOS arm64 已验证
2.1.113 - 2.1.220内的版本(完整清单见支持矩阵);更高版本也会本机自检,需要node-lief。macOS 可在新会话安全补丁;Windows 不热改运行中的 exe,更新后需关闭窗口并重跑install.ps1。
安装脚本会自动检测安装方式,无需手动选择。
node-lief(native 二进制适配需要:npm install -g node-lief;旧版 npm cli.js 路径不需要)重启 Claude Code 后,发送任意请求。如果看到 spinner 显示“思考中”、“光合作用中”等中文,说明 Layer 1~3 已生效。
不确定 Layer 4 是否生效、或 UI 仍是英文时,运行诊断脚本(会检测安装形态、settings、patch 记录和 patch.log 里的失败原因,并给出下一步命令):
./doctor.sh # macOS / Linux / WSL(仓库内)
bash ~/.claude/plugins/claude-code-zh-cn/bin/doctor # 只有已安装插件时
powershell -NoProfile -ExecutionPolicy Bypass -File .\doctor.ps1 # Windows
加 --json 得到机器可读输出;退出码 0 = 无阻塞项,1 = 需要处理。
如果是请求报错(403、空响应、ECONNREFUSED 等)而不是界面英文,那通常是 provider / 代理 / 网关链路问题,不是汉化没生效。可以把报错原文交给 doctor 分流:
./doctor.sh --runtime-error 'API returned an empty or malformed response (HTTP 200)' --json
Claude Code 更新后,npm / macOS native 安装会在首次会话启动时自动检测版本变更并重新 patch;Windows native 会保留原版可用,并提示关闭窗口后重跑安装器。新版先本机自检;只有格式、依赖、提取或自检失败才跳过原生 Layer 4,不会让 CLI 失效。
插件本体发布新 Release 后,正式安装态由 Claude Code 插件管理器更新。独立兜底安装只做限时检查并提示,不会在会话启动途中原地覆盖自身;本地源码安装用户在会话结束后运行 git pull && ./install.sh(Windows:git pull 后重跑 install.ps1)。
远程安装用户可直接运行:
curl -fsSL https://github.com/taekchef/claude-code-zh-cn/releases/latest/download/uninstall-remote.sh | bash
本地源码安装用户运行 ./uninstall.sh(Windows:powershell -File uninstall.ps1)。精准移除插件注入的设置,保留你的其他配置不变。
| 平台 / 安装形态 | 已验证版本窗口 | 说明 |
|---|---|---|
| macOS / Linux / WSL · npm 全局安装 | 2.1.92 - 2.1.112 |
翻译最完整;launcher 启动前自修复 + session-start 兜底 |
| macOS · 官方安装器(native) | 2.1.110 - 2.1.112 |
需要 node-lief |
| macOS · native binary(arm64) | 2.1.113 - 2.1.220 内的已验证版本 |
需要 node-lief;个别版本未收录,见支持矩阵 |
| Windows · npm(PowerShell) | 2.1.92 - 2.1.112 |
用 install.ps1,需 PowerShell 5.1+ |
| Windows · native .exe(x64) | 2.1.113 - 2.1.220 内的已验证版本 |
需要 node-lief;个别版本未收录,见支持矩阵 |
| Linux · 官方安装器 | 暂无已验证版本 | 仅 Layer 1~3 生效 |
- 版本号不是运行门禁:高于已知 native 下限、且仍能被识别的新版会先在本机临时提取、翻译、重打包并执行启动自检;通过后才替换。已有词条继续中文,新文案原样保留英文。
- 失败不伤 CLI:补丁、重打包或启动自检任一步失败,都会保留或恢复原文件;失败只影响中文覆盖,不影响 Claude Code 使用。
- Windows 不热改运行中的 exe:Claude Code 更新后先保持原版可用;关闭所有 Claude Code 窗口,再按 Windows 安装命令重跑
install.ps1,由安装器补丁并自检。- 格式变化才停手:如果未来版本不再是可识别的 native 格式、依赖缺失、提取失败或启动自检失败,只跳过 Layer 4,Layer 1~3 继续生效。
- 矩阵只记录证据:纯上游兼容证据可以更新支持矩阵,不要求插件升版;只有插件代码、翻译或 manifest 变化才发布新版。
- 已验证版本完整清单(含个别未收录版本)见 docs/support-matrix.md,由脚本自动生成。
- Claude Code 从
2.1.113起 npm 主包切换为 native binary,不再包含旧的cli.js;要最完整的翻译请用npm install -g @anthropic-ai/claude-code@2.1.112。
发布边界:正式安装态由 Claude Code 插件管理器更新;旧环境的独立兜底安装只跟随本插件已发布 Release,不会跟随
main上未发布的提交。Claude Code 本体升级不要求中文插件同步升版本;DISABLE_AUTOUPDATER/DISABLE_UPDATER仍由 Claude Code 本体处理。
原版 Claude Code 的 spinner 有一堆故意搞怪的英文动词(Flibbertigibbeting、Photosynthesizing、Moonwalking...),我们全部按原味翻译了:
| 英文 | 中文 | 英文 | 中文 | |
|---|---|---|---|---|
Thinking |
思考中 | Moonwalking |
太空步中 | |
Photosynthesizing |
光合作用中 | Flibbertigibbeting |
叽里呱啦中 | |
Discombobulating |
七荤八素中 | Whatchamacalliting |
那个啊来着中 | |
Shenaniganing |
搞事情中 | Razzmatazzing |
花里胡哨中 | |
Boondoggling |
瞎忙活中 | Prestidigitating |
变魔术中 | |
Clauding |
克劳丁中 | Boogieing |
蹦迪中 | |
Canoodling |
腻歪中 | Spelunking |
探洞中 |
完整 187 个翻译见 verbs/zh-CN.json
| 功能 | 数量 | 怎么做的 |
|---|---|---|
| AI 回复语言 | - | language: Chinese |
| Spinner 动词 | 187 个 | spinnerVerbs |
| Spinner 提示 | 41 条 | spinnerTipsOverride |
| 中文上下文注入 | - | SessionStart Hook |
| 通知翻译 | 6 条 | Notification Hook |
| 输出风格 | - | Chinese Output Style |
| UI 文字中文化 | 1895 条翻译,2.1.112 实测 1595 处有效 patch |
CLI Patch(扫描真实双引号字符串 token 后逐条替换)+ 显示面审计 |
| 自动重 patch | - | 版本检测,更新后首次会话重新 patch |
| 插件自动更新 | - | 正式安装态交给 Claude Code 插件管理器;独立兜底态只跟随已发布 Release |
Claude Code CLI 是一个 13MB 的单文件压缩包(cli.js,或 native 二进制内嵌 JS),UI 文字硬编码其中,没有 i18n 基础设施。本项目通过四层机制实现中文化:
language: 控制 AI 回复语言spinnerTipsOverride: 替换等待提示文字spinnerVerbs: 替换 spinner 动词SessionStart: 会话启动时注入中文上下文指令 + 委托插件管理器检查更新 + 检测版本自动重 patchNotification: 拦截系统通知并翻译",避免误改代码结构cli-translations.json 读取翻译,按长度降序批量替换Layer 1~3 完全不受 Claude Code 更新影响。Layer 4 的优雅降级闭环:
--version 启动自检。任一步失败都保留或恢复原文件patch.log,doctor 可读取诊断稳定性:Layer