Claude Managed Agents runs on Cloudflare, Pi-Durable
A new X article details implementing the Claude Managed Agents architecture directly on Cloudflare Workers using Earendil's Pi-Durable harness. Pairing Durable Objects' embedded SQLite state with Pi-Durable's crash-safe checkpointing gives teams a self-hosted, serverless path to long-running agent sessions without relying on Anthropic's hosted control plane.
Rebuilding Claude Managed Agents on Cloudflare Workers and Pi-Durable shows how quickly the managed-agent control plane is getting commoditized. Once developers decouple the session and event protocol from Anthropic's hosted runtime, they get edge economics and model freedom without sacrificing durable execution.
- –Durable Objects match agent lifecycles natively, combining single-instance compute, embedded SQLite, hibernating WebSockets, and Alarms so agents can pause for hours or days awaiting tool outputs or human input at zero idle compute cost
- –Earendil's `@earendil-works/pi-durable` commits conversations, model turns, and tool calls to storage before surfacing output, enabling exact crash recovery after serverless evictions alongside built-in conversation forking
- –Unlike Cloudflare's official `cloudflare/claude-managed-agents` template—which keeps the agent loop on Anthropic's cloud and hosts only sandboxes on Workers—running Pi-Durable pulls the entire harness in-house with multi-provider model support via `@earendil-works/pi-ai`
- –The pattern aligns with a broader wave of self-hostable managed-agent runtimes on Cloudflare, including `camelRun`, `Checkfu`, and `open-managed-agents`, competing directly with hosted harnesses on Anthropic and Amazon Bedrock
- –Two practical caveats remain: `pi-durable` is still explicitly experimental with breaking API changes between releases, and the source article itself is gated behind X's login wall for Articles
DISCOVERED
30m ago
2026-12-04
PUBLISHED
2h ago
2026-12-04
RELEVANCE
AUTHOR
Vercantez