PatterAI/Patter
Self-hostable voice SDK with realtime and pipeline modes for phone agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Patter is an MIT-licensed voice runtime packaged as getpatter for Python and TypeScript. A Patter instance binds a phone number to a carrier adapter such as Twilio, Telnyx, or Plivo; phone.agent(...) configures the agent, and phone.serve(...) serves the call integration. Patter runs the conversation loop rather than only forwarding requests between a carrier and a model. Realtime mode uses an integrated voice engine such as OpenAI Realtime or Gemini Live. Pipeline mode separates speech recognition, language generation, and speech synthesis. Hybrid is a third supported mode.
The provider boundary in Pipeline mode lets teams keep a dialogue backend outside the voice runtime. OpenAICompatibleLLM, HermesLLM, and OpenClawLLM send each turn to POST {base_url}/chat/completions, so an existing agent can generate replies while Patter handles speech and telephony. The repository includes libraries/, dashboard-app/, examples/, and tests/; the supplied Compose file defines a single patter service, not a separate dashboard or database service.
Key Capabilities & Differentiators
Patter lists 27+ integrations across the stack. A Pipeline configuration can pair Deepgram STT with Anthropic for language generation and ElevenLabs for TTS. Realtime options include OpenAI Realtime, Gemini Live, Ultravox, and ElevenLabs ConvAI. Audio integrations cover Silero VAD, Krisp, and DeepFilterNet. Tools, transfers, and guardrails share a carrier-neutral interface, and an LLM fallback chain can switch language-model providers mid-call. That is distinct from carrier or speech-service failover.
Version 0.6.8 added multi-agent handoffs, local recording, preemptive generation, and semantic end-of-utterance detection to both SDKs. Developers can simulate calls in a terminal without a phone, use OpenTelemetry for call traces, and use the dashboard template to track cost and latency. Simulation helps validate the agent flow before provisioning a number, but does not exercise the real carrier path or establish end-to-end latency under load.
Trade-offs & Limitations
Compared with procuring a managed voice platform such as Vapi or Retell, Patter gives your team the option to run the call runtime, choose providers by layer, and retain an existing agent backend. In return, your team owns the availability of the public webhook, carrier and provider credentials, and incident response across those services. Realtime mode reduces the number of independently configured voice components; Pipeline mode gives more control over transcription, model choice, and voice, but adds service boundaries whose latency, cost, and failure behavior should be tested on actual calls.
MIT licensing permits commercial use subject to its notice requirements; it does not remove provider charges or change carrier and model-service terms. Self-hosting also does not keep audio or transcripts inside your network if the selected providers process them externally. The SDK's opt-out usage telemetry excludes call content and is separate from call traces and local recordings; teams should set collection and retention policies for each.
Hardware & Deployment Guide
Install getpatter through pip or npm and supply the chosen carrier and model credentials through environment variables, such as TWILIO_ACCOUNT_SID and OPENAI_API_KEY. For local calls, tunnel=True in Python or tunnel: true in TypeScript exposes the service through a Cloudflare quick tunnel and points the number at it. For production, use a stable HTTPS webhook_url. The root docker-compose.yml builds from . using the checked-in Dockerfile, loads .env, publishes 8000:8000, and uses restart: unless-stopped. That is a single-service starting point, not a highly available deployment.
Self-hosting the runtime does not make the external-API setup offline or require a local inference GPU. Size the host against concurrent calls, chosen providers, and any local audio processing or inference; the available evidence does not establish a resource minimum. In release history, v0.6.5 added the external-agent adapters, v0.6.8 brought call-control and recording additions to both SDKs, and v0.7.0 completed the Inworld integration as a backward-compatible public API update.
getpatter on PyPI and npm, with a shared API design, hooks, and events.POST {base_url}/chat/completions through OpenAI-compatible, Hermes, or OpenClaw adapters.Teams building inbound reception, booking, or support agents that want to run the call service, choose speech providers by layer, or add telephony to an existing OpenAI-compatible agent.
You need a turnkey managed service, cannot operate a stable public webhook, or require the supplied integration to work entirely offline.
Quick Start & Installation
npx skills add patterai/skillsComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Patter ★ | 1.1k | +4 | Python | MIT | Self-hostable voice SDK with realtime and pipeline modes for phone agents |
| semantic-kernel | 28.8k | +31 | C# | MIT | Model-agnostic SDK for building tool-using agents and workflows inside applicati |
| openai-agents-python | 31k | +126 | Python | MIT | Embeddable Python SDK for multi-agent orchestration across text, voice, and sand |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/PatterAI/Patter.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Patter
Can I give an existing agent a phone number without moving its logic into Patter?
OpenAICompatibleLLM when your agent exposes POST {base_url}/chat/completions. The Python and TypeScript SDKs also expose HermesLLM and OpenClawLLM. The external runtime answers each turn through the chat-completions interface; Patter handles the voice and telephony layers.Do I need a GPU, and how should I size the call server?
Can we self-host Patter commercially, and what compliance work remains?
PATTER_TELEMETRY_DISABLED=1 and separately review where audio, transcripts, traces, and any recordings are handled.When should I choose Patter over Vapi or Retell?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy