Retell AI open source alternative and on premise options

Pipecat and LiveKit Agents are the closest self-hosted alternatives to Retell AI's hosted voice agents, both under permissive licenses. The main trade-off is that you assemble and govern the telephony, speech, language model and voice providers yourself.

On this page

Which open-source framework can replace Retell AI on premises?

If a phone agent cannot send patient or EU caller data to a hosted platform, the closest self-hosted options are Pipecat, a BSD-2-Clause licensed Python framework for real-time voice agents, and LiveKit Agents, Apache-2.0 licensed and able to connect to a self-hosted LiveKit server with SIP telephony for inbound and outbound calls. The main trade-off is that you assemble and govern the telephony, speech recognition, LLM and text-to-speech services yourself. Pipecat's transports and phone examples for Twilio and Telnyx are configured separately from the framework, so each provider you choose becomes its own contract, subprocessor and retention decision. LiveKit's turn detection models are under the separate LiveKit Model License, which your legal team should read before deployment.

Vocode is MIT licensed, but its repository has had no code pushed since November 2024, so treat it as a reference rather than a base for a long-lived production system without a maintenance plan. Retell's pricing page describes shared servers for pay-as-you-go plans and a dedicated server add-on for Enterprise, and it does not describe a customer-run deployment. Ask Retell in writing whether any option puts the runtime in your own cloud account or data center, because the answer changes which framework is realistic for you.

Security, privacy and telephony owners should decide together. The security lead should own credential handling, network placement and logging for each component, the privacy lead should map which caller data reaches each service and for how long, and the platform team should carry patching and upgrades after go-live. Each self-hosted component needs the same review you would give a hosted vendor, including its own data processing terms where a managed service remains in the chain.

How Pipecat, LiveKit Agents and Vocode compare on license and status

This table compares the three open-source voice agent frameworks on license, runtime, telephony support, hosting model and maintenance status. Read it as a shortlist filter: the license and last-push rows decide what you can adopt, while the transport and telephony rows show how much integration work remains before a phone agent can take real calls.

AttributePipecatLiveKit AgentsVocode
LicenseBSD-2-ClauseApache-2.0 for the framework; turn detection models fall under the separate LiveKit Model LicenseMIT
Language or runtimePython framework for real time voice and multimodal agentsFramework that connects to LiveKit Cloud or a self-hosted LiveKit serverLibrary for voice based LLM agents
Transports or telephonyWebRTC and WebSocket transports; phone agent examples for Twilio and TelnyxSIP telephony for inbound and outbound phone callsConfirm telephony options in the repository before adopting
Hosting modelRuns in your own process; speech, LLM and voice services are configured separatelySelf-hosted LiveKit server or LiveKit Cloud; you choose which appliesSelf-hosted library; hosting and service choices are yours
Maintenance signalActively maintained by Daily and the communityActively maintained open-source project; confirm current release activityNo code pushed since November 2024; treat as a stale dependency
Model license checkConfirm the license of each chosen speech, LLM and voice model separatelyReview the LiveKit Model License before using turn detection modelsConfirm the license of each chosen model separately

How the parts of a self-hosted phone agent connect

The diagram starts at the caller's phone call, which reaches a carrier or SIP layer such as Twilio or Telnyx, the two providers named in the Pipecat phone examples. That layer hands the call to the voice agent framework, which sends caller audio to speech to text, the language model and text to speech services. Each hop that carries caller audio or transcripts is marked, so a reviewer can see every point where personal data leaves the organization's network. Check which of these services run inside your network and which are third-party endpoints, because the framework being self-hosted does not by itself keep the rest of the chain in-house.

Audio and transcript hops that can leave the organization's network are marked for review.

What is free and what your team still has to run

Replacing a hosted voice agent platform with a self-hosted stack moves costs from a per-minute vendor fee into components you license, host and operate yourselves. Each card below separates a component's license terms from the recurring costs and operating duties that come with running it.

Framework license terms

Pipecat is BSD-2-Clause licensed, and LiveKit Agents is Apache-2.0 licensed, so using either framework itself carries no license fee. Vocode is MIT licensed, but its repository has had no code pushed since November 2024, which matters for any security patch you would need to carry yourself. Confirm the license text in each repository and record which version you deploy, since license terms are the only cost that is one-time to review. Ask your legal team to confirm that your use case, including redistribution inside a product, fits the license.

