Skip to main content

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 the input parameter:
Crewship passes this JSON object to your agent. How it’s received depends on your framework:

Artifacts

Artifacts are files produced by your crew during a run.

How artifacts work

  1. Your crew writes files to /app/artifacts/
  2. When the run completes, Crewship collects these files
  3. 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:
Events arrive as they happen:

Environment Variables

Store secrets and configuration outside your code:
Never commit API keys or secrets to your repository. Use environment variables instead.

Next Steps

CLI Reference

Master the Crewship CLI

Configuration

Customize your deployments