Local Development: Includes wrangler dev (without the --remote flag) and the Cloudflare Vite plugin. This mode simulates the Cloudflare Workers environment locally.
Remote Development: Uses wrangler dev --remote), deploying your code to Cloudflare’s infrastructure during development. This ensures all bindings and resources match production conditions. There is no Vite plugin equivalent for testing remote resources.
Tip: If you need to use any bindings marked with ❌ under local development, run:
Terminal window
wranglerdev--remote
This command allows you to develop against remote resources and data stored on Cloudflare's network.
Footnotes
Using Workers AI always accesses your Cloudflare account in order to run AI models and will incur usage charges, even in local development. ↩
Analytics Engine is supported in local development with Wrangler but is not currently supported in the Vite plugin. ↩
Using Hyperdrive with local development allows you to connect to a local database (running on localhost) but you cannot connect to a remote database. To connect to a remote database, use wrangler dev --remote. ↩
Using Vectorize always accesses your Cloudflare account to run queries, and will incur usage charges even in local development. ↩