CLIProxyAPI应用搭建
VPS上进行搭建步骤
mkdir-p /root/cliproxyapi
cd /root/cliproxyapi
下载示例配置
wget-O config.yaml https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml
修改配置文件
host: ""
port: 8317
remote-management:
allow-remote: true
secret-key: "登录管理端的密码"
disable-control-panel: false
allow-remote 设置为true,不然后面进不了管理后台
配置挂载,端口映射,内存,运行代理
docker run -d \
--name cliproxyapi \
--restart always \
-p 8317:8317 \
-p 1455:1455 \
-v /root/cliproxyapi/config.yaml:/CLIProxyAPI/config.yaml \
-v /root/cliproxyapi/auths:/root/.cli-proxy-api \
--memory 100m \
eceasy/cli-proxy-api:latest
访问后台http://你的IP:8317/management.html
用配置的管理端密码进行登录
点击 OAuth 登录,选择Codex OAuth,点击登录,根据返回的路径,复制到浏览器进行打开
登录openai,登录后可以选择使用邮箱验证,邮箱获取到验证码后,粘贴进去进行验证,浏览器会跳转到一个localhost开头的路径
复制这个路径到管理端验证页面的输入框进行授权成功,就可以用了

浙公网安备 33010602011771号