Mesh

Private network built for autonomous agents

One connector, one binary for your devices, servers, VPCs, and Workers on one private network, routed through Cloudflare's global network across 330+ cities.
Your private network across Region: Earth

Routes through the same global network across 330+ cities, handling 20% of Internet traffic. No relay servers. No degraded fallback paths.

Integrate with Workers

Bind your entire private network to Workers VPC with one line in wrangler.jsonc. Call any internal host with env.MESH.fetch().

Security built-in

Gateway policies, DNS filtering, DLP, and device posture checks built in

One private network for all your agents, services and clients

Background Pattern
Install the connector

One binary for laptops, Workers, or servers. No complex VPN setup, no relay servers. Just install and connect.

Background Pattern
Join the mesh

Your device gets a private IP on the mesh network automatically. Configure routes and policies from the dashboard.

Background Pattern
Routed through 330+ cities

Traffic flows through Cloudflare's global network, the same infrastructure handling 20% of Internet traffic.

Background Pattern
Reach any private service

Call databases, APIs, and internal hosts by private IP. Zero public endpoints exposed, with Zero Trust policies built in.

Background Pattern
Pull-consumers

Gain granular control over message consumption from anywhere on the public Internet by having your services explicitly pull messages and acknowledge them upon successful processing.

Background Pattern
Queues

Built for how agents actually work

Agents don't follow human workflows. They call APIs, query databases, and coordinate with other agents autonomously. Mesh gives them the private network they need.

View docs

Coding agents on private infra

Your local coding agent reaches private services over Mesh. No SSH tunnels, no port forwarding.

Workers calling private databases

Bind your Workers VPC to Mesh. Call internal Postgres, MySQL, or any TCP service from the edge.

Multi-agent coordination

Agents talk to agents over private IPs. No public endpoints. No API gateways. Just direct, authenticated connections.

How it all fits together

Agents on your laptop, Workers in the cloud, databases in your VPC. All addressed by private IP, all routed through one network.

Background Pattern
// Producer Worker - Send messages to queue
export default {
  async fetch(request, env) {
    const { searchParams } = new URL(request.url);
    const message = searchParams.get('message');
    
    if (!message) {
      return new Response('Missing message parameter', { status: 400 });
    }

    // Send message to queue
    await env.MY_QUEUE.send({
      message: message,
      timestamp: new Date().toISOString(),
      userId: request.headers.get('X-User-ID')
    });

    return new Response('Message sent to queue', { status: 200 });
  }
};

// Consumer Worker - Process messages from queue
export default {
  async queue(batch, env, ctx) {
    for (const message of batch.messages) {
      try {
        // Process the message
        console.log('Processing message:', message.body);
        
        // Simulate some work
        await new Promise(resolve => setTimeout(resolve, 1000));
        
        // Acknowledge the message
        message.ack();
      } catch (error) {
        console.error('Failed to process message:', error);
        message.retry();
      }
    }
  }
};

Queues Pricing

Reliable message processing. View Storage & Data pricing details

Standard Operations

Free

10,000 operations/day included

Paid

$0.40 / million operations

SiteGPT

"

We use Cloudflare for everything – storage, cache, queues, and most importantly for training data and deploying the app on the edge, so I can ensure the product is reliable and fast. It's also been the most affordable option, with competitors costing more for a single day's worth of requests than Cloudflare costs in a month. "

Bhanu Teja Pachipulusu
Bhanu Teja Pachipulusu Founder

Powerful primitives, seamlessly integrated

Built on systems powering 20% of the Internet, Queues run on the same infrastructure Cloudflare uses to build Cloudflare. Enterprise-grade reliability, security, and performance are standard.

Build without boundaries

Join thousands of developers who've eliminated infrastructure complexity and deployed globally with Cloudflare. Start building for free — no credit card required.