Quick Start
macOS
brew install cliproxyapi
brew services start cliproxyapiWhen installed via Homebrew and run with
brew services, the default config path is$(brew --prefix)/etc/cliproxyapi.conf(typically/opt/homebrew/etc/cliproxyapi.confon Apple Silicon and/usr/local/etc/cliproxyapi.confon Intel Macs). If you want to keep using~/.cli-proxy-api/config.yamlas your main config, symlink the default path to it:bashbrew services stop cliproxyapi mv "$(brew --prefix)/etc/cliproxyapi.conf" "$(brew --prefix)/etc/cliproxyapi.conf.bak" ln -s ~/.cli-proxy-api/config.yaml "$(brew --prefix)/etc/cliproxyapi.conf" brew services start cliproxyapi
Linux
One-Click Installer Script
curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bashThanks to brokechubb for building the Linux installer!
Arch Linux (AUR)
If you are an Arch Linux user, you can install directly from the AUR:
# Using yay
yay -S cli-proxy-api-bin
# Using paru
paru -S cli-proxy-api-binAfter installation, you can manage the service via systemd:
# Start the service
systemctl --user start cli-proxy-api
# Enable auto-start on boot
systemctl --user enable cli-proxy-api⚠️ Note: A configuration file is required before starting the service. You can create it by copying the example configuration:
bashmkdir -p ~/.cli-proxy-api cp /usr/share/doc/cli-proxy-api-bin/config.example.yaml ~/.cli-proxy-api/config.yaml
Windows
You can download the latest release from here and run it directly.
Or
You can download our desktop GUI app from here and run it directly.
Docker
docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api eceasy/cli-proxy-api:latestBuilding from Source
Clone the repository:
bashgit clone https://github.com/router-for-me/CLIProxyAPI.git cd CLIProxyAPIBuild the application:
Linux, macOS:
bashgo build -o cli-proxy-api ./cmd/serverWindows:
bashgo build -o cli-proxy-api.exe ./cmd/server