Cloudflare Edge Deployment

Deploy agents to Cloudflare's global edge network for low-latency execution in 300+ locations worldwide.

Prerequisites

  1. A Cloudflare account with Workers enabled
  2. Your Account ID and API Token

Authentication

naos edge login

You'll be prompted for your Cloudflare credentials:

Cloudflare Account ID: your-account-id
Cloudflare API Token: your-api-token
[edge] Credentials stored securely
[edge] Account verified ✓

Or set via environment variables:

export CF_ACCOUNT_ID="your-account-id"
export CF_API_TOKEN="your-api-token"

Deploying an Agent

naos edge deploy researcher

Output:

[edge] Packaging agent: researcher
[edge] Compiling to Cloudflare Workers format
[edge] Creating Durable Object namespace
[edge] Uploading worker bundle (142KB)
[edge] Configuring routes
[edge] ✓ Deployed to Cloudflare Edge
[edge] URL: https://researcher.your-subdomain.workers.dev
[edge] Regions: 300+ locations worldwide

Listing Deployments

naos edge list
EDGE DEPLOYMENTS
AGENT       STATUS    REGIONS   URL
researcher  active    global    researcher.your-subdomain.workers.dev
analyzer    active    global    analyzer.your-subdomain.workers.dev

Configuration

edge:
  provider: cloudflare
  regions:
    - us
    - eu
    - asia
  durableObjects: true
  routes:
    - pattern: "api.example.com/research/*"
      agent: researcher