Deploy CLIProxyAPI - No API Key Needed
OpenAI/Gemini/Claude/Codex compatible API proxy for CLI with OAuth support
eceasy/cli-proxy-api:latest
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Deploy and Host CLIProxyAPI - No API Key Needed on Railway
CLIProxyAPI is a powerful proxy server that exposes CLI-based AI models such as Gemini CLI, OpenAI Codex, Claude Code, Qwen Code, iFlow, and Antigravity through OpenAI-compatible APIs. It enables OAuth-based authentication, eliminating the need for API keys while providing load balancing, streaming responses, and seamless integration with popular AI coding assistants.
About Hosting CLIProxyAPI - No API Key Needed
Deploying CLIProxyAPI on Railway provides a simple, production-ready environment for running an OAuth-powered AI proxy without managing your own infrastructure. The deployment uses the official Docker image with a persistent Railway Volume to securely store configuration files and OAuth credentials across restarts. Once deployed, you can authenticate one or more AI providers through the built-in management interface and connect your favorite AI coding tools using the generated API endpoint. Railway automatically handles networking, HTTPS, deployments, and scaling, making it easy to self-host CLIProxyAPI with minimal setup.
Common Use Cases
- Connect AI coding assistants such as Cursor, Continue, Cline, Windsurf, Roo Code, and other OpenAI-compatible clients without using provider API keys.
- Manage multiple OAuth accounts with automatic load balancing and failover across supported AI providers.
- Self-host an OpenAI-compatible API gateway for teams, personal development environments, and AI-powered applications.
Dependencies for CLIProxyAPI - No API Key Needed Hosting
- Railway Volume mounted at
/datafor persistent configuration and OAuth credentials. - OAuth authentication with one or more supported providers (Gemini CLI, OpenAI Codex, Claude Code, Qwen Code, iFlow, or Antigravity).
Deployment Dependencies
- GitHub Repository: https://github.com/router-for-me/CLIProxyAPI
- Documentation: https://help.router-for.me/
- Docker Image: https://hub.docker.com/r/eceasy/cli-proxy-api
- Configuration Guide: https://help.router-for.me/configuration/options.html
Implementation Details
Deploy using the official Docker image:
eceasy/cli-proxy-api:latest
Mount a persistent Railway Volume at:
/data
Configure the following environment variables:
| Variable | Value | Required |
|---|---|---|
DEPLOY | cloud | ✅ Yes |
PORT | 8317 | ✅ Yes |
MANAGEMENT_PASSWORD | Choose a strong password | ✅ Yes |
Example:
DEPLOY=cloud
PORT=8317
MANAGEMENT_PASSWORD=your-secure-password
> Important: MANAGEMENT_PASSWORD is required to log in to the built-in Management Web UI. Make sure to remember this password, as it will be used to access the dashboard where you authenticate AI providers, configure accounts, and manage CLIProxyAPI.
Mount a Railway Volume at /data to persist your configuration and OAuth credentials across deployments.
If your deployment requires a custom start command, use:
sh -c "[ -f /data/config.yaml ] || cp /CLIProxyAPI/config.example.yaml /data/config.yaml && /CLIProxyAPI/CLIProxyAPI --config /data/config.yaml"
After deployment:
-
Generate a Railway public domain.
-
Open the Management Web UI using your Railway domain.
-
Log in using the password configured in the
MANAGEMENT_PASSWORDenvironment variable. -
Authenticate your preferred AI provider(s) (Gemini CLI, OpenAI Codex, Claude Code, Qwen Code, iFlow, or Antigravity).
-
Configure your AI coding tool using:
- Base URL:
https:///v1 - API Key:
sk-cliproxyapi-default-key-change-me(or your custom API key if configured).
- Base URL:
Why Deploy CLIProxyAPI - No API Key Needed on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying CLIProxyAPI - No API Key Needed on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
eceasy/cli-proxy-api:latest
eceasy/cli-proxy-api:latest