Deploy CLIProxyAPI | (Just Updated) Your Subscription as an API, Key-Locked From Boot
OpenAI-compatible proxy for your CLI plans, API key enforced from boot
cliproxyapi
Just deployed
/data
Deploy and Host CLIProxyAPI on Railway
CLIProxyAPI (48k+ stars) wraps the CLI/subscription plans you already pay for — Claude Code, ChatGPT Codex, Gemini/Antigravity, Grok — behind one OpenAI-, Gemini-, Claude- and Codex-compatible HTTP API, so any tool that speaks the OpenAI API can use them.
This listing is the hardened build: the proxy comes up with a generated API key already enforced and a generated management password, its OAuth logins live on a volume, and the image is pinned by digest.
About Hosting CLIProxyAPI
One container, ~15 MB resident, no database. Railway injects PORT; the service writes its
config to a mounted volume on first boot and keeps it there, so the accounts you sign in through
the management panel survive every redeploy. Two variables are pre-filled with per-deploy
secrets — there is nothing to type before clicking Deploy, and nothing left blank.
Why Deploy CLIProxyAPI Here
- No open proxy.
api-keysis seeded from a${{secret(48)}}on first boot, so an unauthenticated request gets401from the first second. A proxy on a public Railway domain with no key is a stranger burning your subscription quota. - A management password nobody else knows. The panel key is a
${{secret(32)}}, not a documented placeholder. It is bcrypt-hashed on first start. - Your logins survive a redeploy.
auth-diris/data/authson the volume, not the container's ephemeral home directory — signing your accounts back in after every deploy is the usual failure of self-hosted builds of this proxy. - Pinned by digest, not a moving
latesttag, and health-checked on/healthzso Railway does not route traffic before the proxy answers.
Common Use Cases
- Point an OpenAI-compatible client (Cline, Roo, LibreChat, an SDK) at your own subscription.
- Give an agent or CI job a single stable endpoint with one API key you can rotate.
- Pool several provider accounts behind one URL, managed from the built-in control panel.
Dependencies for CLIProxyAPI
- CLIProxyAPI (MIT), image
eceasy/cli-proxy-api, pinned by digest.
Deployment Dependencies
- A Railway volume for
/data(config + OAuth credentials) — included in the template. - Your own provider accounts, signed in once through
/v0/managementafter deploy.
Template Content
cliproxyapi
eceasy/cli-proxy-api