A proposed Cloudflare design for Pi Durable: run the harness and store its state in a Durable Object through a storage adapter; use HTTP tools there and send shell/file tools to a Linux Sandbox. Storage, API and wake/resume integration still need implementation.
This is an integration design supported by the documented interfaces, not a deployment tested in this research.
- Export a Durable Object class from a Worker. Choose a stable object identity for the harness; one harness may contain several conversations.
- Adapt the Durable Object's SQLite storage to Pi Durable's portable storage interface. The Node file-based SQLite adapter is not the integration to use here.
- Open Harness with that storage, pi-ai model access and an extension registry. The LLM is reached through an API; it does not execute inside the Durable Object.
- Expose input and observation through your application's HTTP or WebSocket interface. Reopen stored state and resume pending work after a restart; connect scheduled wake-ups to Cloudflare's lifecycle where needed.
- Implement API-based tools in the Worker environment. For shell commands and Linux files, supply a remote execution environment backed by a Sandbox or another machine.
Earendil explicitly describes Durable Objects as a target for its portable storage cores when an adapter is supplied. This documents portability, not a ready-made Pi Durable Cloudflare deployment.
Sources: Pi Durable announcement, storage and environment documentation, Durable Objects overview, Cloudflare execution environments.