All docs / Build
Build an agent
Stateful agents, chat assistants and MCP servers on Durable Objects, with env.AI for models, Vector memory, approvals and connectors — from a Studio starter or your own code.
Open in the consoleAn agent on RandallFlare is an app: JavaScript or TypeScript on the edge, with randallflare:agents for the stateful parts (one Durable Object per agent instance), env.AI for models, a Vector index for memory, Workflows for long jobs and Approvals when a person must decide. There is no separate agent product to pay for; agents run and are billed like any other app.
Start from a template
| Starter | What it contains | Bindings it expects |
|---|---|---|
| Agent (chat + schedule) | an AIChatAgent that streams replies over WebSocket behind a small page, plus a scheduled Agent that keeps state and reports it | AI (ai); ASSISTANT, (Durable Objects) |