Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/argo-smart-routing/README.md
1# Cloudflare Argo Smart Routing Skill Reference23## Overview45Cloudflare Argo Smart Routing is a performance optimization service that detects real-time network issues and routes web traffic across the most efficient network path. It continuously monitors network conditions and intelligently routes traffic through the fastest, most reliable routes in Cloudflare's network.67**Note on Smart Shield:** Argo Smart Routing is being integrated into Cloudflare's Smart Shield product for enhanced DDoS protection and performance. Existing Argo customers maintain full functionality with gradual migration to Smart Shield features.89## Quick Start1011### Enable via cURL12```bash13curl -X PATCH "https://api.cloudflare.com/client/v4/zones/{zone_id}/argo/smart_routing" \14-H "Authorization: Bearer YOUR_API_TOKEN" \15-H "Content-Type: application/json" \16-d '{"value": "on"}'17```1819### Enable via TypeScript SDK20```typescript21import Cloudflare from 'cloudflare';2223const client = new Cloudflare({ apiToken: process.env.CLOUDFLARE_API_TOKEN });2425const result = await client.argo.smartRouting.edit({26zone_id: 'your-zone-id',27value: 'on',28});2930console.log(`Argo enabled: ${result.value}`);31```3233## Core Concepts3435### What It Does36- **Intelligent routing**: Detects congestion, outages, packet loss in real-time37- **Global optimization**: Routes across 300+ Cloudflare data centers38- **Automatic failover**: Switches paths when issues detected (typically <1s)39- **Works with existing setup**: No origin changes required4041### Billing Model42- Usage-based: Charged per GB of traffic (excluding DDoS/WAF mitigated traffic)43- Requires billing configuration before enabling44- Available on Enterprise+ plans (check zone eligibility)4546### When to Use47- **High-traffic production sites** with global user base48- **Latency-sensitive applications** (APIs, real-time services)49- **Sites behind Cloudflare proxy** (orange-clouded DNS records)50- **Combined with Tiered Cache** for maximum performance gains5152### When NOT to Use53- Development/staging environments (cost control)54- Low-traffic sites (<1TB/month) where cost may exceed benefit55- Sites with primarily single-region traffic5657## Should I Enable Argo?5859| Your Situation | Recommendation |60|----------------|----------------|61| Global production app, >1TB/month traffic | ✅ Enable - likely ROI positive |62| Enterprise plan, latency-critical APIs | ✅ Enable - performance matters |63| Regional site, <100GB/month traffic | ⚠️ Evaluate - cost may not justify |64| Development/staging environment | ❌ Disable - use in production only |65| Not yet configured billing | ❌ Configure billing first |6667## Reading Order by Task6869| Your Goal | Start With | Then Read |70|-----------|------------|-----------|71| Enable Argo for first time | Quick Start above → [configuration.md](configuration.md) | [gotchas.md](gotchas.md) |72| Use TypeScript/Python SDK | [api.md](api.md) | [patterns.md](patterns.md) |73| Terraform/IaC setup | [configuration.md](configuration.md) | - |74| Enable for Spectrum TCP app | [patterns.md](patterns.md) → Spectrum section | [api.md](api.md) |75| Troubleshoot enablement issue | [gotchas.md](gotchas.md) | [api.md](api.md) |76| Manage billing/usage | [patterns.md](patterns.md) → Billing section | [gotchas.md](gotchas.md) |7778## In This Reference7980- **[api.md](api.md)** - API endpoints, SDK methods, error handling, Python/TypeScript examples81- **[configuration.md](configuration.md)** - Terraform setup, environment config, billing configuration82- **[patterns.md](patterns.md)** - Tiered Cache integration, Spectrum TCP apps, billing management, validation patterns83- **[gotchas.md](gotchas.md)** - Common errors, permission issues, limits, best practices8485## See Also8687- [Cloudflare Argo Smart Routing Docs](https://developers.cloudflare.com/argo-smart-routing/)88- [Cloudflare Smart Shield](https://developers.cloudflare.com/smart-shield/)89- [Spectrum Documentation](https://developers.cloudflare.com/spectrum/)90- [Tiered Cache](https://developers.cloudflare.com/cache/how-to/tiered-cache/)91