1.8.4 adds a Cloudflare backend. Agents run on Workers, multi-step tasks use Durable Workflows, artifacts go in R2, state in D1. The local .sdd/ story still works. This is for the days when the laptop is the bottleneck.
why bother
Local works for one developer until it doesn't. CPU and memory fight your IDE. Long sessions drain the battery. Closing the lid kills the run. Past four or five concurrent agents on a MacBook the fans get angry.
Cloud execution moves the work off the laptop. Sessions survive disconnects. Twenty-some concurrent agents stop being a thermal event.
why Cloudflare
Cloudflare became OpenAI's infrastructure partner for agent cloud computing, same primitives we'd already been mapping orchestration onto. The pieces line up cleanly:
Workers. Stateless agent runs in isolated Workers. Cold start under 50ms, so spawning a new agent is nearly free.
Durable Workflows. Multi-step tasks (clone, run, test, report) need ordering and retry on failure. If a Worker dies mid-task the workflow resumes from the last completed step, not from scratch.
R2. Diffs, test output, generated files. Pennies per session.
D1. Task queue, agent assignments, costs, audit log. Replaces local .sdd/ when running in the cloud; survives restarts; multiple Workers can read it without stepping on each other.
the picture
Orchestrator runs as a Worker with a Durable Object holding tick state. Agent Workers spawn per task and write back through R2 and D1.
deploy
Prereqs: Cloudflare account with Workers, R2, D1 turned on; wrangler installed.
wrangler login
bernstein cloud deploy --project my-project
# Creates:
# - Orchestrator Worker + Durable Object
# - R2 bucket: bernstein-my-project-artifacts
# - D1 database: bernstein-my-project-state
# - Workflow definitions for multi-step tasksbernstein run --goal "Refactor auth module" --cloud
bernstein cloud status
bernstein dashboard --cloudAPI keys land as Worker secrets via wrangler secret put. They never leave Cloudflare.
cost
Workers bill per request, not per VM. For a typical 50-task session:
- Workers compute: ~$0.50-2.00
- R2 storage: pennies
- D1 reads/writes: pennies
Tiny next to the LLM bill. Real savings come from not keeping a laptop running and being able to scale concurrency without melting hardware.
next
Scheduled runs (cron, GitHub webhooks), multi-region (run agents near the repo), a hosted dashboard so you can watch a cloud session without a local CLI.
pip install bernstein. Source: github.com/sipyourdrink-ltd/bernstein.
further reading
- frictionless install walks through the local install path the cloud profile sits on top of.
- operator commands covers the same dashboard / status / cost surfaces you hit when a session is running in Cloudflare.