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.

Request path diagramYour app sends a request through a Project Key and group alias. Rivelo routes it to a provider candidate. A failed attempt returns to Rivelo, which tries the next candidate, and the response streams back through Rivelo to your app.Rivelorequestfail · 429retryresponse · SSEYour appSDK / curlProject Keyauth + projectGroup aliasmodel: deepseek-v4.1-flash1 · OpenRouter1 · OpenRouter · 4292 · DeepSeek2 · DeepSeek · 2003 · OpenCode Go3 · OpenCode Go · idleattempt 1 / 3attempt 2 / 3300s shared budgetSSE streamstream lockedNo protocol translation
Request path diagramYour app sends a request through a Project Key and group alias. Rivelo routes it to a provider candidate. A failed attempt returns to Rivelo, which tries the next candidate, and the response streams back through Rivelo to your app.Your appSDK / curlRiveloProject Keyauth + projectGroup aliasmodel: deepseek-v4.1-flashrequestfail · 429retryresponse · SSE1 · OpenRouter1 · OpenRouter · 4292 · DeepSeek2 · DeepSeek · 2003 · OpenCode Go3 · OpenCode Go · idleattempt 1 / 3attempt 2 / 3300s shared budgetSSE streamstream locked
  1. 01

    Route

    Your app sends a group alias. Rivelo resolves the Project Key, checks the group, and picks a candidate.

  2. 02

    Fail over

    A provider fails before output. The next candidate takes over. Three attempts share one 300-second budget.

  3. 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.

ProtocolEndpointStatus
OpenAI ChatPOST /v1/chat/completionssupported
OpenAI ResponsesPOST /v1/responses, GET/DELETE /v1/responses/{id}supported
Anthropic MessagesPOST /anthropic/v1/messagessupported
Gemini GenerateContentPOST /gemini/v1beta/models/{alias}:generateContentsupported
OpenAI ImagesPOST /v1/images/generations, POST /v1/images/editssupported
OpenRouter VideosPOST /v1/videos, GET /v1/videos/{id}async
OpenAI DecisionsPOST /v1/decisionssupported
ModelsGET /v1/models, /anthropic/v1/models, /gemini/v1beta/modelssupported

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 matrix
same protocol in and out
curl $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.

sample completed attempt
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.

sample record shape
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.0400

Unknown 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.

environment
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=logs

Secrets 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.