What problem does it solve?
It solves the problem of building reliable, stateful AI agent backends on Cloudflare Workers without stitching together separate systems for state, RPC, scheduling, and durable execution.
Core Features & Use Cases
- Persistent agent state: store and sync SQLite-backed state with client updates via setState and onStateUpdate.
- Callable RPC for agents: expose agent methods to clients using @callable, including streaming responses and timeouts.
- Durable workflows and execution: run background tasks with AgentWorkflow and durable fibers that survive eviction using runWorkflow and runFiber/stash.
- Use case: create a chat agent that supports long-running tool workflows, scheduled follow-ups, and resumable streaming for a real-time UI session.
Quick Start
Ask an AI to generate a minimal Cloudflare Workers Agent using an Agent subclass with a SQLite state type, a single @callable method, and a fetch handler that routes requests using routeAgentRequest.