快速开始
macOS
bash
brew install cliproxyapi
brew services start cliproxyapiLinux
一键安装脚本
bash
curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash感谢 brokechubb 开发的 Linux 安装器!
Arch Linux (AUR)
如果你是 Arch Linux 用户,可以直接从 AUR 安装:
bash
# 使用 yay
yay -S cli-proxy-api-bin
# 使用 paru
paru -S cli-proxy-api-bin安装完成后,你可以通过 systemd 管理服务:
bash
# 启动服务
systemctl --user start cli-proxy-api
# 设置开机自启
systemctl --user enable cli-proxy-api⚠️ 注意: 服务启动前需要配置文件。你可以通过复制示例配置文件来创建它:
bashmkdir -p ~/.cli-proxy-api cp /usr/share/doc/cli-proxy-api-bin/config.example.yaml ~/.cli-proxy-api/config.yaml
Windows
你可以在 这里 下载最新版本并直接运行。
或者
你可以在 这里 下载我们的桌面图形程序并直接运行。
Docker
bash
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:latest源码编译
克隆仓库:
bashgit clone https://github.com/router-for-me/CLIProxyAPI.git cd CLIProxyAPI构建程序:
Linux, macOS:
bashgo build -o cli-proxy-api ./cmd/serverWindows:
bashgo build -o cli-proxy-api.exe ./cmd/server