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:3
Deploy
Build the image and deploy it. The first deploy builds image
--env .env also uploads your provider keys as
secrets:Expected output
<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 byzeroruntime 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.