Runtime
Agent runtime
Durable threads, streaming events, tools, Code Mode, subagents, approvals, memory, workspaces, and recovery.
Use the API from any product UIOpen-source agent runtime
Flary stores the thread, streams events, runs tools, and resumes work after a disconnect or Worker restart.
Included with Flary
The agent backend, React console, Web Component, and mail starter use the same thread and event model.
Runtime
Durable threads, streaming events, tools, Code Mode, subagents, approvals, memory, workspaces, and recovery.
Use the API from any product UIInterfaces
Ship the React console, use the durable thread hooks, or embed the Web Component and keep your own design system.
React · hooks · /widget.jsFlary Mail
Deploy a self-hosted team inbox with inbound mail, replies, drafts, attachments, search, and live updates.
D1 · R2 · Queues · Email RoutingRuntime
Your code supplies identity, tools, data, and policy. Flary stores the thread, runs the model and tools, and emits durable events.
Runs survive disconnects and resume from an exact event cursor.
A turn can pause for input, approval, or a child agent and continue after a restart.
WebSocket, SSE, and HTTP clients receive one normalized durable event stream.
Search and describe application, MCP, and OpenAPI tools only when the model needs them.
Run independent reads together while policy keeps sensitive actions controlled.
Use OpenAI, Anthropic, Google, or Kimi without replacing the thread runtime.
Examples
These examples cover a SaaS product agent, an embedded storefront assistant, and the package APIs beneath them.
import { flary } from "flary";
export const app = flary({
model: "openai/gpt-5",
});Tracked and Fairway Florist are verified Flary integrations.
Deployment
Flary provisions serverless resources and deploys the runtime. You do not maintain a VPS, container cluster, queue consumer, or separate WebSocket service.
guided CLIChoose the dashboard, backend, or mail starter. Wrangler opens Cloudflare OAuth, then Flary provisions, deploys, and checks the result.
hosted installerConnect Cloudflare on flary.dev, choose a starter, and deploy from the browser. The installed Worker and data will still belong to your Cloudflare account.
Read the deployment modelTool discovery
Application tools stay in a private catalog until the agent needs them. Credentials and large schemas do not fill every model request.
Explore tools and Code Modemodel
├─ request_user_input
├─ request_secret
└─ execute
├─ tools.search
├─ tools.describe
├─ tools.call
└─ tools.batch
↓
local · mcp · openapi · workspace
↓
policy · approval · replay · auditGet started