- Embed GITEA_TOKEN in uclaude_install.sh for git clone auth - Add Authorization header to all curl install commands in docs - Add token to git clone URLs in Windows/manual install sections - Token is read:repository scoped (read-only, can be revoked) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 lines
3.1 KiB
Markdown
92 lines
3.1 KiB
Markdown
# Claude Code — Patched CLI
|
|
|
|
🌐 [English](README.md) | [Русский](README_ru.md) | [中文](README_zh.md) | [Español](README_es.md)
|
|
|
|
Patched Claude Code CLI for use with custom API endpoints. 15 patches applied.
|
|
|
|
## Install
|
|
|
|
All dependencies are installed automatically: Git, Python 3, Node.js v24.13+, Claude Code.
|
|
|
|
**Linux (Debian/Ubuntu/RHEL/Fedora):**
|
|
```bash
|
|
curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \
|
|
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | sudo bash
|
|
```
|
|
|
|
**macOS:**
|
|
```bash
|
|
curl -fsSL -H 'Authorization: token 4443e546f9b93e59f7ed256753286038625ef7cf' \
|
|
https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh | bash
|
|
```
|
|
|
|
**Windows (PowerShell as Administrator):**
|
|
```powershell
|
|
git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git
|
|
cd unlimitedcoding
|
|
powershell -ExecutionPolicy Bypass -File claude\uclaude_update.ps1 --force
|
|
```
|
|
|
|
## Manual Install
|
|
|
|
```bash
|
|
git clone --depth 1 https://x-token:4443e546f9b93e59f7ed256753286038625ef7cf@git.sensey24.ru/aibot777/unlimitedcoding.git
|
|
cd unlimitedcoding
|
|
```
|
|
|
|
| Platform | Command |
|
|
|----------|---------|
|
|
| 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` |
|
|
|
|
## Update
|
|
|
|
| Platform | Command |
|
|
|----------|---------|
|
|
| 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` |
|
|
|
|
## Options
|
|
|
|
| Flag | Description |
|
|
|------|-------------|
|
|
| `--check` | Check for updates only |
|
|
| `--force` | Force reinstall |
|
|
| `--settings-only` | Only patch settings, don't replace cli.js |
|
|
|
|
## What's Patched
|
|
|
|
- Custom API endpoint (base URL, auth token)
|
|
- Custom model picker (configurable model list)
|
|
- Auth/OAuth bypass for custom endpoints
|
|
- Telemetry disabled (Datadog, Segment)
|
|
- Permission prompts auto-accepted
|
|
- Root/sudo check removed
|
|
|
|
## Auto-Install Chain
|
|
|
|
The updater automatically installs missing dependencies:
|
|
|
|
| Component | 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 |
|
|
|
|
## Files
|
|
|
|
| File | Purpose |
|
|
|------|---------|
|
|
| `uclaude_updater.py` | Main updater — version check, auto-install, cli.js replace, settings patch |
|
|
| `uclaude_update.sh` | Linux/macOS wrapper |
|
|
| `uclaude_update.bat` | Windows CMD wrapper |
|
|
| `uclaude_update.ps1` | Windows PowerShell wrapper (auto-elevate, winget) |
|
|
| `uclaude_install.sh` | One-line installer (curl-friendly, full auto-install) |
|
|
| `patcher.config.json` | API endpoint config (base_url, api_key, models) |
|
|
| `releases/index.json` | Version index |
|
|
| `releases/v*/cli.js` | Patched cli.js per version |
|