# Cloudflare Agents Starter

CreateWithAI Hub page: https://createwithaihub.com/templates/cloudflare-agents-starter
Latest version of this file: https://createwithaihub.com/templates/cloudflare-agents-starter.md

- Type: Template · Category: Templates & Starter Kits
- Publisher: Cloudflare (official)
- Pricing: Free · License: MIT
- Works with: Cloudflare Workers

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

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.

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

## Connection

- Stack: React, Cloudflare Workers, TypeScript
- Builds: Chatbot, Agent
- Deploys to: Cloudflare

## Before you start

- A Cloudflare account

## Install steps from the official documentation

Create project:

```
npx create-cloudflare@latest --template cloudflare/agents-starter
```

## Limitations

- Requires Cloudflare authentication even for local development (wrangler login or CLOUDFLARE_API_TOKEN)
- Demo tools return sample data and need replacing

## Official links

- Website: https://developers.cloudflare.com/agents/
- Source repository: https://github.com/cloudflare/agents-starter
- Documentation: https://developers.cloudflare.com/agents/
- Source: https://github.com/cloudflare/agents-starter (README: quick start command, auth requirement, features, project structure; MIT LICENSE)
