Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 11, 2026·3 min de lecture

Cloudflare Agents — Stateful Agents on Durable Objects

Cloudflare Agents provides stateful execution environments for agent workloads on Durable Objects, with scheduling, realtime, MCP, and Workers deployment.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : New
Point d'entrée
Asset
Commande CLI universelle
npx tokrepo install d557519b-82c7-4060-aa06-d74da6355da2
Introduction

Cloudflare Agents is a verified GitHub-backed tool for modern AI and developer workflows, sourced from cloudflare/agents with 4,898 stars and a MIT license snapshot. Best for: apps that need one persistent agent per user, room, workflow, or session, deployed globally without managing servers. Works with: Cloudflare Workers, Durable Objects, Wrangler, realtime channels, scheduled tasks, MCP tools. Setup time: 15 minutes. Use it when you need a concrete, repeatable path rather than another one-off shell snippet.


Operating Pattern

Fit check

Question Practical answer
What do you install? agents from cloudflare/agents
What is the first command? npm run dev
What proves it works? npx wrangler deploy --dry-run
How long should a pilot take? 15 minutes for a small repo or sandbox

Adoption loop

  1. Run the tool on a disposable branch or sandbox project.
  2. Capture before/after output so reviewers can see the exact effect.
  3. Add the smallest CI or local check that prevents regressions.
  4. Document owner, upgrade command, and rollback command in the repo.

Recommended use

Model each durable conversation or job as an agent with its own state. Keep external side effects in explicit tools so retries and wakeups stay predictable.

Guardrails

Design storage boundaries before scale tests. Millions of idle agents are viable only if per-agent state stays small and lifecycle cleanup exists.

Rollout checklist

  • Pin the package or release version before using it in CI.
  • Keep credentials in environment variables or the platform secret store.
  • Add one owner who is responsible for upgrades and breaking-change triage.
  • Re-check the GitHub repo before writing docs that mention APIs or install paths.

FAQ

Q: Is this production-ready? A: The repo exists at https://github.com/cloudflare/agents and has 4,898 GitHub stars. Treat the first rollout as a controlled pilot until your team has tested install, rollback, and CI behavior.

Q: Why use it instead of a generic script? A: The value is repeatability: a named package, a documented command, a source repo, and a small verification path that can be reviewed by teammates.

Q: What should I measure first? A: Measure setup time against the 15 minutes target, count how many files or tasks it changes, and record whether the CI command catches the same issue locally.


🙏

Source et remerciements

Built from cloudflare/agents. License: MIT.

GitHub stars verified from api.github.com/repos/cloudflare/agents: 4,898.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires