TypeScript SDK
The Patter TypeScript SDK lets you connect AI voice agents to phone numbers in minutes. Run everything locally with full control over your infrastructure — no external platform required.Installation
Requirements
- Node.js 18 or higher
- An account with at least one telephony provider (Twilio or Telnyx)
- An AI provider key (OpenAI, ElevenLabs, or Deepgram)
Minimal Example
SDK Mode
Patter runs in local mode, embedding an Express server and all provider adapters directly in your application:| Mode | Use Case | Requirements |
|---|---|---|
| Local | Self-hosted, full control | Telephony + AI provider keys |
Local mode includes an embedded Express server and all provider adapters. Use it when you want full control over your infrastructure.
What’s Next
Quickstart
Step-by-step guide to your first voice agent.
Configuration
All constructor parameters and mode options.
Agents
Configure voice, model, tools, and guardrails.
Providers
OpenAI Realtime, ElevenLabs, and custom pipelines.
Tools
Function calling and webhook integrations.
Events
React to call lifecycle events in real time.