Pipecat on GitHub

Self-hosted LiveKit server

LiveKit Agents can connect to LiveKit Cloud or to a LiveKit server you run yourself. The self-hosted route moves media handling into your cloud account or data center, so the server, its certificates, network ports and scaling become your recurring cost and your operating duty. Usage-driven cost comes from the compute and bandwidth your calls consume. Confirm with LiveKit which server edition, license and support options apply to your deployment before you commit to this path.

LiveKit Agents on GitHub

Separately licensed turn detection models

LiveKit's turn detection models are not covered by the Apache-2.0 license of the agents framework. They fall under the separate LiveKit Model License, which you must read before you ship them in a product or in a regulated workflow. Treat this as a distinct legal review item, separate from the framework review. Confirm the model license terms, any usage limits and whether a commercial agreement is needed for your volume.

LiveKit Agents on GitHub

Speech, language and voice services

Pipecat is a framework, so speech to text, language model and text to speech services are separate products that you select, contract and configure yourselves. Each one is typically billed by usage and each one receives caller audio or transcripts, which means each needs its own data processing terms and retention settings. Confirm with every provider whether a business associate agreement or data processing agreement is available on your plan, where audio is processed and how long it is kept. Map these services in your data flow diagram before any patient call reaches them.

Pipecat on GitHub

Carrier and SIP trunk

Phone agents need a carrier or SIP trunk to place and receive calls, and that contract is separate from the framework and from any hosted platform. Charges are usually driven by call minutes and numbers, and the carrier handles call metadata, recordings if enabled and caller numbers. Confirm whether your carrier signs a business associate agreement or data processing agreement for your account tier, which regions carry the traffic, and what call detail records it retains. Pipecat's examples use Twilio and Telnyx, so check the terms of whichever carrier you select.

Staff who run the stack

The largest recurring cost is people. Someone must host and patch the framework, upgrade the LiveKit server and model dependencies, rotate credentials, monitor call quality, review audit logs and cover on-call for a voice service that patients may depend on. Staffing needs grow with call volume and the number of integrated providers. Decide who owns each duty in writing before launch, and ask any implementation partner to name the duties, hours and response commitments in a written scope and quote.

Which framework fits a small internal team, a regulated organization or an air-gapped site

A small team testing whether a phone agent can answer internal calls usually needs the fewest moving parts. Pipecat is the most direct starting point for this situation. It is a BSD-2-Clause Python framework for real time voice and multimodal agents, maintained by Daily and the community, and its README includes phone agent examples for Twilio and Telnyx. LiveKit Agents is also a sensible choice if the team expects to add telephony through SIP later, since it is Apache-2.0 licensed and can run against LiveKit Cloud for the pilot.

  • Pipecat for fast trials: Python code, WebRTC and WebSocket transports, and telephony examples make a proof of concept reachable with one developer.
  • LiveKit for SIP-first designs: SIP telephony for inbound and outbound calls fits teams that already run a telephony provider.
  • Vocode as a weak fit: its MIT license is permissive, but the repository has had no code pushed since November 2024, so a new build would start on a stalled base.
  • Separate model licenses: LiveKit's turn detection models sit under the separate LiveKit Model License, so check it even when the framework is Apache-2.0.
  • Pilot data rules: use test numbers and synthetic scripts until the data handling review is complete.

Before starting, confirm which speech, language and voice providers the pilot will call and whether any of them receive call audio outside your approved regions.

What drives total cost beyond the framework license

This table lists the cost components of running a self-hosted phone agent, who is paid for each, and what moves it up or down. The hosted Retell AI pay as you go rate of $0.07 to $0.31 a minute, per Retell's pricing page (read November 2026), is the comparison point, but self-hosted costs are not estimated here, so use the quote questions in each row to build your own comparison.

