cast deploy
Deploy an agent to Castari.Usage
Arguments
Examples
Deploy from a Castari project directory
If you’re inside a directory with acastari.json file, just run:
slug field from castari.json. If no slug field is present, it derives the slug from the name field.
Deploy a specific agent
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 acastari.json file:
Redeploying
Runningcast deploy on an already-deployed agent will redeploy it:
- Previous sandbox is destroyed
- New sandbox is created
- Latest code is deployed
Errors
See Also
- cast init — Create a new agent from a template
- cast invoke — Invoke a deployed agent
- Your First Agent — Understand agent structure