Skip to main content

Build calling agents in minutes, not months. The missing infrastructure layer for AI calling. Siphon handles state, interruptions, and scaling so you can ship reliable agents in minutes, not months.

Project description

SIPHON

SIPHON

Documentation License PyPI
PyPI Downloads

Open-source, low-latency Voice AI.
No markups. No lock-in. No middlemen.

Built for teams who want full control over their calling AI stack,
from infrastructure to data to cost.

⭐ Drop a star to help us grow!


SIPHON Architecture


What Siphon is

Siphon is a Python framework that handles the hard parts of real-time voice AI:

  • SIP + telephony integration — Connect to any SIP trunk (Twilio, Telnyx, SignalWire, etc.)
  • Streaming audio pipelines — Sub-500ms latency powered by WebRTC (LiveKit)
  • Interruptions & barge-in — Natural conversation flow with configurable turn detection
  • Agent state management — Recording, transcription, metadata persistence
  • Horizontal scaling — Run 1 or 1,000 workers with zero-config load balancing

So you can focus on agent behavior, not call plumbing.

You bring:

  • 🤖 Your LLM (OpenAI, Anthropic, Google, DeepSeek, Groq, Cerebras, Mistral, etc.)
  • 🎤 Your STT/TTS providers (Deepgram, Cartesia, ElevenLabs, AssemblyAI, Sarvam, etc.)
  • 📞 Your SIP trunk (Twilio, Telnyx, SignalWire, or self-hosted)
  • ☁️ Your infrastructure (LiveKit Cloud or self-hosted)

You keep:

  • 💰 Your margins — No per-minute markup on AI provider costs
  • 🔒 Your data — Runs on your infrastructure, all logs stay with you
  • 📊 Your observability — Complete control over recording, transcription, metadata
  • 🔑 Your keys — Direct integration with AI providers, no middleman

What Siphon is not

Not a SaaS platform — You host it, you control it
Not a black box — Open-source (Apache 2.0), inspect and modify everything
Not a per-minute tax — No markup on your AI provider costs
Not vendor lock-in — Swap LLM/STT/TTS providers with a config change


Why Siphon exists

Voice agents listen to everything.

Your customers' calls contain sensitive information — personal details, business data, private conversations.

Traditional managed platforms route every call through their infrastructure. You pay per minute and trust them with your data.

Siphon runs on your infrastructure.
You own the keys. You control the data. You keep the margins.



Production-Ready Architecture

Low Latency 🛡️ Production Ready 🚀 Infinite Scale
Powered by WebRTC (LiveKit) for sub-500ms voice interactions that feel like real human conversation. Handles the chaotic reality of phone networks—audio packet loss, SIP signaling, and interruptions. Define your agent once and run it on 1 or 1,000 servers. It balances the load automatically.

Quick Start

If you're new to Siphon, we recommend checking out:

1. Install

pip install siphon-ai

2. Configure Environment

Siphon requires LiveKit for real-time media and API keys for your AI providers.

Create a .env file:

# LiveKit (Cloud: https://cloud.livekit.io/ or Self-hosted)
LIVEKIT_URL=...
LIVEKIT_API_KEY=...
LIVEKIT_API_SECRET=...

# AI Providers
OPENAI_API_KEY=...
DEEPGRAM_API_KEY=...
CARTESIA_API_KEY=...

3. Create your Agent

Create a file named agent.py. This simple agent acts as a helpful assistant.

from siphon.agent import Agent
from siphon.plugins import openai, cartesia, deepgram
from dotenv import load_dotenv

load_dotenv()

# Initialize your AI stack
llm = openai.LLM()
tts = cartesia.TTS()
stt = deepgram.STT()

# Define the Agent
agent = Agent(
    agent_name="Receptionist",
    llm=llm,
    tts=tts,
    stt=stt,
    system_instructions="You are a helpful receptionist. Answer succinctly.",
)

if __name__ == "__main__":
    # One-time setup: downloads required files (only needed on fresh machines)
    agent.download_files()

    # Start the agent worker in development mode
    agent.dev()

    # Start the agent worker in production mode
    # agent.start()

