Retrieved article excerpt
Open article · Retrieved 2026-11-04T22:24:35.608381+00:00
[OpenRing logo](https://github.com/elifalanrocha/openring/blob/main/docs/assets/logo.svg)
# OpenRing
**Self-hosted voice AI agents with a Vapi-compatible API. No platform fee.**
[CI](https://github.com/elifalanrocha/openring/actions/workflows/ci.yml)
[npm](https://www.npmjs.com/package/openring)
[PyPI](https://pypi.org/project/openring/)
[Python](https://pypi.org/project/openring/)
[License: MIT](https://github.com/elifalanrocha/openring/blob/main/LICENSE)
[Run it in one command](https://github.com/elifalanrocha/openring#-quick-start)
[Move from Vapi](https://github.com/elifalanrocha/openring#-moving-from-vapi)
[Quick start](https://github.com/elifalanrocha/openring#-quick-start) · [How it works](https://github.com/elifalanrocha/openring#-how-it-works) · [Compare](https://github.com/elifalanrocha/openring#-how-it-compares) · [API guide](https://github.com/elifalanrocha/openring#-api-guide) · [Providers](https://github.com/elifalanrocha/openring#-providers) · [Roadmap](https://github.com/elifalanrocha/openring/blob/main/ROADMAP.md) · [Português](https://github.com/elifalanrocha/openring/blob/main/README.pt-BR.md)
Hosted voice platforms charge a fee for every minute of every call, on top of what you already pay for
speech-to-text, the model, the voice and the phone line. OpenRing does the same job on your own computer
or server, with your own provider keys, and speaks the same JSON as Vapi.
- 💸 **No platform fee, ever.** You pay Deepgram, OpenAI, Twilio or whoever you pick, directly, at their price.
- 🔁 **Vapi-compatible.** Same assistant JSON, provider names, tool calls and webhooks: a Vapi client moves
over by changing its base URL, and **Import** copies an account in one click.
- 🖥️ **Yours.** Keys, calls and transcripts stay on your machine. No telemetry.
- 🆓 **Free to try.** A free local voice (Kokoro) is built in, so your first test call costs nothing.
[A tour of the dashboard: the overview, the calls with their cost, one call's transcript, the assistant editor and a model route](https://raw.githubusercontent.com/elifalanrocha/openring/main/docs/assets/screenshots/tour.gif)
The dashboard, with sample data.
## ⚡ Quick start
You need [Node.js](https://nodejs.org) 18 or later. Everything else, Python included, installs itself:
```
npx openring
```
The dashboard opens at <http://localhost:8000>. From there:
1. **Choose a password.** The first visit asks for one (only from this computer).
2. **Connect providers** on the **Providers** page: Deepgram for speech (new accounts get US$200 of credit)
and a model, for example Groq's free tier or one-click sign-in with OpenRouter. Each key is checked with
the provider before it's saved.
3. **Create an assistant** on **Assistants**: a greeting, instructions, a model and a voice.
4. **Talk to it.** Press **Test** and speak into your microphone. No phone number needed.
5. **Give it a number** when you're ready: see [Phone calls](https://github.com/elifalanrocha/openring#phone-calls).
Settings live in `~/.openring/.env`, created on the first run with a generated API key for apps that call
the API (it's under **Settings**). The free Kokoro voice downloads itself on the first start (about 120 MB).
## 🧭 How it works
```
flowchart LR
caller["Caller<br/>phone or browser"] <-->|audio| line["Twilio or WebRTC"]
line <--> openring
subgraph openring["OpenRing, on your server"]
direction LR
stt["Speech-to-text<br/>Deepgram, Whisper, ..."] --> llm["Model<br/>OpenAI, Groq, Ollama, ..."] --> tts["Voice<br/>ElevenLabs, Kokoro, ..."]
end
llm <-->|"tools and webhooks, in Vapi's format"| app["Your app"]
```
Loading
Each call runs a [Pipecat](https://github.com/pipecat-ai/pipecat) pipeline: the caller's speech becomes
text, the model answers (and can call your tools), and the voice speaks the answer back. Every turn's
latency is recorded, step by step, and shown in the dashboard.
| | |
| --- | --- |
| [The overview: calls, minutes, success rate, response time and provider cost](https://raw.githubusercontent.com/elifalanrocha/openring/main/docs/assets/screenshots/home.png) **Overview.** Calls, minutes, response time and what the providers charged. | [One call: transcript, response time, cost per provider and a model switch](https://raw.githubusercontent.com/elifalanrocha/openring/main/docs/assets/screenshots/call.png) **Every call.** Transcript, latency per turn, cost per provider, and each provider switch with its reason. |
| [The assistant editor: transcriber, model route and voice](https://raw.githubusercontent.com/elifalanrocha/openring/main/docs/assets/screenshots/assistant.png) **Assistants.** Transcriber, model (or a route) and voice, in the order a call goes through them. | [A model route with the Fastest, Cheapest, Reliable and Custom presets](https://raw.githubusercontent.com/elifalanrocha/openring/main/docs/assets/screenshots/route.png) **Model routes.** Fastest, Cheapest, Reliable or Custom, with each model's measured speed and price. |
## 📊 How it compares
| | OpenRing | Vapi | Retell | Dograh |
| --- | --- | --- | --- | --- |
| Source code | ✅ Open (MIT) | ❌ Closed | ❌ Closed | ✅ Open (BSD-2) |
| Platform fee | ✅ None | US$0.05/min | US$0.055/min | None self-hosted, US$0.01/min in its cloud |
| Run it on your server | ✅ `npx openring`, no Docker needed (Docker works too) | ❌ Their cloud | Their cloud; on-premise on Enterprise plans | ✅ With Docker |
| Calls and transcripts | ✅ On your server, no telemetry | Their cloud | Their cloud; on-premise on Enterprise plans | On your server when self-hosted; anonymous telemetry unless you turn it off |
| Vapi-compatible API | ✅ Change the base URL, import an account | (it's Vapi) | ❌ | ❌ |
| Free local stack | ✅ Whisper, Ollama, Kokoro | ❌ | ❌ | ✅ Open models you host |
| Calls at once | No limit of its own, your server decides (**beta**) | 4, then US$10 per line a month | 20, then US$8 per call a month | 10 by default when self-hosted, you can raise it; 10 in its cloud |
| Backup model | ✅ From any provider, when one fails or is slow (**beta**) | Same provider only, on OpenAI and Bedrock | ✅ Takes over when the main model fails or is slow | — |
| Phone lines | Twilio (outgoing in **beta**); Telnyx, Plivo and Vonage (**beta**); incoming only on Genesys (**beta**); any carrier by SIP trunk over UDP (**beta**) | ✅ Twilio, Vonage, Telnyx, SIP | ✅ Twilio, Telnyx, SIP | ✅ Twilio, Vonage, Telnyx, Plivo, Vobiz, Cloudonix, Asterisk |
| Campaigns | Every line that calls out (**beta**), no retries yet | ✅ | ✅ | ✅ With retries |
| Knowledge base (RAG) | ✅ Free, on your server, matching words; or your own search (**beta**) | ✅ Google Gemini, or your own server | ✅ | ✅ |
| Several assistants in one call | ✅ Squads, in Vapi's format (**beta**) | ✅ Squads | ✅ | ✅ |
| Visual flow builder | ❌ Not planned for now | Canvas for squads | ✅ | ✅ |
| Calls over WhatsApp | ❌ Not yet | — | — | ✅ Incoming only |
— means we didn't find it in their public docs. On every platform you also pay for the model, the voice and the
phone line, and for speech-to-text too, except that Retell's pricing page lists no separate charge for it. With
OpenRing, the server, its uptime and any compliance work are yours; hosted platforms take on the first two and help
with the third (for HIPAA, Vapi charges US$2,000 a month and Retell says there's no extra fee). Prices and features are
from each company's public pages and docs on November 2, 2026; check them before you decide. OpenRing isn't affiliated
with any of them.
## ✨ What works today
| Works today | Next |
| --- | --- |
| Browser test calls from the dashboard (WebRTC) | Routing speech-to-text and voices by cost |
| Model routes: Fastest, Cheapest, Reliable or Custom; the next model takes over when one fails or is slow (**beta**) | |
| A 100% local, free stack: Whisper, Ollama and Kokoro, one click in the editor | |
| Provider fallback in Vapi's format, across providers (**beta**) | |
| Callers in any language: the assistant answers in theirs (`"language": "multi"`) | |
| Several assistants on one call, handing the caller to one another: squads and the `handoff` tool (**beta**) | Handoffs chosen by your server, and to a whole squad |
| A knowledge base: files the assistant searches during a call, free and on your server, or your own search (**beta**) | Search by meaning, built in |
| Incoming phone calls through Twilio, confirmed on a real call | Outbound calls through Genesys |
| SIP trunks: any carrier, no Twilio in between, in and out (**beta**) | SIP over TCP and TLS |
| Outgoing calls through Twilio (**beta**: tell us how it goes) | |
| Campaigns: one assistant calls a list or CSV, a few at a time, greeting each person by name (**beta**) | |
| Calls in and out through Telnyx, Plivo and Vonage (**beta**, see [Telnyx](https://github.com/elifalanrocha/openring#telnyx-beta), [Plivo](https://github.com/elifalanrocha/openring#plivo-beta) and [Vonage](https://github.com/elifalanrocha/openring#vonage-beta)) | |
| Genesys Cloud calls through its Audio Connector, inside your Architect flows (**beta**, see [Genesys](https://github.com/elifalanrocha/openring#genesys-cloud-beta)) | |
| Vapi-style `/assistant`, `/phone-number`, `/call`, `/campaign` and `/tool` APIs | |
| Cost per call in dollars, per provider, at list prices (`cost` and `costBreakdown`) | The phone line's cost |
| Vapi tools: `function`, `apiRequest` (n8n, Make, Zapier), `endCall`, `transferCall` | |
| Vapi webhooks: `status-update`, `conversation-update`, `end-of-call-report`, `assistant-request` | Calls over WhatsApp |
| Import assistants, tools and numbers from a Vapi account | |
| 16 models, 6 speech-to-text and 9 voice providers, with Vapi's names | |
| Per-turn latency, time to first word, tokens and voice characters per call, with traffic lights | |
| Credit left on OpenRouter, Deepgram, ElevenLabs, Twilio, Telnyx and Plivo, on the Providers page | |
| Call history with transcripts, light and dark themes | |
The full plan is in the [roadmap](https://github.com/elifalanrocha/openring/blob/main/ROADMAP.md).
## 🔁 Moving from Vapi
Copy every assistant, squad, tool and Twilio number of an account in one request, or press **Import** on the
Assistants page. The key is used once and never stored; importing again updates what came in before.
```
curl -X POST http://localhost:8000/import \
-H "Authorization: Bearer $OPENRING_API_KEY" -H "Content-Type: application/json" \
-d '{"baseUrl": "https://api.vapi.ai", "apiKey": "YOUR_VAPI_PRIVATE_KEY"}'
```
The answer lists each assistant with anything that keeps it from taking calls here yet (for example a
provider OpenRing doesn't support yet). Documents keep their full JSON, so nothing is lost. Then point your
client's base URL at your server, and each imported Twilio number's voice webhook at
`$PUBLIC_URL/twilio/voice`.
## 📖 API guide
Every request takes `Authorization: Bearer $OPENRING_API_KEY`.
### Assistants
Same shape as Vapi:
```
curl -X POST http://localhost:8000/assistant \
-H "Authorization: Bearer $OPENRING_API_KEY" -H "Content-Type: application/json" \
-d '{
"name": "Front desk",
"firstMessage": "Hi! How can I help you today?",
"model": {"provider": "openai", "model": "gpt-4.1-mini",
"messages": [{"role": "system", "content": "You are a friendly receptionist."}]},
"voice": {"provider": "11labs", "voiceId": "YOUR_VOICE_ID"},
"transcriber": {"provider": "deepgram", "model": "nova-3", "language": "en"}
}'
```
A call ends by itself after `maxDurationSeconds` (10 minutes by default), or after `silenceTimeoutSeconds` without
activity (30 seconds by default; the clock waits while someone talks, the model thinks or a tool runs), with Vapi's
`endedReason` (`exceeded-max-duration`, `silence-timed-out`); `endCallMessage` is said first. When the caller goes
quiet after the assistant spoke,
`messagePlan.idleMessages` are said (one at random, after `idleTimeoutSeconds`,