cloudflare/agents is one of the AI-powered repositories TopGit tracks, currently at 5.6k stars, written primarily in TypeScript. Build and deploy AI Agents on Cloudflare
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Agents are persistent, stateful execution environments for agentic workloads, powered by Cloudflare Durable Objects. Each agent has its own state, storage, and lifecycle — with built-in support for real-time communication, scheduling, AI model calls, MCP, workflows, and more.
Agents hibernate when idle and wake on demand. You can run millions of them — one per user, per session, per game room — each costs nothing when inactive.
LLMs write executable code that calls your tools, instead of one tool call at a time
@cloudflare/shell
Sandboxed JS execution + virtual filesystem (Workspace) for agents
@cloudflare/voice
Deprecated compatibility wrapper for the agents/voice exports
@cloudflare/worker-bundler
Build and bundle Workers at runtime, for use with the Worker Loader binding
hono-agents
Hono middleware for adding agents to Hono apps
AI-chat modules used to live in agents/ai-chat-agent, agents/chat, agents/ai-react, and agents/ai-types. Those entry points still re-export, but they're deprecated — import from @cloudflare/ai-chat directly. New chat-from-scratch projects should look at @cloudflare/think.
Examples
The examples/ directory has 30+ self-contained demos. A non-exhaustive tour:
Showcase — playground/ is the kitchen-sink app: state, callable methods, scheduling, chat, tools, MCP, workflows, email, voice — all in one UI
Voice — voice-agent/ is the unified voice pipeline example with Workers AI, AssemblyAI, Telnyx, and ElevenLabs STT; voice-input/ covers dictation; telnyx-voice-agent/ covers phone transport; elevenlabs-starter/ covers broader ElevenLabs media APIs
Human-in-the-Loop guide — approval workflows with pause/resume
design/ — architecture and design decision records (chat API, sub-agents, agent tools, workspace, voice, browser tools, retries, and more)
Repository Structure
Directory
Description
packages/agents/
Core SDK
packages/ai-chat/
AI chat layer
packages/think/
Opinionated chat agent base
packages/codemode/
Code Mode
packages/shell/
Sandboxed execution + filesystem
packages/voice/
Deprecated Voice compatibility wrapper
packages/worker-bundler/
Runtime Workers bundler
packages/hono-agents/
Hono integration
examples/
Self-contained demo apps
experimental/
Work-in-progress experiments (not published)
openai-sdk/
Examples using the OpenAI Agents SDK
guides/
In-depth pattern tutorials
docs/
Markdown docs synced to developers.cloudflare.com
site/
Deployed websites (agents.cloudflare.com, AI playground)
design/
Architecture and design decision records
scripts/
Repo-wide tooling
Development
Node 24+ required. pnpm workspaces with Nx for task orchestration, caching, and affected detection.
pnpm install # install all workspaces
pnpm run build # build all packages (Nx, cached, dependency-ordered)
pnpm run check # sherif + export checks + oxfmt + oxlint + typecheck
pnpm run test # vitest + vitest-pool-workers (Workers runtime)
pnpm run test:react # Playwright-based React hook tests
pnpm exec nx affected -t build # build only what changed
pnpm exec nx affected -t test # test only what changed
Changes to packages/ need a changeset:
pnpm exec changeset
See AGENTS.md for deeper contributor guidance.
Contributing
We are not accepting external pull requests at this time — the SDK is evolving quickly and we want to keep the surface area manageable. That said, we'd love to hear from you:
The most recent commit recorded on cloudflare/agents was 3 days ago, based on the GitHub push timestamp. The repository has 726 forks — one of the better signals of community interest.
How does cloudflare/agents compare to other AI Tools projects?
cloudflare/agents is tracked by TopGit in the AI Tools category, with 5.6k GitHub stars and written in TypeScript. Browse the AI Tools topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does cloudflare/agents have?
cloudflare/agents has 5.6k GitHub stars — refresh the page for the live number, or check github.com/cloudflare/agents. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is cloudflare/agents open source?
Yes — cloudflare/agents ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/cloudflare/agents.
What is cloudflare/agents?
cloudflare/agents (cloudflare/agents) is a TypeScript project on GitHub. From the project's own README: Build and deploy AI Agents on Cloudflare
Where do I read more about cloudflare/agents?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/cloudflare/agents is the definitive source.
Read full README in the tab above.
Is agents worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of agents.