Deploy MultiVibe AI Gateway
OpenAI-compatible gateway pooling many AI provider accounts behind one key
multivibe
Just deployed
Deploy and Host MultiVibe AI Gateway on Railway
MultiVibe is a self-hosted, OpenAI-compatible AI gateway. Connect many provider accounts (OpenAI-compatible APIs, Mistral, Z.ai, xAI, OpenRouter, NVIDIA NIM, Ollama and more), then point any client at one /v1 endpoint with one API key. It routes, falls back between accounts, supports model aliases, and ships a web dashboard for accounts, models, traces and usage.
About Hosting MultiVibe
This template builds MultiVibe Core from source (the repository's root Dockerfile: a Node control plane plus the Rust v1 edge) and runs it as a single service:
- the Rust edge serves the dashboard and the OpenAI-compatible API on the public domain (port 1455); the control plane stays on loopback
- a persistent volume at
/datakeeps accounts, OAuth state, aliases, jobs and traces across redeploys ADMIN_TOKENandPROXY_API_KEYare generated for every deployment- trace bodies and headers are not stored by default (
TRACE_INCLUDE_BODY=false,TRACE_INCLUDE_HEADERS=false) - the bundled Security module (reversible pseudonymization of secrets before prompts leave MultiVibe) is fetched at startup, because Railway does not check out git submodules
The first build takes a few minutes.
After deploy:
- Open the service domain and sign in to the dashboard with the
ADMIN_TOKENvalue from the service's Variables. - Add your provider accounts under Accounts.
- Optionally enable the Security module under Modules.
- Point clients at
https://YOUR-RAILWAY-DOMAIN/v1withPROXY_API_KEYas the Bearer key. Requests without the key get 401.
Only connect provider accounts you are entitled to use this way, and check each provider's terms: some consumer subscriptions do not allow use through a third-party gateway.
Common Use Cases
- One OpenAI-compatible endpoint and key for many providers and accounts
- Automatic fallback between accounts and providers when one is rate-limited
- Model aliases with ordered fallback chains for agents and coding tools
- Central usage, trace and cost visibility for a small team
Dependencies for MultiVibe Hosting
- Source: https://github.com/thibautrey/multivibe (built from
main) - Security module: https://github.com/thibautrey/multivibe-security-module
- At least one AI provider account or API key
Deployment Dependencies
- Repository: https://github.com/thibautrey/multivibe
- Docker Compose reference: https://github.com/thibautrey/multivibe/blob/main/docker-compose.yml
Implementation Details
The official multivibe-host container image is not used: on Linux its launcher starts only the Node control plane, without the Rust edge or the internal job token the control plane now requires, so it exits at startup. The root Dockerfile runs start-multivibe.sh, which starts both processes and generates the shared internal token itself.
Why Deploy MultiVibe 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 MultiVibe 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
multivibe
thibautrey/multivibe
