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
| Type | Extension | Use case |
|---|---|---|
| Reports | .md, .txt | Generated content, summaries |
| Data | .json, .csv | Structured output, datasets |
| Documents | .pdf, .docx | Formatted documents |
| Images | .png, .jpg | Generated visualizations |
Events
Events are structured messages emitted during a run. They enable real-time streaming and observability.Event types
| Event | Description |
|---|---|
run.started | Run execution began |
run.completed | Run finished successfully |
run.failed | Run encountered an error |
log | Log message from the crew |
artifact | Artifact was produced |
agent.started | Agent began a task |
agent.completed | Agent finished a task |
tool.called | Tool was invoked |
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