# Repository Briefing: PatterAI/Patter
> Source: https://repoforai.com/repo/PatterAI/Patter (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/PatterAI/Patter
- **Official Docs / Website**: https://getpatter.com
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (82/100 · Maintenance 31/35 · Adoption 17/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v0.7.0 (2026-06-30) — https://github.com/PatterAI/Patter/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 1,091 ★ total (+1 24h / +4 7d) · 129 forks
- **Topics**: `ai-agent`, `ai-phone-agent`, `hermes-agent`, `llm`, `mastra`, `open-source`, `openai`, `openclaw`, `python`, `realtime-api`, `sdk`, `speech-to-text`
- **When to Use**: Best for: 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. Skip if: You need a turnkey managed service, cannot operate a stable public webhook, or require the supplied integration to work entirely offline.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Voice architecture: Realtime engines such as OpenAI Realtime or Gemini Live, a composable STT–LLM–TTS pipeline, and a Hybrid mode.
- Dual SDKs: `getpatter` on PyPI and npm, with a shared API design, hooks, and events.
- Carrier adapters: Twilio, Telnyx, and Plivo expose a common surface for tools, call transfers, and guardrails.
- External agent integration: Pipeline mode routes turns to `POST {base_url}/chat/completions` through OpenAI-compatible, Hermes, or OpenClaw adapters.
- Conversation controls: Mid-call LLM fallback, multi-agent handoffs, preemptive generation, and semantic end-of-utterance detection.
- Testing and observability: Terminal call simulation without a phone, OpenTelemetry call traces, and a dashboard template for cost and latency tracking.
```

## Quick Start / Clone
```bash
npx skills add patterai/skills
```
