- Все claude-файлы перенесены в claude/ (uclaude_updater.py, скрипты, config) - claude/README.md с инструкцией для Claude Code - Корневой README — общий для всех продуктов (claude, codex, gemini, qwen, antigravity) - Node.js v24.13+ автоустановка через nodesource - Sparse checkout: клиент скачивает только latest версию cli.js Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude Code — Patched CLI
Patched Claude Code CLI for use with custom API endpoints. 15 patches applied.
Requirements
- Node.js v24.13+ (nodejs.org) — updater will auto-install if missing or outdated
- Python 3
- Git
Install
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# One-line install (from repo root):
sudo bash claude/uclaude_update.sh --force
Update
sudo bash claude/uclaude_update.sh
Options
sudo bash claude/uclaude_update.sh --check # check for updates
sudo bash claude/uclaude_update.sh --force # force reinstall
sudo bash claude/uclaude_update.sh --settings-only # only patch settings
Windows
claude\uclaude_update.bat
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
Files
| File | Purpose |
|---|---|
uclaude_updater.py |
Main updater — version check, cli.js install, settings patch |
uclaude_update.sh |
Linux/macOS wrapper |
uclaude_update.bat |
Windows CMD wrapper |
uclaude_update.ps1 |
Windows PowerShell wrapper |
uclaude_install.sh |
One-line installer (curl-friendly) |
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 |