ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

cloudflare

Cloudflare CLI - manage DNS records, purge cache, and control Workers routes.

Why use this skill?

Manage Cloudflare DNS records, cache purging, and Workers routes directly from OpenClaw. Streamline your infrastructure tasks with this secure, API-driven skill for developers.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/dbhurley/cloudflare
Or

What This Skill Does

The Cloudflare CLI skill for OpenClaw provides a powerful, programmatic interface to manage your Cloudflare infrastructure directly from your terminal or via the AI agent. It abstracts complex API calls into simple, intuitive commands that allow you to handle DNS records, perform cache purges, and manage Workers routes with high precision. Whether you are automating infrastructure as code or performing emergency cache invalidations during a production incident, this skill acts as a bridge between your intent and the Cloudflare edge network. By utilizing a scoped API token, the skill ensures that interactions remain secure and compliant with the principle of least privilege, specifically supporting DNS management, cache control, and worker deployment configuration.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal: clawdhub install openclaw/skills/skills/dbhurley/cloudflare. Once installed, navigate to your configuration file located at ~/.clawdis/clawdis.json and insert your CLOUDFLARE_API_TOKEN under the cloudflare section. It is highly recommended to generate a scoped API token from the Cloudflare dashboard with permissions restricted specifically to DNS, Cache Purge, and Workers Routes to maintain system integrity.

Use Cases

This skill is indispensable for DevOps engineers, web developers, and system administrators. Common use cases include automating DNS propagation for new environments, programmatically invalidating global CDN caches after a static site deployment, and synchronizing Worker route patterns across multiple environments. It is especially useful for incident response, where purging a misbehaving asset from the edge cache is required across several domains simultaneously.

Example Prompts

  1. "OpenClaw, please update the A record for the 'api' subdomain on example.com to point to 192.0.2.1."
  2. "Purge all cache entries for the domain example.com to ensure the latest static assets are being served to users."
  3. "List all active workers routes currently configured for my production domain and verify if the pattern for the blog path is correctly set."

Tips & Limitations

Always use the --json flag when building automated scripts to ensure the output can be reliably parsed by secondary processes. Remember that DNS changes via API may take time to propagate globally depending on TTL settings. When performing mass deletions, utilize the --yes flag cautiously, as it bypasses confirmation prompts. Note that this skill does not support managing Cloudflare account-level settings such as billing, audit logs, or WAF configurations, as it is focused strictly on site-level resource management.

Metadata

Author@dbhurley
Stars1100
Views1
Updated2026-02-17
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-dbhurley-cloudflare": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#cloudflare#dns#devops#automation#cdn
Safety Score: 4/5

Flags: network-access, external-api