Skip to main content
Once your agent is deployed, these commands let you operate it. Run them from inside your project folder so the CLI can read IDs from zrt.yaml; most flags are optional because of that. If you don’t have the CLI yet, install it with pip (Python 3.11+):

Versions

Every zrt up creates a new immutable version. You keep the one you want live, and can roll back by reactivating an older one.
Activate or deactivate a specific version:
zrt down is the quick way to deactivate all active versions at once. Use zrt version deactivate when you want to target a single version.

Secrets

Secrets are environment variables (provider keys, tokens) injected into your running agent. The simplest way to set them is at deploy time:
This uploads the keys from your .env file and applies them to the deployment. You can also manage secret sets directly:
Changing secrets affects new sessions. Redeploy with zrt up to roll the change out to running workers.

Sessions

A session is one live conversation handled by your agent. Start the agent with zrt invoke, then list and stop sessions with zrt session:
zrt invoke prints a playground link and the room ID it joined. Stop a session by room with --room-id, or by session ID with --session-id.

Logs

Stream console output from your running agent. Filter by count, direction, and time window:

Tearing down

Deactivate all active versions for the deployment:

What’s next

CLI Reference

Every command and flag in one place.

Deploy an Agent

Revisit the end-to-end walkthrough.