Overview
The CLI Proxy API server is the backend service that powers ZeroLimit. It handles OAuth authentication, provider management, and API routing. This guide covers installation, configuration, updates, and version management.
Server Configuration
Executable Path
Specify the location of your CLI Proxy API executable.
Setting Path:
- Go to Settings → CLI Proxy
- Click Browse button
- Navigate to
cli-proxy-api.exe or cli-proxy-api-plus.exe
- Select the executable
The executable path is persisted locally. Once configured, ZeroLimit remembers the location across restarts.
Auto Start
Default: false
When enabled, CLI Proxy API server starts automatically when ZeroLimit launches.
To Enable:
- Navigate to Settings → CLI Proxy
- Toggle Auto Start switch
Auto start requires a valid executable path to be configured first.
Run in Background
Default: false
When enabled, the CLI Proxy API server continues running even when ZeroLimit is closed.
To Enable:
- Go to Settings → CLI Proxy
- Toggle Run in Background switch
When running in background, the server process remains active after closing ZeroLimit. You must manually stop the server from Settings or terminate the process.
Server Control
Starting the Server
Prerequisites:
- Valid executable path configured
- Server not already running
Steps:
- Navigate to Settings → CLI Proxy
- Click Start button
- Server status changes to “Running”
Stopping the Server
- Go to Settings → CLI Proxy
- Click Stop button
- Server status changes to “Stopped”
Server Status
The CLI Proxy section displays real-time server status:
| Status | Indicator | Description |
|---|
| Running | 🟢 Green checkmark | Server is active and accepting connections |
| Stopped | ⚪ Gray text | Server is not running |
Version Management
Current Version Info
ZeroLimit displays the following version details:
- Version number (e.g.,
v1.2.3)
- Build date (e.g.,
Mar 3, 2026)
- Latest available version (after update check)
Checking for Updates
Manual Update Check:
- Navigate to Settings → CLI Proxy
- Click Check for Update
- ZeroLimit queries GitHub releases for the latest version
- If update available, version arrow appears:
v1.2.3 → v1.3.0
Update checks require:
- Active internet connection
- Valid API base and management key
- Connected to CLI Proxy server
Updating the Server
When an update is available:
- Click Update Now button
- ZeroLimit performs the following automatically:
- Stops the running server
- Downloads latest release from GitHub
- Extracts to the same directory as current executable
- Updates the executable path
- Restarts the server
Update Process:
1. Stop server
2. Download release from GitHub
3. Extract to current directory
4. Update executable path
5. Start server with new version
The server is briefly unavailable during updates. Active connections are terminated.
Version Detection
ZeroLimit automatically detects which version you’re running:
- Standard:
cli-proxy-api.exe
- Plus:
cli-proxy-api-plus.exe
Detection is based on:
- Executable filename (highest priority)
- Version string from server API
- Stored
cliProxyVersion preference
Switching Between Standard and Plus
ZeroLimit supports switching between Standard and Plus versions.
Version Differences
| Feature | Standard | Plus |
|---|
| Core Providers | ✅ Antigravity, Codex, Gemini, Anthropic | ✅ All Standard providers |
| GitHub Copilot | ❌ Not available | ✅ Available |
| Kiro (CodeWhisperer) | ❌ Not available | ✅ Available |
| Updates | Standard repo | Plus repo |
Switching Process
To Switch Versions:
- Go to Settings → CLI Proxy
- Locate Switch Version section
- Current version is displayed (Standard or Plus)
- Click Switch to Plus or Switch to Standard
Automated Steps:
1. Stop running server
2. Kill any remaining processes
3. Check for existing alternate version in same directory
4. If not found, download from GitHub:
- Standard: github.com/router-for-me/CLIProxyAPI
- Plus: github.com/router-for-me/CLIProxyAPIPlus
5. Extract to current directory
6. Update executable path
7. Restart server
If you already have both versions in the same directory, switching is instant without downloading.
GitHub Release Repositories
ZeroLimit downloads updates and versions from official GitHub repositories:
| Version | Repository |
|---|
| Standard | github.com/router-for-me/CLIProxyAPI |
| Plus | github.com/router-for-me/CLIProxyAPIPlus |
ZeroLimit automatically detects your operating system and downloads the correct binary:
| OS | Asset Name Pattern |
|---|
| Windows | windows_*.zip |
| macOS | darwin_*.zip / darwin_*.tar.gz |
| Linux | linux_*.zip / linux_*.tar.gz |
Server Health Check
ZeroLimit performs health checks to verify the CLI Proxy API is responding:
Health Check Endpoint:
GET {apiBase}/
Expected Response:
{
"message": "CLI Proxy API Server",
"endpoints": [...]
}
Health Check Timeout: 5 seconds
If health checks fail repeatedly, verify:
- Server is running
- Port 8317 is not blocked by firewall
- No other application is using the same port
Server Process Management
ZeroLimit uses Tauri commands to manage the server process:
| Command | Description |
|---|
start_cli_proxy | Starts server and returns process ID |
stop_cli_proxy | Stops server gracefully |
is_cli_proxy_running | Checks if server is currently running |
check_proxy_version | Queries server version and build date |
download_and_extract_proxy | Downloads and extracts new version |
find_alternate_proxy_exe | Locates alternate version in same directory |
set_run_in_background | Configures background running behavior |
Persistent Storage
CLI Proxy settings are stored locally:
Storage Key: zerolimit-cli-proxy
Persisted Settings:
{
exePath: string | null,
autoStart: boolean,
runInBackground: boolean,
hasCompletedOnboarding: boolean,
cliProxyMode: 'auto_download' | 'manual' | null,
cliProxyVersion: 'standard' | 'plus' | null,
cliProxyLatestVersion: string | null,
currentInstalledVersion: string | null,
serverBuildDate: string | null,
latestRemoteVersion: string | null
}
Troubleshooting
Server Won’t Start
Possible Causes:
- Executable path incorrect or file missing
- Port 8317 already in use
- Firewall blocking the executable
- Insufficient permissions
Solutions:
- Verify executable exists at configured path
- Check if another instance is running:
tasklist | findstr cli-proxy-api
- Run ZeroLimit as administrator
- Configure firewall to allow cli-proxy-api.exe
Update Fails
Possible Causes:
- No internet connection
- GitHub rate limiting
- Insufficient disk space
- Server process locked
Solutions:
- Check internet connectivity
- Wait a few minutes and retry
- Manually stop server before updating
- Free up disk space
- Download manually from GitHub releases
Version Switch Fails
Possible Causes:
- Download interrupted
- Process still running
- Permission denied
Solutions:
- Manually stop server first
- Kill process via Task Manager
- Check antivirus isn’t blocking download
- Download manually and use Browse to select executable
Server Status Shows “Running” But Connection Fails
Possible Causes:
- Server crashed after starting
- Port conflict
- API health check failing
Solutions:
- Stop and restart server
- Check logs (enable logging in Settings)
- Verify management key is correct
- Test manual connection:
curl http://localhost:8317
Related Pages