Overview
Crewship uses a simple but powerful execution model. Understanding these core concepts will help you get the most out of the platform.Deployments
A deployment is an immutable snapshot of your crew at a point in time.Think of deployments like Git commits — each one captures a specific version of your code.
What’s in a deployment?
- Your agent source code
- Dependencies (Python:
requirements.txt/pyproject.toml; JavaScript:package.json) - Crewship configuration (
crewship.toml) - A container image built from the above
Rollbacks
Since deployments are immutable, rolling back is instant:Runs
A run is a single execution of your crew.Run isolation
Each run:- Gets its own container instance
- Has no shared state with other runs
- Is completely isolated
- Scales to zero when complete
Run inputs
Pass data to your agent via theinput parameter:
Artifacts
Artifacts are files produced by your crew during a run.How artifacts work
- Your crew writes files to
/app/artifacts/ - When the run completes, Crewship collects these files
- Artifacts are stored durably and accessible via API
Accessing artifacts
Common artifact types
Events
Events are structured messages emitted during a run. They enable real-time streaming and observability.Event types
Streaming events
Connect to the event stream via SSE:Environment Variables
Store secrets and configuration outside your code:Next Steps
CLI Reference
Master the Crewship CLI
Configuration
Customize your deployments