Fixes curl "bad/illegal format" error on some systems when ?token= is in URL. All 8 READMEs + uclaude_install.sh updated to download-then-run approach. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
94 lines
3.1 KiB
Markdown
94 lines
3.1 KiB
Markdown
# Claude Code — 修补版 CLI
|
||
|
||
🌐 [English](README.md) | [Русский](README_ru.md) | [中文](README_zh.md) | [Español](README_es.md)
|
||
|
||
适用于自定义 API 端点的修补版 Claude Code CLI。已应用 15 个补丁。
|
||
|
||
## 安装
|
||
|
||
所有依赖自动安装:Git、Python 3、Node.js v24.13+、Claude Code。
|
||
|
||
**Linux (Debian/Ubuntu/RHEL/Fedora):**
|
||
```bash
|
||
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:**
|
||
```bash
|
||
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):**
|
||
```powershell
|
||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||
cd unlimitedcoding
|
||
powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force
|
||
```
|
||
|
||
## 手动安装
|
||
|
||
```bash
|
||
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.json` | API 配置(base_url、api_key、模型) |
|
||
| `releases/index.json` | 版本索引 |
|
||
| `releases/v*/cli.js` | 各版本修补后的 cli.js |
|