Skip to main content
You’ve built your ensemble. Now let’s put it in production where it matters.

Prerequisites

Before deploying:
  • Wrangler installed and authenticated (ensemble wrangler login or wrangler login)
  • Working ensemble running locally (ensemble wrangler dev --local-protocol http)
  • wrangler.toml configured
  • Edgit initialized (edgit init)

Quick Start

That’s it. Your ensemble is live globally. Output:
You’re live. Your ensemble is running in 300+ cities worldwide with sub-50ms cold starts.

Deployment Configuration

Create a conductor.config.ts in your project root for type-safe deployment settings:
The defineConfig() helper provides full TypeScript autocomplete and validation for your configuration.

Configuration Options

Tag-Based Deployment

Conductor uses Git tags for deployment, integrated with Edgit’s component versioning system:
Version tags (v1.0.0) are immutable snapshots. Environment tags (staging, production) are mutable pointers that can be moved between versions.

Why Tags?

  • Instant rollbacks - Just move the environment tag back
  • Audit trail - Git history shows who deployed what, when
  • Hot-swappable components - Prompts and schemas update without rebuilds
  • Multi-environment - Different versions in staging vs production

CI/CD with GitHub Actions

Copy the workflow templates to your project:
Or create .github/workflows/conductor.yaml:

Required Secrets

Add these to your repository secrets:

Validation Script

Create scripts/validate-refs.ts to ensure all component references exist before deployment:

Environment Setup

wrangler.toml

Configure environments in your wrangler.toml:

Create KV Namespaces

Add the IDs to your wrangler.toml.

Component Sync to KV

When tags are pushed, the workflow syncs component content to Cloudflare KV:
This enables hot-swappable components - update a prompt without rebuilding your Worker:

Deployment Workflow

Complete Flow

Tag Format

Tags follow the 4-level hierarchy: {prefix}/{type}/{name}/{slot}
  • prefix: components (hot-swappable) or logic (requires rebuild)
  • type: prompts, agents, schemas, etc.
  • name: Component name
  • slot: Version (v1.0.0) or environment (staging, production)
Examples:

Rollback

Instant Rollback

View History

Troubleshooting

Problem: Component works locally but not in productionFix: Ensure the component is registered and synced
Problem: Components not updating in KVFix: Check KV namespace binding
Problem: CI fails with “unregistered component reference”Fix: Register the component before referencing it
Problem: Pushing environment tag doesn’t deployFix: Ensure tag format is correct and matches workflow triggers

Next Steps

Deployment Strategies

Progressive rollouts, canaries, blue-green

CI/CD Integration

Advanced automation with Edgit

Rollback & Time Travel

Emergency rollbacks and debugging

Configuring Cloudflare

Complete Cloudflare setup guide