.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
OPENAI_API_KEY
secret
ADMIN_KEY
secret
ACCOUNTS_DB
Upstream auth: prefer SQLite account storage managed by /admin. UPSTREAM_SSO remains as a single-account fallback.
UPSTREAM_SSO
UPSTREAM_COOKIE
UPSTREAM_CF_COOKIES
UPSTREAM_CF_CLEARANCE
UPSTREAM_CF_USER_AGENT
UPSTREAM_URL
UPSTREAM_X_CLUSTER
UPSTREAM_ORIGIN
UPSTREAM_REFERER
UPSTREAM_USER_AGENT
UPSTREAM_PROXY
UPSTREAM_IMPERSONATE
UPSTREAM_SKIP_SSL_VERIFY
GATEWAY_HOST
GATEWAY_PORT
REQUEST_TIMEOUT_S
GATEWAY_TOOLS_ENABLED
brew install flyctl && fly launch --from https://github.com/yforc/consolex2api
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/yforc/consolex2api
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/yforc/consolex2api