Skip to content

Getting started

Last updated View as MarkdownAgent setup

An agent on Cloudflare is a Durable Object with the Agents SDK Lifecycle installed. The Lifecycle starts the capabilities you add to it, such as WebSockets, State, and Scheduler. A harness is the capability that runs the agent loop. Pick the path that matches where you are starting from.

Choose a path

Learn the runtime

Build a counter on a Durable Object with the Lifecycle, State, and WebSockets, then connect a client.

All getting started pages

Was this helpful?