Cost componentWho is paid or who bears itWhat drives it up or downWhat to ask for in a quote
Framework licenseFramework maintainers or none for MIT, BSD-2-Clause and Apache-2.0 code; separate licenses for some modelsFramework choice; LiveKit turn detection models fall under the separate LiveKit Model LicenseWritten confirmation of every license that applies to the chosen stack, including models
Carrier and telephony chargesTelephony provider such as Twilio or Telnyx, or a SIP carrierCall minutes, inbound versus outbound volume, number rental and regional routingPer-minute and per-number rates, SIP trunking terms and how calls are billed for each direction
Speech to text, language model and text to speech servicesEach third-party provider that the framework connects to, billed separately from the frameworkModel choice, call length, concurrency and whether a provider offers zero data retention termsPer-unit rates for each service, retention and training terms in writing, and which regions process audio and text
Hosting infrastructureThe organization, through its own cloud account or data centerConcurrent call capacity, media server sizing, redundancy and whether GPUs are needed for local modelsInfrastructure sizing assumptions from the implementer, with the call volume and peak concurrency they were based on
Engineering time to integrate and testThe organization's staff or an implementation partner, paid by fixed scope or timeNumber of telephony paths, custom workflows, EHR or CRM connections and testing of consent and escalation flowsA written scope with named deliverables, testing approach and acceptance criteria before work starts
Upgrade and security patchingThe organization, on an ongoing basisPace of upstream releases, number of dependencies and the need to re-test voice paths after each changeA patching schedule, dependency inventory and a statement of which components will be retested after each upgrade
On-call supportThe organization's operations team or a retained support providerHours of coverage needed for live patient or customer calls, and escalation paths when a provider failsSupport hours, response targets written into the contract and the escalation path for telephony and model provider outages
Compliance evidenceThe organization, with auditors and any vendor assessments it chooses to obtainLogging, retention settings, access reviews and the vendor agreements the organization signs for each third-party serviceA list of the evidence the organization must produce and which parts a provider or implementer will supply

What the MIT, BSD and Apache licenses require of your organization

The open-source voice agent frameworks in this comparison use permissive licenses, which allow your organization to run, modify and deploy them internally with few restrictions. The obligations that remain are mostly about notices and attribution, and one component carries a separate license that needs its own review. Legal should confirm each item against the exact license file in the version you deploy.

Pipecat under BSD-2-Clause

Pipecat is a Python framework for real time voice and multimodal agents, with WebRTC and WebSocket transports and phone agent examples for Twilio and Telnyx. The BSD-2-Clause license generally asks you to keep the copyright notice and license text when you redistribute the software, and to avoid using the project's name to endorse a product without permission. Internal use inside your own infrastructure usually creates fewer distribution duties, but the integrations you add for speech to text, LLM and text to speech are configured separately and carry their own licenses. Ask legal to inventory each one.

Pipecat on GitHub

LiveKit Agents under Apache-2.0

LiveKit Agents connects to LiveKit Cloud or a self-hosted LiveKit server and supports SIP telephony for inbound and outbound calls. The Apache-2.0 license generally requires that you include a copy of the license, keep the existing notices, and mark any files you change when you redistribute them. It also includes a patent license from contributors, which matters if your team builds custom telephony logic. Confirm whether your deployment is internal only, and record which version and notice files you ship so your security reviewer can match them to the source.

LiveKit Agents on GitHub

Vocode under MIT

Vocode is a library for voice based LLM agents published under the MIT license. The MIT license generally requires that the copyright notice and permission notice be included in copies or substantial portions of the software, and it offers little other restriction. The repository has had no code pushed since November 2024, so the license is not the main risk here. The main risk is maintenance: a reviewer should ask who will patch security defects in the library and its dependencies, and whether that work is in your staffing plan.

Vocode on GitHub

LiveKit Model License for turn detection

The turn detection models used by LiveKit Agents are licensed under the separate LiveKit Model License, not the Apache-2.0 license that covers the framework. Review this license on its own before deployment. A permissive framework license does not carry over to model weights, and the model terms may restrict certain uses, redistribution or commercial conditions. Legal should read the model license text, confirm it allows your intended internal use, and record which model files and versions are in your deployment so the approval covers exactly what runs in production.

Third-party components and notices

