Your First Project
From zero to deployed edge workflow in 5 minutes. No ceremony, no boilerplate.Prerequisites
You need:- Node.js 18+ (nodejs.org)
- A Cloudflare account (free tier works fine)
- Wrangler CLI (we’ll install it)
Install Wrangler
Create Your Project
- Type: “Hello World” Worker (we’ll add Conductor next)
- TypeScript: Yes (recommended)
- Git: Yes
- Deploy: Not yet
Add Conductor
Project Structure
Your project should look like this:Configure Cloudflare
Editwrangler.toml:
Create Your First Ensemble
Createensembles/hello.yaml:
Wire It Up
Editsrc/index.ts:
Test Locally
Deploy to Production
- Cold start: <50ms
- Execution: ~200ms
- Cost: Free tier covers 100k requests/day
What Just Happened?
- Conductor parsed your YAML ensemble
- Operation: think invoked Cloudflare’s Llama model
- Result was returned as JSON
- Deployed globally to Cloudflare’s edge network
Add More Operations
Let’s make it more interesting. Updateensembles/hello.yaml:
wrangler.toml:
- AI text generation (operation: think)
- Data storage (operation: storage with KV)
- Data transformation (operation: code)
Project Structure (Full)
Here’s what a real project looks like:Common Patterns
Pattern 1: API Wrapper
Wrap external APIs with caching:Pattern 2: Multi-Step Processing
Chain operations together:Pattern 3: Conditional Flow
Execute agents conditionally:Development Workflow
Next Steps
Your First Agent
Build custom reusable agents
Your First Ensemble
Deep dive into ensemble patterns
Configuring Cloudflare
Set up D1, KV, R2, and more
Operations Reference
Explore all 12 operations
Troubleshooting
Wrangler login fails
Wrangler login fails
Problem: Can’t authorize with CloudflareFix:
AI binding not working
AI binding not working
Problem: Restart dev server after changing config.
env.AI is undefinedFix: Add to wrangler.toml:Ensemble not found
Ensemble not found
Problem:
Ensemble 'hello' not foundFix: Ensure YAML file is in ensembles/ directory and named correctly. Conductor auto-discovers all .yaml files in ensembles/.KV namespace errors
KV namespace errors
Problem:
KV namespace 'CACHE' not foundFix:Tips
- Start simple - One agent, one operation, then add complexity
- Use KV liberally - It’s fast (<10ms) and generous (free tier: 100k reads/day)
- Test locally first -
wrangler devis your friend - Check logs -
wrangler tailshows real-time logs - Mind the limits - Free tier: 100k requests/day, 10k AI requests/day
- Version components - Use Edgit to version prompts and configs
- Cache aggressively - AI operations are slow, caching is fast
- Monitor costs - Check Cloudflare dashboard regularly

