Skip to content

Supported bindings per development mode

Local development

Local support: During local development, your Worker code runs locally. Bindings use local resources by default where they support them. You can use local bindings in wrangler dev and the Cloudflare Vite plugin.

Remote binding connections: Allows you to connect to remote resources on a per-binding basis. This is supported in wrangler dev and the Cloudflare Vite plugin.

Binding Local support Remote binding connections
AI ❌ ✅
Assets ✅ ❌
Analytics Engine ✅ ✅
Browser Run ✅ 1 ✅
D1 ✅ ✅
Durable Objects ✅ ❌ 2
Containers ✅ ❌
Email Bindings ✅ 3 ✅
Flagship ✅ ✅
Hyperdrive ✅ 4 ✅
Images ✅ 5 ✅
KV ✅ ✅
Media Transformations ❌ ✅
mTLS ❌ ✅
Queues ✅ ❌ 6
R2 ✅ ✅
Rate Limiting ✅ ❌
Service Bindings (multiple Workers) ✅ ✅
Vectorize ❌ ✅
Workflows ✅ ❌ 2

For automated tests that need to run offline without Cloudflare credentials, refer to Offline and local binding support.

Remote development

During remote development, all of your Worker code is uploaded and executed on Cloudflare's infrastructure, and bindings always connect to remote resources. We recommend using local development with remote binding connections instead for faster iteration and debugging.

Supported only in wrangler dev --remote - there is no Vite plugin equivalent.

Binding Remote development
AI ✅
Assets ✅
Analytics Engine ✅
Browser Run ✅
D1 ✅
Durable Objects ✅
Containers ❌
Email Bindings ✅
Flagship ✅
Hyperdrive ✅
Images ✅
KV ✅
Media Transformations ✅
mTLS ✅
Queues ❌
R2 ✅
Rate Limiting ✅
Service Bindings (multiple Workers) ✅
Vectorize ✅
Workflows ❌

Footnotes

  1. Local development runs Puppeteer, Playwright, Chrome DevTools Protocol (CDP), and .quickAction() calls against local Chrome with limited feature support. Wrangler downloads Chrome on first use if it is not already cached. Set remote: true to use Cloudflare's managed Browser Run service. ↩

  2. Refer to Using remote resources with Durable Objects and Workflows for recommended workarounds. ↩ ↩2

  3. Local simulation logs outgoing emails and saves message content and attachments to local files without delivering them. Refer to Test email sending locally. ↩

  4. Set localConnectionString to connect directly to a database without Hyperdrive. Set remote: true to use your deployed configuration. Refer to Hyperdrive local development. ↩

  5. Local simulation supports image metadata and a subset of transformations. Set remote: true for the full Images API. ↩

  6. remote: true does not make Queue producer bindings send to deployed queues in local development. Messages stay in the local Queues environment. ↩

Was this helpful?