For more details on configuring your Agent (latency, interruptions, VAD...etc) and exploring available Plugins (Deepgram, Cartesia, OpenAI, ElevenLabs...etc), check out the documentation.

4. Run

Start your agent worker.

python agent.py

Horizontal Scaling: To scale, simply run this command on multiple servers. The worker architecture automatically detects new nodes and balances the load with Zero Configuration. Learn more about Scaling

Capabilities

📞 Receive Calls (Inbound)

Bind a phone number to your agent using a Dispatch rule.

import os
from siphon.telephony.inbound import Dispatch
from dotenv import load_dotenv

load_dotenv()

dispatch = Dispatch(
    dispatch_name="customer-support",
    agent_name="Receptionist", # Must match the name in agent.py
    sip_trunk_id=os.getenv("SIP_TRUNK_ID"),
    # Or: sip_number=os.getenv("SIP_NUMBER"),
)
dispatch.agent()

Note: For more details, check out the Inbound Documentation. To configure numbers with providers like Twilio, see the Twilio Setup Guide.

📱 Make Calls (Outbound)

Trigger calls programmatically from your code or API.

import os
from siphon.telephony.outbound import Call
from dotenv import load_dotenv

load_dotenv()

call = Call(
    agent_name="Receptionist", # Must match the name in agent.py
    sip_trunk_setup={ ... }, # Your SIP credentials
    # Or: sip_trunk_id=os.getenv("SIP_TRUNK_ID"),
    number_to_call="+15550199"
)
call.start()

Note: For more details, check out the Outbound Documentation. To configure trunks with providers like Twilio, see the Twilio Setup Guide.

💾 Persist Call Data

Siphon enables call recordings, transcriptions, and metadata persistence via environment variables.

# Enable saving features
CALL_RECORDING=true
SAVE_METADATA=true
SAVE_TRANSCRIPTION=true

# Configure storage location (locally, S3, Redis, Postgres, etc)
METADATA_LOCATION=Metadata # saves locally
TRANSCRIPTION_LOCATION=postgresql://..... # saves to postgresql

# Configure S3 (Call Recordings are always saved to S3)
AWS_S3_ENDPOINT=
AWS_S3_ACCESS_KEY_ID=
AWS_S3_SECRET_ACCESS_KEY=
AWS_S3_BUCKET=
AWS_S3_REGION=
AWS_S3_FORCE_PATH_STYLE=true

Note: Siphon supports multiple storage backends. For detailed configuration instructions, see the Call Data Documentation.

🚀 Examples and demo

More Examples

Example Description
A 24/7 AI Dental Receptionist in few lines A fully functional AI receptionist that handles appointment booking, modifications, and cancellations with Google Calendar integration.

More coming and stay tuned 👀!

📖 Documentation

For detailed documentation, visit Siphon Documentation, including a Quickstart Guide.

🤝 Contributing

We love contributions from the community ❤️. For details on contributing or running the project for development, check out our Contributing Guide.

Support us

We are constantly improving, and more features and examples are coming soon. If you love this project, please drop us a star ⭐ at GitHub repo to stay tuned and help us grow.

License

Siphon is Apache 2.0 licensed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

siphon_ai-0.1.3.tar.gz (84.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

siphon_ai-0.1.3-py3-none-any.whl (100.0 kB view details)

Uploaded Python 3

File details

Details for the file siphon_ai-0.1.3.tar.gz.

File metadata

  • Download URL: siphon_ai-0.1.3.tar.gz
  • Upload date:
  • Size: 84.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for siphon_ai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6ba575223fe7e8ebdb81f305bb3836b0f1bd5b462e0db71c8a0919d52285efb0
MD5 8b9e960c0a1da3d0904dafbaae43bd4e
BLAKE2b-256 6b2f297d6b0f976623ae682540ac00e9edb45d8dbb8353de4b900177c41b5138

See more details on using hashes here.

File details

Details for the file siphon_ai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: siphon_ai-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 100.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for siphon_ai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32d901b67449e02a7619cfb6b7887baf70da218aadc2239508c9c87e6aa07b65
MD5 128a73f874746fa90dba8aa1a52c7f36
BLAKE2b-256 86e654318ff3dff7cda0687a0f6990050b376d8bf8bd4fedfc4bb423b3067f57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page