Workers - Local Explorer for local resource data
Key Points
- Browser UI and REST API for local resource data
- Supports KV, R2, D1, Durable Objects, Workflows
- OpenAPI root at /cdn-cgi/explorer/api for programmatic access
Summary
Local Explorer is a browser-based UI and OpenAPI-powered REST API for inspecting and editing local Worker resource data during development. It removes the need for throwaway scripts or digging through .wrangler/state and works across multiple local workers. Available in Wrangler 4.82.1+ and the Cloudflare Vite plugin 1.32.0+.
Start a local dev session and press e in your terminal or open http://localhost:<dev-port>/cdn-cgi/explorer (example: http://localhost:8787/cdn-cgi/explorer). The REST API root is at /cdn-cgi/explorer/api and returns an OpenAPI spec for programmatic access.
Key Points
- Supported resources:
- KV: browse keys, view values/metadata, create/update/delete entries.
- R2: list objects, view metadata, upload/delete files, directory views and multi-select.
- D1: browse tables/rows, run SQL queries, edit schemas (full data studio).
- Durable Objects (SQLite storage): browse per-object SQLite tables, run SQL, edit schemas.
- Workflows: list instances, view status/step history, trigger runs, pause/resume/restart/terminate.
- REST API and OpenAPI: programmatic access at
/cdn-cgi/explorer/api; root endpoint returns OpenAPI spec to discover endpoints, params, and responses. - CLI/agent usage: Example curl:
curl http://localhost:8787/cdn-cgi/explorer/api. Point AI coding agents at the API to automate test-data population, state inspection, triggering workflows, or uploading files.
Practical notes for engineers
- Ensure Wrangler >= 4.82.1 or CF Vite plugin >= 1.32.0 to use Local Explorer.
- Use the OpenAPI spec to generate client code or connect tools/agents for iterative development.
- Local Explorer edits affect only local development state; it is designed to accelerate debugging and iteration.