Skip to main content

octophone

Python SDK for Octophone — the native phone for your voice agents.

Connect your Pipecat, LiveKit, OpenAI Live, Gemini Live, or custom voice agents straight to your iPhone (native CallKit ringing, 48 kHz HD Opus WebRTC, mid-call sideband approval cards).

Installation

# Core async WebSocket client
pip install octophone

# With optional framework / WebRTC extras
pip install "octophone[pipecat]"
pip install "octophone[livekit]"
pip install "octophone[gemini]"
pip install "octophone[openai]"
pip install "octophone[webrtc]"

Quickstart

Pipecat

import os
from pipecat.pipeline.pipeline import Pipeline
from octophone.pipecat import OctophoneTransport

transport = OctophoneTransport(
    token=os.environ["OCTOPHONE_TOKEN"],
    sample_rate=16000,
)

pipeline = Pipeline([
    transport.input(),   # iPhone mic -> InputAudioRawFrame
    stt, llm, tts,       # your own voice stack
    transport.output(),  # audio -> 48 kHz Opus on iPhone
])

await transport.ring(reason="Staging canary passed. Promote?")

LiveKit Agents

import os
from livekit.agents import Agent, AgentSession
from octophone.livekit import OctophoneIO

io = OctophoneIO(token=os.environ["OCTOPHONE_TOKEN"])
session = AgentSession(
    stt="deepgram/nova-3",
    llm="openai/gpt-4.1-mini",
    tts="cartesia/sonic-2",
)
io.attach(session)

await io.ring(reason="Deploy v2.4.1 ready for sign-off")
await io.wait_for_call()
await session.start(agent=Agent(instructions="Be concise."))

Gemini Live (Zero Frameworks)

import asyncio
from octophone import Octophone
from octophone.gemini import bridge_gemini_live

bot = Octophone(mode="realtime")  # reads OCTOPHONE_TOKEN

@bot.on_call_started
async def on_call(ev):
    peer = await bot.join_webrtc(ev["call_id"])
    await bridge_gemini_live(peer)

asyncio.run(bot.run())

OpenAI Live (Zero Frameworks)

import asyncio
from octophone import Octophone
from octophone.openai import bridge_openai_live

bot = Octophone(mode="realtime")  # reads OCTOPHONE_TOKEN

@bot.on_call_started
async def on_call(ev):
    peer = await bot.join_webrtc(ev["call_id"])
    await bridge_openai_live(peer)

asyncio.run(bot.run())

Managed Voice & Chat (text_bridge)

import asyncio
from octophone import Octophone

bot = Octophone()  # reads OCTOPHONE_TOKEN

@bot.on_turn
async def handle(turn):
    await turn.delta(f"Heard you say: {turn.text}")
    await turn.done()

asyncio.run(bot.run())

Configuration

Environment Variable Default Purpose
OCTOPHONE_TOKEN (required; falls back to BOT_TOKEN) Bot contact token
OCTOPHONE_URL wss://api.octophone.dev/bot/v1 WebSocket gateway URL (override for local/self-hosted dev)

License

MIT

Metadata

Release files for octophone 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octophone 0.1.0
File Size Uploaded Provenance Actions
octophone-0.1.0.tar.gz 36.8 kB With provenance Details for octophone-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for octophone 0.1.0
File Interpreter ABI Platform Actions
octophone-0.1.0-py3-none-any.whl Python 3 none any Details for octophone-0.1.0-py3-none-any.whl

Total release size: 67.6 kB

Release files / octophone-0.1.0.tar.gz

Download URL octophone-0.1.0.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d842e93c101493f8c6deed4a927e0662b54e6615ec636576441e9b9f4edf598e
BLAKE2b-256 checksum
How to use checksums
0055a186dd56783cfd6234eb555f5f9174858509ce5d1f23f30b6302cd088b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / octophone-0.1.0-py3-none-any.whl

Download URL octophone-0.1.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
844c47501b90d0aa9c8ae844608ded436b971eaa65cd94d7eba08a02d1febd24
BLAKE2b-256 checksum
How to use checksums
c0cf5dda59863f438784e4977e2d1aa45113908cbcfeacb692d22ff1ab208d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for octophone 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for octophone-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page