OpenAICloudflare Developer PlatformApr 13, 2026, 12:00 AM

Workers - Local Explorer for local resource data

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

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.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Workers - ローカルリソースデータ用 Local Explorer

Local Explorer(ローカルリソースデータ用)

Local Explorer は、開発中にローカルのリソースデータを閲覧・編集するためのブラウザベースのインターフェースおよび REST API です。破棄用スクリプトを書いたり、.wrangler/state を掘り下げてローカルに Worker が保存しているデータを理解する必要をなくします。

  • 利用可能バージョン: Wrangler 4.82.1+ および Cloudflare Vite plugin 1.32.0+。
  • 起動方法: ローカル開発セッションを開始し、ターミナルで e を押すか、ローカル開発サーバーで /cdn-cgi/explorer にアクセスしてください。

対応リソース

Local Explorer は 5 種類のリソースをサポートし、ローカルで実行されている複数の Worker 間で動作します:

  • KV — キーの参照、値とメタデータの表示、キー・バリューの作成、更新、削除。
  • R2 — オブジェクトの一覧表示、メタデータの表示、ファイルのアップロード、オブジェクトの削除。ディレクトリ表示とマルチセレクトに対応。
  • D1 — テーブルと行の参照、任意の SQL クエリ実行、フルデータスタジオでのスキーマ編集。
  • Durable Objects(SQLite ストレージ)— 個々のオブジェクトの SQLite テーブルの参照、SQL クエリの実行、スキーマ編集。
  • Workflows — インスタンス一覧、ステータスとステップ履歴の表示、新しい実行のトリガー、インスタンスの一時停止、再開、再実行、終了。

OpenAPI ベースの REST API

Local Explorer は /cdn-cgi/explorer/api に REST API を公開しており、ブラウザでできる操作をプログラムから同様に実行できます。ルートエンドポイントは利用可能なすべてのエンドポイント、パラメータ、レスポンス形式を記述した OpenAPI specification ↗ を返します。

ターミナル例

curl http://localhost:8787/cdn-cgi/explorer/api

AI コーディングエージェントを /cdn-cgi/explorer/api に向ければ、手動のセットアップなしにローカルリソースを検出して操作できます。これにより、エージェントが KV や D1 にテストデータを投入したり、Durable Object の状態を検査したり、Workflow 実行をトリガーしたり、R2 にファイルをアップロードしたりする反復的な開発ループが可能になります。

詳細は Local Explorer ドキュメントを参照してください。

Workers - Local Explorer for local resource data | Cloudflare Developer Platform | DocsDigest