Which open-source Vapi alternative can run in our own infrastructure?
If a phone or voice agent cannot send patient or customer audio to a hosted platform, the closest self-hosted options are Pipecat, licensed under BSD-2-Clause, and LiveKit Agents, licensed under Apache-2.0. Vocode, under the MIT license, is the third name you will meet, but its repository has had no code pushed since November 2024, so treat it as a reference rather than a base for a new build. The main trade-off is that your organization assembles and runs the speech, model, telephony and hosting layers itself, and owns the security and uptime of each one. Vapi's pricing page lists no on-premise or self-hosted deployment, so the practical choice is between Vapi's hosted service and a stack your own team builds and operates.
Pipecat is a Python framework for real-time voice and multimodal agents, maintained by Daily and the community. It ships WebRTC and WebSocket transports and phone agent examples for Twilio and Telnyx, and its speech-to-text, LLM and text-to-speech integrations are configured separately from the framework. LiveKit Agents connects to LiveKit Cloud or to a LiveKit server you host, and adds SIP telephony for inbound and outbound calls. Its turn detection models fall under the separate LiveKit Model License, so legal should review that license before you ship. Confirm in writing which telephony carrier, speech vendor and model provider you will use, because each one becomes a separate business associate or processor relationship.
Once the framework is chosen, the security review moves to the components around it. Ask who signs the BAA or DPA for each hosted speech, model and carrier service, whether any of them retain audio or transcripts, and where recordings are written. Plan encryption in transit and at rest, access logging for call recordings, and retention settings for transcripts. The cost also changes shape: you pay for cloud hosting, telephony minutes, speech and model usage, and the engineering and on-call time to run them, rather than a single platform fee. Ask any integrator for a fixed written scope that names each component, its version and its owner before work starts.
License, maintenance and telephony support of each framework
This table compares Pipecat, LiveKit Agents and Vocode on license, maintainer, transports, telephony examples, self-hosting path and maintenance status. Read it as a starting point for due diligence: the license governs what you may run, while the maintenance row shows whether upstream fixes are still arriving. The main takeaway is that all three frameworks are free to use, but none of them is a complete Vapi replacement on its own.
| Item | Pipecat | LiveKit Agents | Vocode |
|---|---|---|---|
| License | BSD-2-Clause | Apache-2.0 for the framework; turn detection models under the separate LiveKit Model License | MIT |
| Maintainer | Daily and the community | LiveKit project | Vocode project (community repository) |
| Transports and telephony examples | WebRTC and WebSocket transports; phone agent examples for Twilio and Telnyx | SIP telephony for inbound and outbound phone calls | Voice agent library; confirm telephony connectors in the repository before relying on them |
| Self-hosting path | Run the framework in your own infrastructure; configure speech, LLM and transport services separately | Connect to LiveKit Cloud or a self-hosted LiveKit server | Run the library in your own infrastructure; configure providers separately |
| Maintenance status | Actively maintained repository (confirm current release activity before adoption) | Actively maintained repository (confirm current release activity before adoption) | No code pushed since November 2024; treat as unmaintained and plan for internal fixes |
| Vapi equivalent | Hosted service with no self-hosted edition listed on Vapi's pricing page | Hosted service with no self-hosted edition listed on Vapi's pricing page | Hosted service with no self-hosted edition listed on Vapi's pricing page |
| Software price | No license fee for the framework itself | No license fee for the framework itself | No license fee for the framework itself |
How the parts of a self-hosted voice agent connect
A call starts at a phone number that reaches your network through a SIP trunk or a telephony provider, then passes through a transport your team runs, such as a LiveKit server or a WebSocket or WebRTC endpoint. The agent framework you host sends caller audio to a speech to text service, a turn detection component decides when the caller has finished speaking, an LLM drafts the reply, and a text to speech service returns audio. The organization hosts the framework and transport itself, but the speech, model and telephony services are third-party components it must choose and contract separately. Check where each of those services processes audio and text, and whether it will sign the agreements your policy requires.
Components a self-hosted voice agent runs, and the third-party services it still needs.
Which framework fits which deployment situation
Pipecat suits a Python engineering team that wants to write the voice pipeline itself and connect it to WebRTC or WebSocket transports. Its README points to phone agent examples for Twilio and Telnyx, so a team already on one of those carriers has a documented starting point. Pipecat is licensed under BSD-2-Clause, a permissive license that generally allows internal use and modification without copyleft obligations, though your counsel should confirm how it reads against your other dependencies.
- Framework license: BSD-2-Clause covers the framework code; each speech, LLM and telephony provider you wire in carries its own terms.
- Integrations are separate: Speech to text, LLM, text to speech and transport services are configured separately, so each one is a separate vendor review.
- Maintenance model: Daily and the community maintain the project, so your team owns upgrades and patching of its own agent code.
- Telephony path: Confirm which carrier, recording setting and call data retention applies to the Twilio or Telnyx account you use.
Before approval, confirm which speech and model services sit in the call path and whether each has a signed DPA or BAA on the plan you will buy.
LiveKit Agents fits an organization that will operate its own LiveKit server and needs inbound and outbound phone calls through SIP. The framework is Apache-2.0 licensed and connects to either LiveKit Cloud or a self-hosted LiveKit server, so the hosting decision is yours. Note that the turn detection models are governed by the separate LiveKit Model License, which must be read on its own terms before you ship them.
- Framework license: Apache-2.0 covers the agents code and includes a patent grant that your legal team will recognize.
- Separate model license: Turn detection models fall under the LiveKit Model License, not Apache-2.0.
- Hosting choice: Selecting a self-hosted server moves the media and signaling layer into your network, but a LiveKit Cloud connection would send it to the vendor.
- SIP ownership: Your telephony provider and SIP trunk operate outside the framework, so their recording and retention terms need separate review.
Before approval, confirm the server operations model, who holds the on-call duty for the SIP path, and the DPA or BAA position of every external speech and model vendor.
Vocode is an MIT licensed library for voice based LLM agents, and MIT is one of the most permissive open-source licenses. The repository, however, has had no code pushed since November 2024. For a team with patient or EU personal data, that stall matters more than the license: you would own every security fix, dependency update and compatibility issue yourself. Vocode therefore belongs only in a prototype that uses synthetic or non-sensitive data and is not connected to production systems.
- License: MIT permits internal use and modification with a notice requirement.
- Maintenance gap: No code has been pushed since November 2024, so there is no evidence of ongoing security patching.
- Dependency risk: Any dependency with a known vulnerability would need your own remediation process.
- Exit path: Plan early to move to Pipecat or LiveKit Agents if the prototype moves toward real patient calls.
Before any use, confirm the scope is limited to test data, record that decision in the risk register, and set a review date after which the prototype is retired or rebuilt.
Some networks require that audio, transcripts, prompts and model weights never leave the boundary. A framework alone does not meet that test, because the framework is only one component. The speech to text, text to speech, LLM and turn detection services must each run inside the network or be contractually and technically confined to approved regions. Confirm this for every component before you pick a framework, since a single hosted call in the pipeline breaks the boundary.
- Every component listed: Transport, telephony, speech to text, LLM, text to speech and turn detection must each have a documented on-premises or in-region option.
- Licenses per component: Apache-2.0, BSD-2-Clause and MIT cover the framework code, but model weights and speech containers carry their own licenses.
- Egress controls: Block outbound calls at the network layer and log attempts, so a misconfigured plugin fails closed.
- Telephony exception: A PSTN connection cannot run fully inside an air-gapped network, so define the approved carrier interconnect as a documented exception.
Before approval, ask each vendor in writing where processing occurs, whether it works without internet access, and which license governs the models you would run.
What is free to use and what your team still has to run
The framework code in the open-source options carries no license fee, but a self-hosted voice agent still depends on paid or licensed parts that someone must buy, operate and secure. No vendor price for these third-party components is in the supplied facts, so each line below needs a written quote before a budget is set.
Speech to text provider
The framework does not transcribe audio on its own. You choose a speech to text service, either a hosted API or a model you run yourself, and that choice decides where patient audio goes and under which contract. The vendor is paid per usage or per licensed deployment, which recurs. Ask each candidate for its BAA or DPA, its retention terms and whether audio is used for model training, and get a quote that states the unit and the minimum commitment.
LLM and text to speech providers
Reasoning and spoken output come from a language model and a voice model, which are separate contracts from the framework. Hosted providers charge per token or per character, which recurs and rises with call volume and response length. Self-hosted models move that cost into GPUs and staff time. Confirm the data terms for each model vendor, and confirm which voice and model components are licensed for commercial use.
Telephony and SIP connectivity
Phone agents need a carrier that handles inbound and outbound calls, numbers and SIP trunks. The Pipecat README names Twilio and Telnyx as phone examples, and LiveKit Agents supports SIP telephony. Carriers bill for numbers, minutes and call legs, usually on a recurring basis. Ask the carrier for its own BAA or DPA, call recording and retention settings, and the regions where call media is routed.
LiveKit server operation
LiveKit Agents runs against LiveKit Cloud or a self-hosted LiveKit server. Choosing the self-hosted server moves the media server, its scaling, certificates and upgrades into your team's scope, with no vendor fee for the open-source server but real staffing cost. The turn detection models carry the separate LiveKit Model License, so check that license before commercial use. Confirm the license terms in writing with LiveKit.
Hosting, upgrades and monitoring
Every component the framework calls needs compute, networking, logging and a patch cycle. Those costs are mostly staff time and cloud infrastructure, both recurring. Vocode's repository has had no code pushed since November 2024, so a project you adopt may need a maintained fork or a move to an actively developed framework. Budget for dependency upgrades, failover testing and call-quality monitoring, and confirm them in the scope of any implementation quote.
Security and on-call ownership
Once calls run in your environment, you own the incident path: credential rotation for every provider key, access logs for call audio and transcripts, retention deletion, and response when a provider or carrier fails. Vapi's hosted HIPAA route moves part of this to the vendor under a BAA, so the self-hosted route transfers that work to your staff. Name an owner for each duty, and require a written support and security scope from any outside party you hire.
What you give up compared with hosted Vapi
Moving to a self-hosted stack means giving up the managed parts of Vapi: the hosted dashboard, the hosted voice runtime, and the operations Vapi runs for you. Frameworks such as Pipecat and LiveKit Agents give you code and components, not a console. Your team would build the call flow tooling, the assistant configuration, the logs and the review workflow that Vapi provides out of the box. Before approving this path, ask which of those functions your staff need on day one and who will maintain them after launch.
Telephony is the largest operational shift. With hosted Vapi, the platform handles call connectivity and scaling for you. A self-hosted build means you run the SIP trunking or telephony provider relationship, the media path, concurrency limits, failover, and monitoring for call quality and latency. LiveKit Agents supports SIP for inbound and outbound calls when connected to LiveKit Cloud or a self-hosted server, and Pipecat includes phone examples for Twilio and Telnyx, but each of those integrations still needs to be configured, load tested and watched by your own engineers. You also take on the separately configured speech to text, language model and text to speech providers, each of which needs its own contract and review.
The Trust Center list is the compliance gap that is easiest to miss. Vapi's HIPAA documentation points to a list of HIPAA compliant model, voice and transcription providers on its Trust Center at security.vapi.ai. Once you self-host, that list no longer covers your stack, so you must assess and document every vendor you choose yourself. For comparison, Vapi's pricing lists a HIPAA compliance add-on at $2,000 a month that includes a standard Data Processing Agreement and Business Associate Agreement, and it says Zero Data Retention is included with any success package. Weigh those contract and retention terms against what your own vendor agreements, retention settings and hosting costs would replace. Finally, self-hosting does not make a deployment compliant on its own. Your organization still decides how the software is configured, who can change it, what is recorded and how long it is kept, so those controls need an owner and a review cycle.
What drives total cost of ownership besides the license
This table lists the cost components an organization carries when it replaces Vapi with a self-hosted voice agent stack, who pays for each one, and whether it is one-time or recurring. Read it as a checklist for the quote you request, since most figures depend on your call volume, region and chosen providers and must come from those vendors or your own environment.
| Cost driver | Who pays | One-time or recurring | What reduces it |
|---|---|---|---|
| Infrastructure for a self-hosted LiveKit server or Pipecat service | Your cloud account or data center budget | Recurring, scales with concurrent calls | Right-size compute to measured peak concurrency and load test before go-live |
| Speech to text, LLM and text to speech usage charges | Third-party model and speech providers, billed to you | Recurring, usually per minute or per token | Compare provider rates, use regional endpoints you have contracted, and confirm each provider's BAA or DPA |
| Telephony minutes and SIP connectivity | Your telephony carrier | Recurring, per minute and per trunk | Confirm carrier BAA terms, negotiate minute rates, and size trunks to call volume |
| Turn detection model licensing (LiveKit Model License) | Your organization, through license review | One-time review, check at each upgrade | Have legal confirm commercial terms before production use |
| Staff time for integration, testing and upgrades | Your engineering team or a services partner under a written scope | One-time build, then recurring maintenance | Use a fixed scope with written deliverables and keep upgrade windows scheduled |
| Security testing and audit logging | Your security team or a testing provider | Recurring, at least per release and per major change | Automate log retention and access review, and test prompt injection and call recording paths |
| Keeping a stalled project working (Vocode) | Your team, since no code has been pushed since November 2024 | Recurring, grows as dependencies age | Avoid Vocode for production or budget for owning forks, patches and security fixes |
| Vapi comparison baseline | Your organization, to compare against Vapi quotes | Recurring, based on Vapi pricing terms | Ask Vapi for a written quote covering HIPAA add-on pricing and minutes before comparing |
What each license requires of the organization
Each open-source voice agent framework ships under its own license, and the obligations differ in ways that matter for a regulated deployment. The cards below cover the three frameworks and the separate model license that applies to turn detection, so the reviewer can see what each one asks of the organization before anything runs in production.
Pipecat under BSD-2-Clause
Pipecat is a Python framework for real time voice and multimodal agents, licensed under BSD-2-Clause. This is a permissive license that typically asks the organization to keep the copyright notice, the license text and the disclaimer when it redistributes the software, and it does not require source disclosure for internal use. Your legal team should read the full license text in the repository, since this page does not quote it, and confirm that any transport, speech or model integration you add carries its own license that also needs to be checked.
Pipecat repositoryLiveKit Agents under Apache-2.0
LiveKit Agents is licensed under Apache-2.0, which typically asks the organization to retain copyright and license notices, carry the license with any redistributed copy, and note significant changes made to the files. It is a permissive license with an express patent grant, which many security reviewers accept more readily than licenses without one. Confirm the exact terms in the full license text, and check whether a LiveKit Cloud connection or a self-hosted LiveKit server introduces separate contractual terms.
LiveKit Agents repositoryTurn detection models under a separate license
The turn detection models that LiveKit publishes are covered by the separate LiveKit Model License, which applies on top of the Apache-2.0 code rather than replacing it. An organization that adopts the code under Apache-2.0 may still be bound by the model license when it uses those models, so the two must be reviewed together. Ask your counsel to confirm the model license permits your intended use, including internal hosting and any commercial use of the voice agent.
Vocode under MIT with a stale codebase
Vocode is an MIT licensed library for voice based LLM agents. The MIT license is short and typically asks only that the copyright and permission notice be kept in copies of the software. The license is not the main risk here: the repository has had no code pushed since November 2024, so the organization inherits any unpatched defects and must decide who will maintain security fixes before adopting it for patient calls.
Vocode repositoryThird-party components keep their own terms
Each framework connects to speech recognition, language model and text to speech services that are configured separately from the framework itself. Those services, and any model weights you download, carry their own licenses, usage policies and data terms, which the framework license does not cover. Build a list of every component in the stack with its license, and check that the speech and model licenses permit the voice workflows your clinical or service teams plan to run.
What buyers ask before choosing a self-hosted voice agent
Are open-source voice agent frameworks free to run?
The frameworks themselves carry no license fee. Pipecat is BSD-2-Clause, LiveKit Agents is Apache-2.0, and Vocode is MIT, so your organization can run them without paying the framework maintainers. Licensing still needs a check: LiveKit's turn detection models fall under the separate LiveKit Model License, so review that document before you ship. Your recurring costs will come from the infrastructure you run, the speech to text, language model and text to speech services you connect, and the telephony provider that carries calls. Ask each vendor in that chain for its own price sheet and license, because none of them are covered by the framework license.
What does a self-hosted voice stack cost in effort compared with Vapi?
Effort shifts from buying a platform to operating one. Vapi's published pricing lists usage at $0.05 a minute of Vapi hosting with no success package, Core at $29 a month, and Pro at 10% of the hosting fee with a $999 a month minimum, so a hosted contract has a known platform line item. A self-hosted stack replaces that line with engineering time for setup, telephony integration, monitoring, upgrades, and on-call coverage. Ask your engineering lead to estimate those hours against your call volume, and treat the hosted vendor's pricing page as the baseline you are comparing against.
Can our own team build a self-hosted voice agent without outside help?
It depends on your team's experience with real-time audio, WebRTC or SIP telephony, and production operations. Pipecat and LiveKit Agents both come with examples, and Pipecat's README lists transport, speech to text, language model and text to speech integrations that you configure separately. Expect to own the telephony connection, call routing, latency tuning, barge-in handling, logging and failover. Vocode's repository has had no code pushed since November 2024, so confirm its maintenance status before you choose it. Teams that lack this experience often bring in an implementation partner for a fixed-scope build, then keep the work in-house.
Does Vapi offer an on-premise or self-hosted edition?
No, Vapi's pricing page does not list an on-premise or self-hosted deployment. Its Premier plan mentions dedicated SIP connectivity, which is a telephony option within Vapi's hosted service, not a way to run the platform in your own data center. Ask Vapi in writing whether any deployment outside its hosted service exists, and get the answer in your contract file. If the answer is no, the hosted service is the only way to use Vapi, and your compliance review will need to cover it as a hosted vendor.
Can a self-hosted voice stack meet HIPAA or GDPR on its own?
No. Running open-source software in your own infrastructure moves the hosting question under your control, but it does not make a deployment compliant by itself. Compliance depends on how you configure access control, encryption, logging and retention, and on the contracts for each component. Your speech to text, language model, text to speech and telephony providers each handle audio or transcripts, so you need a business associate agreement under HIPAA or a data processing agreement under GDPR from every vendor that touches protected data, or a design that keeps that data out of their hands. Review the HIPAA and AI guidance and your own legal counsel's position before approval.
What should we ask a partner in a scoping call?
Ask for a written scope before any work starts, with deliverables, timelines and the systems covered. Confirm which frameworks they recommend and why, how they handle telephony, and who signs the business associate or data processing terms for each component in the chain. Ask how they test prompt injection, call recording access, credential storage and admin controls, and whether they deliver documentation your security and compliance teams can review. Ask what ongoing support, upgrades and retesting cost and how those are scoped. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in your own infrastructure, and it does not issue audit reports or certifications, so ask for the independent assessment path separately.
What catches buyers out with open-source voice frameworks
Moving voice agents off Vapi shifts responsibilities that the hosted platform handled for you. The cards below cover the framework itself, its licenses, the speech and model providers around it, telephony, patching, and the logging and access controls you must now own.
Check whether the repository is still active
A framework you self-host is only as current as its maintainers. Vocode's MIT licensed library had no code pushed since November 2024, so an organization adopting it would carry the full burden of any security fix, dependency update or telephony change itself. Before approval, check the commit history, open security issues and release tags for the exact version you plan to run, and record who would patch it if the upstream project stops moving. Compare this with Pipecat and LiveKit Agents, which are actively maintained projects.
Vocode repositorySeparate licenses on model components
The framework license does not cover everything in the stack. LiveKit Agents is Apache-2.0, but its turn detection models fall under the separate LiveKit Model License, so the framework can be approved while a model component needs its own legal review. Ask counsel to read the license for every model file you download, confirm whether commercial use and redistribution are permitted, and keep a bill of materials listing each component with its license and version.
LiveKit Agents repositorySpeech and model providers with different terms
A self-hosted voice agent still sends audio and text to speech to text, LLM and text to speech services unless you run those locally too. Pipecat lists integrations for transports, speech recognition, LLMs and voice synthesis, and each is configured separately from the framework. Each provider brings its own BAA availability, retention default, training terms and hosting region. For every provider in your configuration, confirm the contract, the data path and whether patient audio leaves your environment.
Pipecat repositoryTelephony and SIP configuration errors
Phone agents depend on carrier connectivity, and the hosted platform's Premier plan mentions dedicated SIP connectivity that you would have to build yourself. Misconfigured inbound or outbound SIP trunks can route calls to the wrong agent, expose caller audio on an unencrypted path, or leave call recordings in a carrier account you do not govern. Test call routing, media encryption, failover and recording storage in a non-production environment, and document which carrier holds call metadata and under what terms.
Unsupported or unpatched runtime versions
Self-hosting moves patching of the Python runtime, WebRTC and WebSocket libraries, operating system and container images into your change process. A framework pinned to an old dependency can carry known vulnerabilities after the vendor stops shipping fixes. Set a written patch cadence, scan images and dependencies on each build, and retire versions that no longer receive security updates. Ask who signs off on emergency patches for voice components that handle live patient calls.
Logging and access control gaps
The hosted tool records calls, configuration changes and API activity in its own console, and those records may disappear from your review scope once you self-host. Before approval, confirm you can log call metadata, transcript access, tool invocations, prompt and configuration edits, and administrator sign-in, and that logs are retained, tamper-resistant and reviewable. Restrict who can read transcripts, rotate the API keys each provider issues, and test that a departed engineer's credentials stop working.
How DeployOpen helps teams run a private voice agent
DeployOpen plans, builds and hands over self-hosted voice agent platforms inside the client's own cloud accounts, data centers or air-gapped networks. We scope the work in writing first, so the compliance, security and privacy teams know exactly what runs where before anything is built.
How we scope
- Written scope listing which open-source voice framework, telephony path and speech components are in and out
- Mapping of where call audio, transcripts and model requests would travel in your environment
- Agreed deliverables and timelines set before work starts, since most engagements are fixed-scope
- Confirmation of which speech-to-text, LLM and text-to-speech providers you will license or host yourself
How we build
- Deployment of the chosen framework in your infrastructure with SSO, access control and audit logging
- Configuration of telephony connectivity such as SIP trunks, with the carrier contracts and data terms reviewed by your team
- Data handling controls for recordings, transcripts and retention, configured to match your privacy policy
- Security testing of the voice agent, including prompt injection, tool permissions and credential handling
How we hand over
- Documentation of the architecture, data flows, configuration and known limits, so reviewers can check each component
- Findings report with fixes and a retest once the agreed corrections are in place
- Evidence packs for your compliance assessment, which DeployOpen prepares but independent auditors must assess
- Handover of operational runbooks so your own staff can run, patch and monitor the platform
How we support
- Ongoing support, upgrades and continuous testing available as a retainer after handover
- Regular review of framework releases and component changes against the agreed configuration
- Retesting after upgrades or changes to speech, model or telephony providers
- A quote built from the written scope, with no published price list