Every framework in a self-hosted phone agent pulls in speech recognition, language model, text to speech, telephony and dependency packages, each under its own license. The framework license tells you little about these. Build a software bill of materials that lists each component, its license and its version, and ask engineering to keep it updated with each upgrade. Retain the notice files that ship with each package, since these notices are what most permissive licenses ask you to keep.

Legal and security sign-off

Licenses do not decide whether a self-hosted phone agent is acceptable for patient or EU personal data. They only confirm that your organization may use the code and models. Ask legal to sign off on license obligations, and ask security to review the data handling, retention and access controls separately. Note that licensing questions and data protection questions can have different owners, and that a compliant license does not make a deployment compliant with HIPAA or GDPR.

What to collect before approving a self-hosted phone agent

This sequence turns a self-hosted voice agent idea into a reviewable file: licenses, call audio paths, vendor terms, hosting, retention, operations and an exit plan. Each step ends with the document a security, privacy or compliance reviewer can check.

  1. Confirm license text for every component

    Someone on the platform or legal side reads the license file in each framework repository and the model license for each model that runs in the agent, such as the separate LiveKit Model License for LiveKit turn detection models. Pipecat is BSD-2-Clause, LiveKit Agents is Apache-2.0, and Vocode is MIT, but the reviewer should confirm the license text at the exact version the team will deploy, not rely on a summary. The output is a license register listing each component, version, license name, and any use restrictions that could affect patient-facing or commercial use.

  2. Map the telephony path and call audio flow

    The engineering lead draws every hop a call takes, from the carrier through SIP or a Twilio or Telnyx connection, to the framework, the speech and model services, and back. Pipecat's phone examples use Twilio and Telnyx, and LiveKit Agents supports SIP for inbound and outbound calls, but each carrier is a separate processor with its own terms. The output is a signed-off data flow diagram that marks where call audio, transcripts and metadata exist in plaintext, and which party holds each hop.

  3. Collect data handling terms for each external service

    Pipecat and LiveKit integrations for speech to text, language models, text to speech and telephony are configured separately, so each one is its own vendor. The privacy lead requests the DPA or BAA, the sub-processor list, the retention period and the statement on training use for every service that receives audio or transcripts, and records the plan or tier each term applies to. The output is a vendor file with written terms per service, and any service that will not provide written retention and training terms is flagged before it enters the design.

  4. Decide hosting location and operating owner

    The infrastructure owner chooses the region and accounts where the framework, any self-hosted LiveKit server, and the media path will run, then names the team that operates them day to day. Where a call crosses borders, the privacy lead confirms the transfer basis for each processor located outside the data's home region. Retell AI's pricing page describes shared and dedicated servers rather than a customer-run deployment, so the team should document exactly which parts of the stack the organization now controls. The output is a hosting decision record naming the region, the accounts, and the accountable operator.

  5. Set recording, transcript and access rules

    The compliance lead sets how long call recordings, transcripts and logs are kept, what is excluded from storage, and who can read them, then configures the framework and storage to match. Retention must be enforced by the team's own storage policies because no vendor default applies to a self-hosted stack, so the reviewer should see the actual deletion job or bucket lifecycle rule and access logs. The output is a retention schedule with the matching configuration evidence and a list of roles allowed to access audio and transcripts.

  6. Assign support, upgrade and patching ownership

    The engineering manager writes down who applies framework and dependency upgrades, who monitors security advisories for each component, who responds to a vulnerability in the telephony connector, and what the patch window is. Open-source projects publish their own release cadence and maintenance status, and the team should confirm each project's current activity before adopting it, since Vocode's repository has had no code pushed since November 2024. The output is a responsibility matrix (RACI) and a dated record of the last upgrade and the next scheduled review.

  7. Write the exit path to another framework

    The architect documents how the agent, its prompts, tool definitions, call flows and stored transcripts would move to a different framework or back to a hosted platform. The plan lists which parts depend on framework-specific code, which speech and model services can be swapped without rewriting call logic, and how retained data would be exported or deleted. The output is an exit runbook that the security reviewer signs, showing the organization can change or retire the phone agent without losing control of patient or EU personal data.

What you give up compared with Retell's hosted service

