api 聚合工具部署


方案
https://zhuanlan.zhihu.com/p/2015874448545326658

./cli-proxy-api --codex-login


# CLIProxyAPI
# 制作api一行就好
https://help.router-for.me/cn/configuration/provider/codex.html
# 配置本地codex使用模拟出来的api
https://help.router-for.me/cn/agent-client/codex.html


通用的 AI IDE 账号管理工具
https://github.com/jlcodes99/cockpit-tools?tab=readme-ov-file



认证信息保存到了
C:\Users\wyc\.cli-proxy-api\codex-cgz4ajo4@fasmtp.com-plus.json





curl http://127.0.0.1:8317/v1/models -H "Authorization: Bearer a1234567"



然后再做 Codex CLI 配置
确保 C:\Users\wyc\.codex\auth.json 也改成一样的值：
{
  "OPENAI_API_KEY": "123456"
}



https://github.com/fightroad/nssm/releases
nssm.exe start openai



windows服务配置

./nssm.exe install 服务名 "程序路径"
./nssm.exe set 服务名 AppDirectory "工作目录"
./nssm.exe set 服务名 AppParameters "启动参数"
./nssm.exe set 服务名 Start SERVICE_AUTO_START
./nssm.exe set 服务名 AppStdout "标准输出日志"
./nssm.exe set 服务名 AppStderr "错误输出日志"
./nssm.exe start 服务名
./nssm.exe stop 服务名
./nssm.exe remove 服务名 confirm
./nssm.exe dump 服务名