- Auto Download fails or is blocked by your network
- You need a specific version that isn’t the latest
- You prefer to manage downloads manually
- You already have CLI Proxy downloaded from a previous installation
Prerequisites
Before starting manual setup, download the CLI Proxy executable for your operating system:- Standard Version
- Plus Version
Repository: router-for-me/CLIProxyAPIDownload: Latest ReleaseChoose the asset for your platform:
- Windows:
cli-proxy-api_windows_x64.zip - macOS (Intel):
cli-proxy-api_darwin_x64.tar.gz - macOS (Apple Silicon):
cli-proxy-api_darwin_arm64.tar.gz - Linux:
cli-proxy-api_linux_x64.tar.gz
- Windows: Right-click the
.zipfile and select “Extract All” - macOS/Linux:
tar -xzf <filename>.tar.gz
Setup Steps
Select Manual Location
Choose Manual Location from the setup mode options.This option shows an amber folder icon and the description “Select your own downloaded CLI Proxy executable.”A file browser dialog will open immediately.
Browse for Executable
Navigate to where you extracted the CLI Proxy files and select the executable:Windows:After selecting the file, ZeroLimit will:
- File:
cli-proxy-api.exeorcli-proxy-api-plus.exe - Filter: Executable files (*.exe)
- File:
cli-proxy-apiorcli-proxy-api-plus - Make sure it has execute permissions:
chmod +x cli-proxy-api
The file browser uses the native OS file picker, so the interface will match your operating system’s style.
- Store the executable path in settings
- Set CLI Proxy mode to “manual”
- Skip the version selection step (proceeds directly to management key)
Set Management Key
Enter a secret key to protect your CLI Proxy management API.What to enter:
- New Installation
- Existing Installation
If this is your first time setting up CLI Proxy:
- Enter your desired secret key (e.g.,
my-secure-password) - Click Finish Setup
- Create or update
config.yamlin the same directory as the executable - Write your management key to the
secret-keyfield - Configure the
auth-dirpath - Start the CLI Proxy server
- Log you in automatically
Complete Setup
ZeroLimit automatically:
- Updates config.yaml (if needed):
- Located in the same directory as the executable
- Reads
config.example.yamlifconfig.yamldoesn’t exist - Writes or updates the
secret-keyfield - Configures
auth-dirto~/.cli-proxy-api
- Starts the server:
- Invokes the executable at the path you selected
- Waits for server startup
- Checks API health
- Logs you in:
- API Base:
http://localhost:8317 - Management Key: The key you entered
- Remember Credentials: Enabled
- API Base:
File Structure
After manual setup, your CLI Proxy directory should look like:Configuration Process
ThehandleSetupKey function in OnboardingFlow.tsx:113-154 performs these operations:
-
Read existing config:
-
Update secret-key:
-
Update auth-dir:
-
Write and start:
Troubleshooting
File Browser Cancellation
Symptom: File browser closes without selecting a file Behavior: You remain on the mode selection screen (step 2) Solution: Click Manual Location again to reopen the file browserSelected Wrong File
Symptom: Selected a non-executable file or wrong version Solutions:- Go to Settings > CLI Proxy Server
- Click Browse to select the correct executable
- Restart ZeroLimit if needed
Login Failed After Setup
Error: “Authentication failed” after completing setup Causes:- Management key doesn’t match
secret-keyinconfig.yaml config.yamlwasn’t created or updated properly- CLI Proxy server didn’t start
-
Verify config.yaml:
-
Check if server is running:
- Windows: Open Task Manager, look for
cli-proxy-api.exe - macOS/Linux:
ps aux | grep cli-proxy-api
- Windows: Open Task Manager, look for
-
Manually start the server:
Watch for error messages in the console output
-
Verify config.yaml location:
- Must be in the same directory as the executable
- Filename must be exactly
config.yaml(case-sensitive on Linux/macOS)
Server Won’t Start
Symptoms:- “Proxy failed to start” error
- Health check fails
- Port conflict errors
-
Check port availability:
- Default port: 8317
- Check if another service is using it:
-
Run executable manually to see detailed errors:
-
Check permissions:
- macOS/Linux:
chmod +x cli-proxy-api - Windows: Right-click > Properties > Unblock (if file came from internet)
- macOS/Linux:
-
Try as administrator/root:
- Windows: Run ZeroLimit as Administrator
- Linux:
sudo ./cli-proxy-api(not recommended for production)
config.yaml Not Found
Error: Cannot read config.yaml or config.example.yaml Causes:- Downloaded executable without accompanying files
- Files extracted to different locations
-
Download complete release:
- Releases should include
config.example.yaml - Don’t download just the executable binary
- Releases should include
-
Create config.yaml manually:
Save as
config.yamlin the same directory as the executable
After Setup
Once manual setup is complete:- Your executable path is saved in ZeroLimit settings
- CLI Proxy server is running on
http://localhost:8317 - You’re logged in and ready to configure providers
Provider Setup
Add and configure API providers
Server Settings
Manage executable path and auto-start
Auto Updates
Manually update to newer versions
Remote Server
Connect to a remote deployment instead
Changing Executable Path
To update the CLI Proxy executable path after initial setup:- Open ZeroLimit Settings
- Navigate to CLI Proxy Server
- Click Browse next to “Executable Path”
- Select the new executable location
- Restart the server for changes to take effect
- Upgrading to a new version
- Moving files to a different directory
- Switching between Standard and Plus versions