Cloudflare launches local agent debugger
Cloudflare introduced a CLI/Local Explorer that lets developers debug AI agents in sandboxed environments via the terminal, addressing visibility problems in multi‑step agent workflows. The tool aims to make it easier to test and iterate agent logic locally before deploying. (x.com)
Cloudflare rolled out a new local debugging setup for its developer tools on April 13, giving AI agent builders a way to inspect state before deployment. (blog.cloudflare.com) The release pairs a technical preview of a new unified command-line tool, `cf`, with Local Explorer, a local interface for viewing and editing development data. Cloudflare said developers can try the preview with `npx cf` or install it globally with `npm install -g cf`. (blog.cloudflare.com) Local Explorer runs on a developer’s local server at `/cdn-cgi/explorer` and opens from the terminal by pressing `e` during `wrangler dev`. Cloudflare says it is available by default in Wrangler 4.82 or later and in the latest Cloudflare Vite plugin. (developers.cloudflare.com) The tool shows the local state behind Cloudflare bindings, which are the storage and service connections a Worker uses while running. Cloudflare says Local Explorer can browse or edit Key Value storage, Relational Object Storage buckets, D1 databases, Durable Objects using SQLite storage, and Workflow runs. (developers.cloudflare.com) That fills a gap in agent development, where software often takes several steps, stores intermediate state, and calls tools before returning an answer. Cloudflare’s own Agents documentation says these systems need memory, scheduling, tool calls, coordination, and persistent connections rather than the one-request, one-response pattern of a chatbot. (developers.cloudflare.com) Cloudflare is pushing that model across a broader “Agent Cloud” launch announced the same day. In its April 13 press release, the company said it is adding infrastructure, security, and developer tools aimed at moving agents from laptop demos to production workloads on its network. (cloudflare.com) The company also tied the debugger to a bigger rewrite of Wrangler, its long-running developer command-line tool. Cloudflare said the new `cf` project is meant to cover more than 100 products and nearly 3,000 Hypertext Transfer Protocol application programming interface operations with one consistent syntax. (blog.cloudflare.com) Cloudflare said agents are increasingly the primary users of those interfaces, not just human operators. The company said it rebuilt its tooling so commands, configuration, software development kits, bindings, and documentation can be generated from a shared schema instead of updated by hand. (blog.cloudflare.com) Local Explorer also exposes an application programming interface at `/cdn-cgi/explorer/api`, with an OpenAPI specification that coding agents can read directly. Cloudflare says that lets an agent discover local resources, populate test data, inspect Durable Object state, retry Workflow runs, or upload files to local object storage without extra setup. (developers.cloudflare.com) For now, Cloudflare is calling `cf` an early technical preview and says it supports only a small subset of products. The message in this release is narrower: if agents are going to write and run more software, Cloudflare wants them — and the developers supervising them — to see what is happening locally first. (blog.cloudflare.com)