- ๐จ Web UI with Real-time Logging - Beautiful interface with live command output streaming
- ๐ฅ๏ธ Local Installation - Install Claude Code directly on Windows/macOS/Linux
- ๐ Remote Installation - SSH to any server with zero-config authentication
- ๐ฆ Auto Dependencies - Node.js/npm installation if missing
- ๐ One-Command Setup - Install Claude Code and Claude Code Router globally
- โ๏ธ Config Migration - Optional config copying for remote servers
- โ Installation Verification - Verify both tools are properly installed
- ๐ฏ Universal Support - Works on any platform with Node.js
- ๐ Auto-Browser Launch - UI automatically opens in your default browser
- ๐ WebSocket Real-time Updates - See every command and its output as it happens
# Install globally via npm
npm install -g claudedeploy
# Or install locally
git clone https://github.com/mfzzf/claudedeploy.git
cd claudedeploy
npm install
npm link# Start the interactive web interface
claudedeploy ui
# Use custom port
claudedeploy ui --port 3000
# Access the UI in your browser
# Default: http://localhost:3456Web UI Features:
- ๐ Visual Interface - Modern, responsive design with intuitive navigation
- ๐ง Easy Configuration - Form-based inputs with validation and helpful hints
- ๐ Installation History - Track all installations with status, duration, and logs
- ๐ป Real-time Console - Live streaming of command output via WebSocket
- ๐ Auto-Browser Launch - Automatically opens UI in your default browser
- ๐ WebSocket Connection - Bi-directional communication for instant updates
- ๐จ Beautiful Design - Large fonts, gradient backgrounds, smooth animations
- ๐ก Live Command Logs - See every npm install, version check, and verification
- โฑ๏ธ Timestamped Entries - Each log shows exact time of execution
- ๐ด Color-coded Output - Green for success, red for errors, yellow for warnings
# Install Claude Code on your local computer
claudedeploy --local
# Install with OpenAI config generation
claudedeploy --local --openai-key YOUR_API_KEY
# Install with custom OpenAI-compatible URL
claudedeploy --local --openai-key YOUR_API_KEY --openai-url https://your-api-domain.com
# Install with Chinese npm registry
claudedeploy --local --registry https://registry.npmmirror.com
# Works on Windows, macOS, and Linux# Install on remote Ubuntu/CentOS server
claudedeploy -h your-server.com -u username
# Use SSH key authentication
claudedeploy -h 192.168.1.100 -u ubuntu -k ~/.ssh/id_rsa
# Use password authentication
claudedeploy -h example.com -u ubuntu -p yourpassword
# Custom port
claudedeploy -h server.com -u ubuntu --port 2222
# Skip config copying
claudedeploy -h server.com -u ubuntu --skip-config
# Use Chinese npm registry (Taobao)
claudedeploy -h server.com -u ubuntu --registry https://registry.npmmirror.com# Generate config.json with OpenAI API key
claudedeploy --generate-config --openai-key YOUR_API_KEY
# Generate with custom OpenAI-compatible URL
claudedeploy --generate-config --openai-key YOUR_API_KEY --openai-url https://your-api-domain.com# Generate config.json with UCloud API key (defaults to https://api.modelverse.cn)
claudedeploy --generate-config --ucloud-key YOUR_UCLOUD_KEY
# Specify custom UCloud base URL
claudedeploy --generate-config --ucloud-key YOUR_UCLOUD_KEY --ucloud-url https://api.modelverse.cn
# Generate a combined config for OpenAI + UCloud
claudedeploy --generate-config --openai-key OPENAI_KEY --ucloud-key UCLOUD_KEY# Local install + generate UCloud config (models fetched from https://api.modelverse.cn)
claudedeploy --local --ucloud-key YOUR_UCLOUD_KEY
# Local install + generate OpenAI config
claudedeploy --local --openai-key YOUR_OPENAI_KEY
# Local install + combined providers
claudedeploy --local --openai-key OPENAI_KEY --ucloud-key UCLOUD_KEYIf this is your first time installing Claude Code and ccr code gets stuck on the Claude login screen, run the following once, then exit and try again:
# macOS / Linux
ANTHROPIC_AUTH_TOKEN=token claude
# Then exit the `claude` CLI and run:
ccr code| Option | Description | Required |
|---|---|---|
ui |
Start the web-based UI server | โ |
--port <port> |
Port to run UI server on (default: 3456) | โ |
--no-open |
Do not automatically open browser | โ |
| Option | Description | Required |
|---|---|---|
--verbose |
Enable verbose output | โ |
--dry-run |
Print commands without executing them | โ |
--local |
Install on this local computer | โ |
--openai-key <key> |
OpenAI API key for config generation | โ |
--openai-url <url> |
OpenAI base URL (default: https://api.openai.com) | โ |
--registry <registry> |
npm registry URL (e.g., https://registry.npmmirror.com) | โ |
| Option | Description | Required |
|---|---|---|
-h, --host <host> |
Remote server hostname or IP | โ |
-u, --username <username> |
SSH username | โ |
-p, --password <password> |
SSH password | โ |
-k, --key <path> |
SSH private key file path | โ |
--passphrase <passphrase> |
SSH key passphrase | โ |
--port <port> |
SSH port (default: 22) | โ |
--skip-config |
Skip copying config.json (for remote installation) | โ |
--registry <registry> |
npm registry URL (e.g., https://registry.npmmirror.com) | โ |
--user-install |
Install without sudo (user-level global) | โ |
| Option | Description | Required |
|---|---|---|
--generate-config |
Generate OpenAI config.json with API key | โ |
--openai-key <key> |
OpenAI API key for config generation | โ |
--openai-url <url> |
OpenAI base URL (default: https://api.openai.com) | โ |
- Avoid passing passwords via CLI flags. Use the interactive prompt (input is hidden) or SSH agent.
- Config files contain API keys. They are written with permission 600.
--registryis validated as a URL before use.
- Checks Node.js installation on your computer
- Installs Claude Code globally:
npm install -g @anthropic-ai/claude-code - Installs Claude Code Router globally:
npm install -g @musistudio/claude-code-router - Verifies both tools are working locally
- Connects to your remote server via SSH
- Checks Node.js and npm installation
- Installs Node.js and npm if needed
- Installs Claude Code and Claude Code Router globally
- Copies your local config.json to remote server (optional)
- Verifies both tools are working correctly
- Fetches available models from
/v1/modelsendpoint - Filters chat models (GPT models)
- Generates optimized config.json with your API key
- Includes all available OpenAI models automatically
- Windows 10/11
- macOS 10.15+
- Ubuntu 18.04+
- CentOS 7+
- Any system with Node.js 16+
- Ubuntu/Debian
- CentOS/RHEL
- Amazon Linux
- Any Linux distribution with apt/yum
- Node.js 16.0.0 or higher
- npm (comes with Node.js)
- Node.js 16.0.0 or higher
- SSH access to remote server
- sudo privileges on remote server
๐ Opening browser to http://localhost:3456
โ
ClaudeDeploy UI is running at: http://localhost:3456
๐ฑ Open your browser to configure and manage installations
# Real-time logs in browser:
[10:23:45] Connected to ClaudeDeploy server
[10:23:46] WebSocket connection established for real-time logging
[10:23:50] Starting local installation...
[10:23:50] Checking Node.js installation...
[10:23:51] v20.11.0
[10:23:51] โ
Node.js is already installed
[10:23:51] Checking npm installation...
[10:23:52] 10.2.4
[10:23:52] โ
npm is available
[10:23:52] ๐ฆ Installing @anthropic-ai/claude-code...
[10:23:58] โ
Claude Code installed successfully
[10:23:58] ๐ฆ Installing @musistudio/claude-code-router...
[10:24:03] โ
Claude Code Router installed successfully
[10:24:03] ๐ Local installation completed successfully!๐ Installing Claude Code locally...
โ
Node.js is already installed
โ
Installing Claude Code globally
โ
Installing Claude Code Router globally
โ
Verifying Claude Code installation
โ
Verifying Claude Code Router installation
โ
Claude Code installed successfully on your computer!
๐ You can now use `claude` and `ccr` commands locally.๐ Installing Claude Code on remote server...
โ
Connected to remote server
โ
Checking Node.js installation
โ
Installing npm
โ
Installing Claude Code
โ
Installing Claude Code Router
โ
Config file copied successfully
โ
Verifying Claude Code installation
โ
Verifying Claude Code Router installation
โ
Claude Code installed successfully on remote server!
๐ You can now use Claude Code on your remote server.Contributions are welcome! Please feel free to submit a Pull Request.
See CONTRIBUTING.md for details. This repo uses a lightweight CI:
- CI runs only on Pull Requests and only lints changed JS/config/workflow files.
- For docs-only changes, add
[skip ci]in the PR title/description or labelskip-cito skip CI.
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Support for more Linux distributions
- Docker container support
- Configuration templates
- Batch server installation
- Installation logs and reports