- Update product table versions everywhere (claude v2.1.112, codex v0.116.0, gemini v0.35.3, qwen v0.14.5) - Replace outdated bash heredocs with one-liner installer scripts - Add Windows PowerShell + Windows CMD entry points - Update claude/README*.md: drop git clone snippets, use uclaude_install.ps1 one-liner Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
4.2 KiB
Executable File
4.2 KiB
Executable File
Claude Code — 修补版 CLI
🌐 English | Русский | 中文 | Español
用于自定义 API 端点的修补版 Claude Code CLI。最新版本:v2.1.112 (28 个补丁)。
安装
方法 A — npm 注册表(推荐)
直接从我们的 npm 注册表安装修补包。新版本发布时自动更新。
Linux / macOS:
npm config set @anthropic-ai:registry https://npm.sensey24.ru/
npm install -g @anthropic-ai/claude-code
Windows (PowerShell):
npm config set "@anthropic-ai:registry" "https://npm.sensey24.ru/"
npm install -g @anthropic-ai/claude-code
方法 B — 自动安装程序(备用)
使用自动依赖检测和设置进行安装。从发布版下载修补后的 cli.js。
Linux (Debian/Ubuntu/RHEL/Fedora):
curl -fsSL -H "Authorization: token cadffcb0a6a3be728ac1ff619bb40c86588f6837" \
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh \
-o /tmp/uclaude.sh && sudo bash /tmp/uclaude.sh
macOS:
curl -fsSL -H "Authorization: token cadffcb0a6a3be728ac1ff619bb40c86588f6837" \
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh \
-o /tmp/uclaude.sh && bash /tmp/uclaude.sh
Windows (以管理员身份运行 PowerShell):
$h=@{Authorization="token cadffcb0a6a3be728ac1ff619bb40c86588f6837"}
Set-ExecutionPolicy Bypass -Scope Process -Force
iwr "https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.ps1" -OutFile "$env:TEMP\uclaude_install.ps1" -Headers $h
. "$env:TEMP\uclaude_install.ps1"
Windows (以管理员身份运行 CMD):
powershell -NoProfile -ExecutionPolicy Bypass -Command "$h=@{Authorization='token cadffcb0a6a3be728ac1ff619bb40c86588f6837'}; iwr 'https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.ps1' -OutFile \"$env:TEMP\uclaude_install.ps1\" -Headers $h; & \"$env:TEMP\uclaude_install.ps1\""
手动安装
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
cd unlimitedcoding
| 平台 | 命令 |
|---|---|
| Linux | sudo bash claude/uclaude_update.sh --force |
| macOS | bash claude/uclaude_update.sh --force |
| Windows CMD | claude\uclaude_update.bat --force |
| Windows PowerShell | powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force |
更新
| 平台 | 命令 |
|---|---|
| Linux | cd ~/unlimitedcoding && sudo bash claude/uclaude_update.sh |
| macOS | cd ~/unlimitedcoding && bash claude/uclaude_update.sh |
| Windows | cd %USERPROFILE%\unlimitedcoding && claude\uclaude_update.bat |
选项
| 参数 | 描述 |
|---|---|
--check |
仅检查更新 |
--force |
强制重装 |
--settings-only |
仅修补设置,不替换 cli.js |
补丁内容
- 自定义 API 端点(base URL、认证令牌)
- 自定义模型选择器(可配置的模型列表)
- 绕过自定义端点的 Auth/OAuth
- 禁用遥测(Datadog、Segment)
- 权限提示自动接受
- 移除 root/sudo 检查
自动安装链
更新程序自动安装缺少的依赖:
| 组件 | Linux | macOS | Windows |
|---|---|---|---|
| Git | apt/dnf/yum | brew | winget |
| Python 3 | apt/dnf/yum | brew | winget |
| Node.js v24.13+ | nodesource | brew | winget |
| Claude Code | npm | npm | npm |
文件
| 文件 | 用途 |
|---|---|
uclaude_updater.py |
主更新程序 — 版本检查、自动安装、cli.js 替换、设置修补 |
uclaude_update.sh |
Linux/macOS 包装脚本 |
uclaude_update.bat |
Windows CMD 包装脚本 |
uclaude_update.ps1 |
Windows PowerShell 包装脚本(自动提权、winget) |
uclaude_install.sh |
一键安装脚本(curl 友好,完整自动安装) |
patcher.config.example.json |
配置模板(实际配置从私有仓库获取) |
releases/index.json |
版本索引 |
releases/v*/cli.js |
各版本修补后的 cli.js |