CLIProxyAPIPlus 部署教程(Docker 版)
🚀 CLIProxyAPIPlus 部署教程(Docker 版)
📌 项目地址
CLIProxyAPIPlus 是 CLIProxyAPI 的增强版本,支持更多第三方模型接入(如 Copilot、CodeWhisperer 等)。
📦 一、环境准备
确保你的服务器已安装:
- Docker
- Docker Compose(推荐 v2+)
📁 二、创建部署目录
mkdir -p ~/cli-proxy && cd ~/cli-proxy
⚙️ 三、创建 docker-compose.yml
cat > docker-compose.yml << 'EOF'
services:
cli-proxy-api:
image: eceasy/cli-proxy-api-plus:latest
container_name: cli-proxy-api-plus
ports:
- "8317:8317"
volumes:
- ./config.yaml:/CLIProxyAPI/config.yaml
- ./auths:/root/.cli-proxy-api
- ./logs:/CLIProxyAPI/logs
restart: unless-stopped
EOF
📥 四、下载配置文件
curl -o config.yaml https://raw.githubusercontent.com/router-for-me/CLIProxyAPIPlus/main/config.example.yaml
🚀 五、启动服务
docker compose pull
docker compose up -d
🛠️ 六、修改配置(重点)
编辑 config.yaml:
1️⃣ 开启远程管理
remote-management:
allow-remote: true
2️⃣ 设置登录密钥
remote-management:
secret-key: "你的密码"
3️⃣ 是否禁用管理面板(可选)
remote-management:
disable-control-panel: false
说明:
- false 👉 启用管理面板
- true 👉 /management.html 返回 404
🌐 七、访问管理面板
本地访问:
http://localhost:8317/management.html
服务器访问:
http://你的服务器IP:8317/management.html
🔐 登录方式
- 输入你设置的
secret-key - 登录后台管理界面
📊 八、目录结构
~/cli-proxy
├── docker-compose.yml
├── config.yaml
├── auths/
└── logs/
🔄 九、常用命令
查看日志
docker compose logs -f
重启服务
docker compose restart
停止服务
docker compose down
⚠️ 注意事项
- 必须设置
secret-key - 确保服务器开放 8317 端口
- 建议生产环境使用反向代理(Nginx / HTTPS)
✅ 总结
创建目录 → 写 compose → 下载配置 → 启动 → 修改配置 → 访问面板

浙公网安备 33010602011771号