Skip to main content
Zero Runtime Cloud hosts and runs your worker on our compute, so you never operate a server. You need an agent project that runs locally.
Run every zeroruntime command from inside your project folder. The CLI keeps your agent, image, and version IDs in zeroruntime.yaml there, so most commands need no flags. See how the CLI tracks state.
1

Remove the local test invoke

For local testing, use the on_ready callback in serve() to start a playground session when the worker is ready. Remove it in production to avoid automatically creating a new room for every worker. In production, start sessions via zeroruntime invoke CLI, the dispatch API, or telephony routing rules.
2

Initialize the deployment

Register the agent with Zero Runtime Cloud. This writes agent.id and deploy.id to zeroruntime.yaml and generates a Dockerfile if your project doesn’t have one:
Please make sure the entry-point file name matches the file specified in the Dockerfile’s CMD.
3

Deploy

Build the image and deploy it. --env .env also uploads your provider keys as secrets:
Expected output
The first deploy builds image <agent-id>:v0.0, and each later up builds the next one. See Version Management.
4

Confirm it's live

5

Talk to your agent

Start the agent in a room. The CLI prints a playground link you can open to talk to it:
Expected output

Ship an update

Changed your code? Run the same command. It builds the next image and creates a new version:

Connect telephony

To take or place phone calls, use the Agent ID printed by zeroruntime up as the agent ID in a routing rule. See Build a Telephony Agent.

Next

Operate your agent

Versions, secrets, sessions, logs, and scaling down.

CLI Reference

Every command and flag.