Retell's hosted service comes with compliance commitments, subprocessor terms and retention settings that a self-hosted stack does not inherit. Each card below is a control or contract that moves from Retell to your organization when you run a phone agent yourself.

Certification evidence moves to you

Retell's compliance docs state that Retell is SOC 2 Type 1 and Type 2 certified and publishes a Trust Center on Vanta. A self-hosted framework carries no certification of its own. Your organization must produce its own certification evidence for the hosting environment, the telephony provider, the speech and language model providers, and the application you build, and an independent auditor must assess it. Ask your auditor which controls your scope will include before you commit to the design.

Retell SOC 2 reports
Type 1 and 2
Retell compliance docs

Zero retention agreements with subprocessors

Retell's compliance docs say it holds zero data retention agreements with its LLM, speech recognition and text to speech subprocessors. In a self-hosted stack, each model or speech provider you call is a separate party. Confirm in writing whether each one offers zero retention on your plan, and whether it signs a business associate or data processing agreement. If a provider will not, the call audio or transcript it receives sits under that provider's default retention terms.

Per-agent retention settings you configure

Retell's compliance docs describe retention for transcripts, recordings and logs as set per agent, from 1 day up to 2 years, with options to store everything, exclude PII or store basic attributes only. A self-hosted recorder, logger and storage layer has no such switch unless you build it. Define retention per data class, decide where PII is redacted, and test that deletion removes audio, transcripts and call logs from backups and telemetry as well.

Retell retention range
1 day to 2 years

No training on enterprise data by contract

Retell's compliance docs say it does not use enterprise customer data to train models under a Master Services Agreement. A self-hosted stack removes Retell from the data path, but each model provider you connect has its own training terms. Record the training position for every provider in your voice pipeline, and check whether the terms differ between consumer and API or enterprise accounts. Your own contract with each provider is what governs this, not the Retell agreement.

Turn detection under a separate license

LiveKit Agents is Apache-2.0 licensed, but its turn detection models are governed by the separate LiveKit Model License. Legal review should cover that license alongside the framework license before you ship, because it can carry use conditions the framework does not. Pipecat is BSD-2-Clause and its integrations for transports, speech to text, language models and text to speech are configured separately. Each one needs its own license, data terms and configuration review.

Stalled framework and no vendor support

The Vocode repository (MIT licensed) has had no code pushed since November 2024, so security fixes and telephony updates are not guaranteed. Pipecat and LiveKit Agents are actively used open-source projects, but none of the three comes with a vendor support contract, a service level or an indemnity. Your team owns patching, incident response and upgrades, or you pay a partner under a written retainer. Confirm who responds to a vulnerability before go-live.

Vocode repository

What do buyers ask before running a self-hosted phone agent?

Can we self-host a phone agent instead of using Retell AI?

Yes, in principle, because open-source voice agent frameworks such as Pipecat, LiveKit Agents and Vocode can be run in infrastructure you control. Retell AI's pricing page describes shared servers for pay as you go and a dedicated server add-on for Enterprise, and it does not describe a customer-run on-premise deployment. That means a self-hosted option is a different architecture, not a configuration change. You will own the telephony connection, the orchestration, the model calls, logging and retention, and the uptime of every component. Before committing, confirm with Retell in writing whether any dedicated or private hosting option exists for your region and data types, since the public documentation does not describe one.

How much engineering effort does a self-hosted phone agent take?

Effort depends on how much of the stack you build yourself and how many components you must operate. A self-hosted build usually covers a framework, a telephony path such as SIP or a carrier integration, speech to text, a language model, text to speech, turn handling, call logging and retention, monitoring, and access control. Pipecat's README notes that transports, speech to text, LLM, text to speech and video services are configured separately from the framework, so each provider integration is extra work. Ask any implementation partner for a written scope listing each component, who operates it, and how upgrades and incident response are handled. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms in the client's own infrastructure, and most engagements are fixed-scope with scope and timelines agreed in writing before work starts.

Does self-hosting remove the need for speech and language vendor contracts?

