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.
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. ↩