.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
LOG_CHAT
LOG_CHAT: 是否Log 对话记录
OPENAI_BASE_URL
secret
OPENAI_API_KEY
secret
OPENAI_API_KEY:允许输入多个api key 形成轮询池
FORWARD_KEY
secret
FORWARD_KEY: 当前面的OPENAI_API_KEY被设置,就可以设置这里的FORWARD_KEY,客户端调用时可以使用FORWARD_KEY作为api key
ROUTE_PREFIX
ROUTE_PREFIX: 可指定整个转发服务的根路由前缀
TZ
设定时区
brew install flyctl && fly launch --from https://github.com/davideuler/openai-claude-proxy
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/davideuler/openai-claude-proxy
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/davideuler/openai-claude-proxy