CreateWithAIHub

Template Cloudflare

Cloudflare Agents Starter

Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.

Agent starter kitOfficialFreeOpen source
Visit website ↗
Save

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
Create project
npx create-cloudflare@latest --template cloudflare/agents-starter

Commands 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.

FreeOpen source

Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.

FreeOpen source

MCP servers for this

Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.

Free plan + paid

Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.

FreeOpen source

Docker Desktop's MCP Toolkit and Catalog that run MCP servers in containers and connect them to clients through one gateway.

Free plan + paidOpen source

Skills for this

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Google's open-source, code-first framework for building, evaluating and deploying agents in Python, TypeScript, Go and Java.

FreeOpen source

Vercel's open-source TypeScript SDK for building one chat bot that runs on Slack, Teams, Discord, Telegram, WhatsApp and more.

FreeOpen source

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

Paid

Open-source framework for building LLM agents and apps with a standard interface across model providers.

FreeOpen source

Type to search. Use ↑ ↓ and Enter.