Run coding agents on Cloudflare Workers with one session API for streaming replies, approving tools, and resuming turns after a restart.
| Harnesses | Where they run |
|---|---|
| Pi, DeepSeek, OpenCode | Durable Objects |
| Codex, Claude Code, Antigravity, Grok Build | Containers |
| Your own harness | Your HTTPS service, with a Durable Object tracking the turn |
npm install @checkfu/harnesses effect@4.1.7This install includes DeepSeek through the @checkfu/deepseek-durable-objects dependency.
Enable nodejs_compat. Run makeHarnessSession inside a SQLite Durable Object and forward its alarm to the session. Your app supplies credentials, workspace access, and tools. Working example · Model providers
Use /alchemy with Alchemy or /workerd with Rolldown. Import turn schemas from /session-protocol and model selection helpers from /providers.
For container harnesses, build container/Dockerfile from the installed package. Import makeNativeContainer from /native-container to wire the private relay.
To bring your own harness, set harness to "custom" and supply custom.endpoint and custom.token. The endpoint validates the bearer token and uses the request and response schemas in /custom-harness. Deploy the starter
Use /storage-manifest to include the runtime’s storage shapes in your deployment compatibility checks.
Use Node 24 and the Bun version in package.json.
bun install --frozen-lockfile
bun install --cwd container --frozen-lockfile
bun run verifyCI tests the packed release in Workerd and Docker. A matching vX.Y.Z tag on main publishes the verified archive to npm and GitHub.