Run Cloudflare Workers and Durable Objects apps on your own hardware, built for agents.
Serverless Objects is the operating layer around a Workers-compatible engine. You deploy an ordinary Wrangler project, and sobjects runs it on a host you control with TLS ingress, a local dashboard, engine upgrades and service units. Durable Object state lives in your own S3-compatible bucket. Today the engine is celld, Deno's Apache-2.0 runtime for Wrangler bundles.
Status: pre-alpha. Good for evaluation and testing, not for production. It runs on a single host by default (macOS arm64 or Linux arm64/x64); the native engine can share one bucket across several named nodes. Read what is and isn't supported before you port an app.
Part of Directionally Local, an open-source stack for running coding agents on your own hardware, alongside Autopilot, Hotcell and Camouflage. Product page: directionallylocal.com/serverless-objects. Start a coding agent on your computer at dl.new.
Requires Node.js 22.23.4+, 24.22.1+ or 26.12.1+ (older versions have CVE-2026-111497; the CLI warns).
npm install --global serverless-objectsA Durable Object counter, written exactly as it would be for Cloudflare:
// src/index.js
import { DurableObject } from "cloudflare:workers";
export class Counter extends DurableObject {
async increment() {
const count = ((await this.ctx.storage.get("count")) ?? 0) + 1;
await this.ctx.storage.put("count", count);
return count;
}
}
export default {
async fetch(request, env) {
const name = new URL(request.url).pathname.slice(1) || "default";
const count = await env.COUNTER.getByName(name).increment();
return new Response(`${name}: ${count}\n`);
},
};Run it locally. No bucket is needed, and the first run downloads and verifies the pinned celld release:
sobjects dev . --port 8787
curl http://127.0.0.1:8787/alice # alice: 1To run it as a node, add a sobjects.toml next to the project that points at a bucket you control. The bucket must support conditional writes; Cloudflare R2 and SeaweedFS have been tested.
[celld]
bucket = "s3://my-bucket/serverless-objects"
# endpoint = "https://<account>.r2.cloudflarestorage.com" # for S3-compatible stores
# region = "auto"Keep credentials out of the file. celld reads the standard environment and credential chain (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, ...).
sobjects deploy . # bundle the app and upload it to the bucket
sobjects up --detach # start the node on 127.0.0.1:8080
curl http://127.0.0.1:8080/alice
sobjects status
sobjects downState survives down and up because it lives in the bucket. The install guide adds TLS ingress, the dashboard and an OS service. To run the node in Docker instead, use deploy/compose.
- The
sobjectsCLI.dev,deploy,up/down/status/logs,upgradewith checksum-pinned engine versions and rollback, andserviceto generate systemd or launchd units. The CLI reference covers every command and setting. - Wrangler config preflight. Unknown keys are rejected with a readable error, keys celld can't use are removed with a warning, and
build.commandand Vite asset builds run before deploy. - TLS ingress. Static certificates or ACME HTTP-01, hostname routing, WebSocket tunnelling, HTTP→HTTPS redirect, a health endpoint and JSON access logs. Client
X-Forwarded-*andCF-Connecting-IPheaders are replaced with the real peer address. - A loopback dashboard and admin API. Node load, the objects in each namespace, a key-value browser and read-only SQL console per object, eviction, logical JSON export, and Prometheus
/metrics. - A Hotcell
Sandboxbinding (serverless-objects/hotcell). It has the Cloudflare Sandbox SDK 0.x call shape and reattaches to its sandbox after the object is evicted. With egress enabled, sandboxes get gateway tokens, never real provider keys. - Autopilot runs as objects (
serverless-objects/autopilot). One Durable Object per run holds its state machine, budgets, hash-only tool records, durable wake timers and a Camouflage session log that streams from a cursor. A registry per workspace lists and reconciles runs.AutopilotCellRunexecutes the task with Autopilot in a Hotcell cell. Stop the node mid-run, and after restart the object resumes from its saved cursor while the cell keeps working. - A conformance suite (
packages/conformance) that runs the same apps underwrangler devand celld, so engine differences show up as failing checks, and runs the Agents app throughsobjects deploy/upbehind TLS ingress.
Cloudflare's APIs are the contract. The current conformance results pass every check on real Cloudflare (17/17), Wrangler 4.150.0 (21/21), celld 0.6.2 (24/24) and the native engine (23/23): the same apps, unchanged. They cover Durable Object IDs, KV and SQL storage, transactions, input gates, RPC, alarms (including across a restart), WebSockets with hibernation on celld, facets on Wrangler and celld, an Agents SDK suite (state, SQL, schedules including one across a restart, addressing and @callable() RPC), and a PartyServer suite (storage, alarms, room routing, broadcast and hibernation). The Cloudflare run predates the PartyServer suite. The Agents app also passes 6/6 through sobjects deploy and sobjects up behind TLS ingress (test:product). A separate celld-only containers suite (8/8 on Linux arm64 in Docker Desktop's Linux VM) covers ctx.container: start, exec, HTTP over a container port, enableInternet: false, sleep and restart; S3Mount and DirectoryBackup are unsupported because celld rejects interceptOutboundHttp.
Not covered yet: sockets across a cell move between nodes, PartyServer on Cloudflare or through sobjects deploy, Agents SDK chat, MCP and Workflows, containers on a bare-metal Linux host or Linux x64, and Cloudflare-hosted production behavior. Facets pass on Wrangler and celld but are not implemented by the native engine. Point-in-time restore isn't available on celld 0.6; the native engine has Cloudflare's point-in-time recovery API in durable mode. The compatibility table has the details, including Containers and @cloudflare/sandbox 1.0 on celld. The porting guide covers moving an existing project.
| Path | What |
|---|---|
packages/cli |
The serverless-objects npm package: the sobjects CLI (src/), the Hotcell Sandbox binding (hotcell/, imported as serverless-objects/hotcell) and Autopilot run objects (autopilot/, imported as serverless-objects/autopilot). Its README is the CLI reference. |
examples/autopilot-runs |
An HTTP demo of run objects: wake after restart, event streams, reconcile. |
packages/conformance |
Conformance apps and the Wrangler, celld, native and product-path runners, including the celld-only containers suite. |
deploy/compose |
Dockerfile and Compose bundle for a single node, with an optional local SeaweedFS bucket. |
docs/ |
Install, porting and compatibility guides, and recorded conformance results. |
celld is driven through a small contract: the Wrangler bundle, the Wrangler config, and a runtime protocol for health, deploy, inspection, alarms and metrics. The native engine implements the Workers surface in Node for trusted code.
| Engine | Status | Notes |
|---|---|---|
| celld | Supported (0.6.2, pinned) | Runs Wrangler bundles with Durable Objects, KV, D1, R2, Queues, Workflows and Containers. |
| native | In progress: sobjects dev --engine native |
Runs the Worker and Durable Objects in Node, with each object in its own SQLite file and full Node APIs inside objects. It passes the full conformance suite (23/23, hibernation, the Agents SDK and PartyServer included, with facets skipped), with idle eviction. sobjects build --strict checks that an app stays portable to Cloudflare. --backup-bucket backs objects up to S3-compatible storage (with --backup-mode durable, every acknowledged write is in the bucket), --threads N spreads objects over worker threads, and --node-name lets several nodes share one bucket, taking over each other's objects and forwarding calls. A [native] table in sobjects.toml runs it under sobjects up. For trusted code. See the native engine. |
Agents need durable state, scheduled wakeups, long-lived connections and sandboxes. The Durable Objects model fits that well, and the Cloudflare Agents SDK is built on it. Some teams can't run on Cloudflare's network: regulated industries, air-gapped environments, customer VPCs, or anyone for whom cost at scale matters.
The rule across this family is that Cloudflare's APIs are the contract and our implementations are the product. A Workers app that runs here runs on Cloudflare, and the reverse, so you can replace one piece at a time in either direction.
Dates are targets, not promises. Milestones are named separately from npm release numbers.
| Milestone | Target | Scope |
|---|---|---|
| M0 · Compatibility spike | Done, Oct 2026 | Agents SDK and PartyServer samples on celld; Hotcell sandbox reattachment from an object. Findings. |
| M1 · Operating layer | Released 19 Oct 2026 | sobjects CLI and supervisor, TLS ingress with ACME, dashboard and storage inspector, conformance suite with Wrangler and celld runners, install and porting guides. Single host. |
| M2 · Agent layer | 7 Nov 2026 | Hotcell Sandbox binding, and Autopilot run objects with a registry, alarms, event streams and a Hotcell cell executor (first versions merged). The showcase now runs end to end: start a run, kill the node mid-tool, restart, and watch it resume from its event log in Camouflage. |
| M3 · Native engine, single node | 21 Nov 2026 | Node-native engine with the Durable Objects API, SQLite storage, durable alarms and WebSocket hibernation. sobjects build --strict. Conformance parity with celld on the Durable Objects suite, then a two-week fault-injection soak before beta. |
| M4 · Multi-node and Teams | 30 Nov 2026 | Placement and migration through the bucket, owner-aware ingress, rolling deploys, point-in-time recovery. Multiple apps and tenants, SSO, audit logs, air-gapped install, Helm. |
Not planned: a V8 runtime of our own; replacements for Workers AI, Vectorize or Hyperdrive; Python objects.
| Piece | Role | Cloudflare equivalent |
|---|---|---|
| Serverless Objects | Workers and Durable Objects, self-hosted | Workers, Durable Objects |
| Hotcell | Sandboxes with a key-swapping gateway and spend caps | Sandbox SDK, Containers |
| Autopilot | Coding agent and headless SDK | Agents SDK |
| Camouflage | Event-native terminal renderer with a replayable event log | none |
| Local coding model | Served through an OpenAI-compatible endpoint | Workers AI |
Issues and pull requests are welcome. Run npm ci && npm test before opening a PR, and use Conventional Commits (feat(cli): ..., fix(cli): ..., docs: ...). Release notes and versions are generated from them. Contributions are accepted under Apache-2.0 with a Developer Certificate of Origin sign-off (git commit -s). There is no CLA. AGENTS.md describes the layout and conventions for coding agents and humans alike.
Apache-2.0. See LICENSE.