Skip to main content

cast deploy

Deploy an agent to Castari.

Usage

Arguments

Examples

Deploy from a Castari project directory

If you’re inside a directory with a castari.json file, just run:
The CLI reads the slug field from castari.json. If no slug field is present, it derives the slug from the name field.

Deploy a specific agent

Deploys the agent with slug my-agent, pulling code from its configured git repository.

What Happens During Deploy

1

Fetch Code

Code is pulled from the agent’s configured git repository.
2

Create Sandbox

An isolated E2B sandbox is created for your agent.
3

Install Dependencies

npm install runs inside the sandbox.
4

Inject Secrets

Any secrets you’ve set become environment variables.
5

Ready

Agent status becomes active. Ready to invoke.

Agent Configuration

Your agent needs a castari.json file:

Redeploying

Running cast deploy on an already-deployed agent will redeploy it:
  1. Previous sandbox is destroyed
  2. New sandbox is created
  3. Latest code is deployed
Redeploying does not preserve sandbox state. All files and data in the sandbox are lost.

Errors

See Also