
Template Cloudflare
Cloudflare Agents Starter
Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.
What it is
Agents Starter is a Cloudflare template for building AI chat agents with the Agents SDK. It runs on Workers AI, so no third-party model key is needed, and demonstrates server-side tools, browser-side tools, human approval for sensitive tools, scheduled tasks and image input. It is for developers who want a working agent on Cloudflare to adapt.
What it's useful for
Starting a chat agent that can call your APIs, ask for approval before risky actions, and run reminders or recurring jobs.
Key features
- Streaming chat via AIChatAgent on Workers AI
- Three tool patterns: server auto-execute, client-side, and human-in-the-loop approval
- One-time, delayed and cron scheduling
- Image input for vision-capable models
- Real-time WebSocket connection with message persistence
How to use it
Before you start
- A Cloudflare account
npx create-cloudflare@latest --template cloudflare/agents-starterCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Requires Cloudflare authentication even for local development (wrangler login or CLOUDFLARE_API_TOKEN)
- Demo tools return sample data and need replacing
Alternatives
Mastra's collection of ready-to-run TypeScript agent, workflow and MCP server projects, scaffolded with create-mastra.
Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.
MCP servers for this
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.
Docker Desktop's MCP Toolkit and Catalog that run MCP servers in containers and connect them to clients through one gateway.
Skills for this
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Google's open-source, code-first framework for building, evaluating and deploying agents in Python, TypeScript, Go and Java.
Vercel's open-source TypeScript SDK for building one chat bot that runs on Slack, Teams, Discord, Telegram, WhatsApp and more.
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
Open-source framework for building LLM agents and apps with a standard interface across model providers.