Self-hosted AI gateway
All your models.One endpoint.Yours to run.
Rivelo is a lightweight, self-hosted AI gateway. Route chat, images, and video across providers, fail over on your terms, and keep every key and log on hardware you control.
One endpoint for every model. Your app connects through one endpoint to OpenAI, Anthropic, and Gemini.
How a request moves
One request, three decisions. Scroll to follow it.
- 01
Route
Your app sends a group alias. Rivelo resolves the Project Key, checks the group, and picks a candidate.
- 02
Fail over
A provider fails before output. The next candidate takes over. Three attempts share one 300-second budget.
- 03
Stream lock
After the first byte, there is no retry. Partial output is preserved and the error ends the same stream.
Candidates share the same model, version, and protocol. Failover happens before the first output byte. After that, the stream is locked.
Your existing SDK still works.
Point your client at Rivelo. Keep the protocol, payload, and streaming behavior. Models are group aliases.
| Protocol | Endpoint | Status |
|---|---|---|
| OpenAI Chat | POST /v1/chat/completions | supported |
| OpenAI Responses | POST /v1/responses, GET/DELETE /v1/responses/{id} | supported |
| Anthropic Messages | POST /anthropic/v1/messages | supported |
| Gemini GenerateContent | POST /gemini/v1beta/models/{alias}:generateContent | supported |
| OpenAI Images | POST /v1/images/generations, POST /v1/images/edits | supported |
| OpenRouter Videos | POST /v1/videos, GET /v1/videos/{id} | async |
| OpenAI Decisions | POST /v1/decisions | supported |
| Models | GET /v1/models, /anthropic/v1/models, /gemini/v1beta/models | supported |
Protocols are not translated. Each candidate uses its provider adapter, so your client keeps the payload and streaming shape it already sends.
See the full support matrixcurl $RIVELO_URL/v1/chat/completions \
-H "Authorization: Bearer $RIVELO_PROJECT_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4.1-flash","messages":[...]}'No new SDK.
Numbers you can defend.
Cost and latency are recorded per attempt, with explicit unknown values.
- Project
- Notes API
- Group
- deepseek-v4.1-flash
- Provider
- deepseek
- TTFT
- 412ms
- TPS
- 184.2 tok/s
- Input / output
- 1,000 / 256
- Cache read
- unknown
- Cost
- $0.001214
- Price snapshot
- frozen at admission
Illustrative values.
Price snapshot frozen at admission
The cost shown is the price at request time, not a later estimate.
Unknown stays unknown
No invented cache splits or token counts. Missing usage is reported as missing.
Per-project retention
Online and archive tiers, with an explicit policy for each project.
Logs that stay on your disk.
A bounded writer appends completed attempts to local SQLite. Query online or archived history.
Online
7 days by default, with 100,000-request and 1 GiB storage caps.
Archive
Per-project retention, with an explicit policy and a ten-year ceiling.
Cleanup
Bounded background batches, off the request path.
project group provider ttft tokens cost
acme deepseek-v4.1-flash openrouter 412ms 1,832 $0.0041
acme deepseek-v4.1-flash deepseek 288ms 1,904 $0.0038
studio img-gen openai - 1 image $0.0400Unknown values stay unknown. Prices are frozen at admission.
Small enough to read.
One Go binary, one SQLite file, and no external queue or database. Shared affinity across hosts is the only optional external service.
Single Go binary
The dashboard is embedded at build time.
SQLite only
Configuration and logs live on your disk.
Docker or direct
Compose example and HTTPS guidance included.
RIVELO_MASTER_KEY=<32 random bytes, base64>
RIVELO_ADMIN_TOKEN=<32 to 256 printable characters>
RIVELO_PUBLIC_URL=https://rivelo.example.com
RIVELO_DATABASE_PATH=data/rivelo.db
RIVELO_LOGS_PATH=logsSecrets stay outside the repository. The master key is stored separately from the database.
MIT licensed. Self-hosted by design.
The source is open. The data stays on your infrastructure.