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 }) withoc 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
| Topic | Cloudflare | open-compute |
|---|---|---|
Module Worker (export default { fetch }) | Yes | Yes |
Isolates, env bindings, fetch / scheduled / queue | Yes | Yes |
Cache API, WebSocket hibernation, cloudflare:sockets, node: imports | Yes | Yes — same Workers runtime APIs |
| Global Anycast / workers.dev / Custom Domains product | Yes | Not provided |
| Project file | wrangler.jsonc | open-compute.json (unknown fields rejected) |
| compatibilityDate in project JSON | Yes | Not allowed; frozen in the runtime lock (2026-08-30) |
| Deploy authority | Cloudflare control plane | Local SQLite and one supervised runtime generation |
In this section
- Get started
- Concepts
- Examples
- Configuration (bindings, compatibility dates, flags, Cron, environment variables, secrets, routing)
- Versions and deployments
- Static Assets
- Cache
- Runtime APIs (handlers, bindings, cache, WebSockets, TCP, Node.js)
- Limits · Known issues · Changelog
If the platform is not running yet, start at ocd get started.