Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

zeroruntime

Build real-time voice agents in Python. You describe the agent — instructions, tools, and a pipeline of providers — and the runtime runs it.

Install

pip install zeroruntime

or pin the version:

pip install zeroruntime==0.1.0

Requires Python 3.10 or newer.

Most providers need no extra: their credential is a string you set in the environment, so the base install is enough.

Quickstart

import zeroruntime
from zeroruntime import Agent, Pipeline, Room, function_tool
from zeroruntime.inference import TurnDetector
from zeroruntime.plugins import CartesiaTTS, DeepgramSTT, GoogleLLM, SileroVAD

AGENT_ID = "cascade-basic-agent"


class VoiceAgent(Agent):
    def __init__(self) -> None:
        super().__init__(
            agent_id=AGENT_ID,
            instructions="You are a helpful voice assistant.",
            pipeline=Pipeline(
                stt=DeepgramSTT(),
                llm=GoogleLLM(),
                tts=CartesiaTTS(),
                vad=SileroVAD(),
                turn_detector=TurnDetector(),
            ),
        )

    async def on_enter(self) -> None:
        await self.session.say("Hello, how can I help you today?")

    @function_tool
    async def get_weather(self, latitude: str, longitude: str) -> dict:
        """Fetch the current weather for a location.

        Args:
            latitude: Latitude of the location. Estimate it; do not ask.
            longitude: Longitude of the location. Estimate it; do not ask.
        """
        return {"latitude": latitude, "longitude": longitude, "temperature_c": 28}


def invoke_agent() -> None:
    zeroruntime.invoke(AGENT_ID, room=Room(name="Cascade Agent", playground=True))


if __name__ == "__main__":
    zeroruntime.serve(VoiceAgent, on_ready=invoke_agent)

Run it and the playground URL is printed once, on stdout. Open it to talk to the agent.

Credentials

Set your runtime token in the environment before serving:

export ZERORUNTIME_AUTH_TOKEN="..."

Vendor keys go in the environment too, one per provider you use — each provider names the variable it reads when the key is missing.

Providers

zeroruntime.plugins calls the vendor directly with your key on your account. zeroruntime.inference reaches a subset of the same providers through the runtime gateway instead. The names mirror each other, so swapping the import swaps who makes the call and who is billed:

from zeroruntime.plugins import DeepgramSTT    # your Deepgram account
from zeroruntime.inference import DeepgramSTT  # through the gateway

Metadata

Release files for zeroruntime 0.1.1rc6

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

Source distribution (sdist)

Source distribution for zeroruntime 0.1.1rc6
File Size Uploaded
zeroruntime-0.1.1rc6.tar.gz 101.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zeroruntime 0.1.1rc6
File Interpreter ABI Platform
zeroruntime-0.1.1rc6-py3-none-any.whl Python 3 none any Details

Total release size: 250.5 kB

Release files / zeroruntime-0.1.1rc6.tar.gz

Download URL zeroruntime-0.1.1rc6.tar.gz
Size 101.2 kB
Tags Source
SHA-256 checksum
How to use checksums
48e6de476a8d8013518f66cebf2e7f4badd026e03317fdccde9893ea4ed71311
BLAKE2b-256 checksum
How to use checksums
3eb3a59e7918db3746a1ceb999e14b9ce09028ebb10c09163e5dafeec6823797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / zeroruntime-0.1.1rc6-py3-none-any.whl

Download URL zeroruntime-0.1.1rc6-py3-none-any.whl
Size 149.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
259b09b5f6fa8361ad26cc263341af9fdc2ce26806b9fd5bc9cf2d7a872cc043
BLAKE2b-256 checksum
How to use checksums
0f50454621683e5b3d325b22b1bfa2515a0c8c0085a66f2fadf53179422d4580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
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