What problem does it solve?
It helps you build production-grade AI agents on Cloudflare Workers that can keep state, expose callable actions, and run durable background work without manually wiring every infrastructure concern.
Core Features & Use Cases
- Persistent agent state: Maintain durable, SQLite-backed state and keep connected clients synchronized automatically.
- Callable RPC for agents: Expose agent methods over WebSocket via @callable, including optional streaming responses for real-time updates.
- Durable workflows and execution: Run multi-step background tasks with AgentWorkflow and handle eviction-tolerant logic with fibers (runFiber/stash).
- Scheduling and queues: Trigger tasks with schedule/scheduleEvery and process queued jobs with persisted FIFO behavior plus retry strategies.
- Production integrations: Use MCP clients/servers for external tool ecosystems, handle email routing, receive webhooks, and emit observability events.
Quick Start
Use the agents-sdk skill to create a minimal Cloudflare Worker Durable Object agent with a Counter class, a @callable increment method, and routeAgentRequest as the fetch handler.