No. A self-hosted framework handles call orchestration, but it does not supply speech recognition, language models or speech synthesis. Those components usually come from separate providers, or from models and servers you run yourself, and each one that receives patient or EU personal data needs its own contract review. If you use a hosted speech or model API, you still need its data processing or business associate terms, retention settings and transfer mechanisms. If you run models locally, you take on hardware, serving and patching work in exchange for not sending audio to a third party. Map every component that touches call audio or transcripts, then decide per component whether the contract, the hosting or both must change.

How do license obligations differ across Pipecat, LiveKit and Vocode?

The licenses differ in what you must keep and what you may ship. Pipecat is BSD-2-Clause licensed and maintained by Daily and the community. LiveKit Agents is Apache-2.0 licensed and can connect to LiveKit Cloud or a self-hosted LiveKit server, but its turn detection models fall under the separate LiveKit Model License, which you must review before use. Vocode is MIT licensed, but its repository has had no code pushed since November 2024, which is a maintenance risk you should weigh in your own review. Have legal review the license of every model and plugin, not only the framework, and record the versions you deploy so the license position is documented for each release.

Do Retell AI's SOC 2 reports transfer to a self-hosted build?

No. Retell AI's compliance documentation states that Retell is SOC 2 Type 1 and Type 2 certified and publishes a Trust Center on Vanta, but that attestation covers Retell's own service. It does not cover a framework you deploy, the cloud account you run it in, or the speech and model providers you connect. A self-hosted build needs its own evidence, such as access control records, logging, change management, backup testing and vendor reviews for each subprocessor. A SOC 2 report is issued by an independent auditor, and DeployOpen does not issue audit reports or certifications. It prepares systems, controls and evidence that your auditor can assess. Ask your auditor which of these controls will be in scope for your self-hosted system.

What cost drivers should we include when quoting a self-hosted phone agent?

Quote the one-time build separately from the recurring run cost, because they follow different drivers. One-time costs include design, integration with your telephony and identity systems, hardening, testing and documentation. Recurring costs include the cloud or data center capacity you run, per-minute charges from any hosted speech or model providers, carrier fees for phone numbers and minutes, monitoring, upgrades, backups and staff time for incident response. Costs rise with call volume, the number of languages, the number of components you host yourself, retention length and the depth of audit logging. Retell's pay as you go list price is $0.07 to $0.31 a minute for voice agents, according to its pricing page, which gives a baseline for comparison, but your self-hosted cost must include everything that price covers. Ask each bidder for a written breakdown by component and by recurring versus one-time item.

When should we bring in outside help for a self-hosted phone agent?

Bring in outside help when the build touches regulated data and your team lacks recent experience with real-time voice, SIP telephony or model serving. Specific triggers include a need for on-premise or air-gapped operation, a call audio flow that includes patient or EU personal data, a requirement to show audit evidence to a healthcare or financial regulator, or a plan to rely on an unmaintained framework. Outside help is also useful for security testing of the voice path, including prompt injection through the call, credential handling and access to call recordings. DeployOpen covers self-hosted platform implementation, security testing of AI systems and compliance readiness, and it works from a written scope. Ask any partner to confirm which parts it will deliver, what your team must still own, and how the work will be retested after changes.

How DeployOpen helps when voice data must stay in your infrastructure

DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a phone agent that must keep patient or EU caller data on your side, we start from the call path, the data flows and the controls your compliance team needs to review.

How we scope

  • We map every call path, from telephony provider and SIP trunk to speech recognition, language model, speech synthesis and log storage.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • The written scope names which framework, telephony option and hosting location are covered for your Retell AI replacement.

How we build

  • We deploy the selected open-source framework in your infrastructure, with its telephony, transport and model integrations configured separately.
  • We set up SSO, access control, audit logging and retention for transcripts, recordings and logs under your own policy.
  • We test the agent for prompt injection, tool permissions, data exposure and credential handling before it takes live calls.

How we hand over

  • You receive architecture documentation, configuration records and the evidence your security and compliance teams ask for.
  • We document license terms for each component, including any separately licensed models such as turn detection models.
  • Handover covers runbooks for updates, backups and incident response, so your own staff can operate the platform.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover framework updates, dependency reviews and retesting after configuration changes.
  • We help you prepare controls and evidence for compliance assessments, though independent auditors issue any reports or attestations.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.