Skip to content

Workers

Workers is a serverless execution environment that runs Cloudflare module Workers on this platform. One ocd process supervises one pinned workerd child on the node. The platform does not provide a global edge, workers.dev, or a Cloudflare dashboard.

With Workers you can:

  • Deploy a module Worker (export default { fetch }) with oc run
  • Bind KV, R2, D1, Durable Objects, Queues, Workflows, and other Workers
  • Schedule scheduled() with UTC cron expressions
  • Serve Static Assets from the same immutable deployment
ts
export default {
  fetch(request: Request, env: Env): Response {
    return Response.json({
      message: env.GREETING,
      pathname: new URL(request.url).pathname,
    });
  },
} satisfies ExportedHandler<Env>;

The sample in this repository is examples/hello-worker/. Deploy it against a running ocd (default origin http://127.0.0.1:8787):

sh
bun run oc run --config examples/hello-worker/open-compute.json --ocd <ocd-path>

Compatibility

TopicCloudflareopen-compute
Module Worker (export default { fetch })YesYes
Isolates, env bindings, fetch / scheduled / queueYesYes
Cache API, WebSocket hibernation, cloudflare:sockets, node: importsYesYes — same Workers runtime APIs
Global Anycast / workers.dev / Custom Domains productYesNot provided
Project filewrangler.jsoncopen-compute.json (unknown fields rejected)
compatibilityDate in project JSONYesNot allowed; frozen in the runtime lock (2026-08-30)
Deploy authorityCloudflare control planeLocal SQLite and one supervised runtime generation

In this section

If the platform is not running yet, start at ocd get started.