Cloudflare for Openclaw

A comprehensive automation interface to manage Cloudflare DNS, security, CDN settings, and serverless Workers via API.

rexlunae
v1.0.0
Feb 10, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cf-manager

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cf-manager using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Cloudflare?

This skill provides a robust programmatic interface to control your Cloudflare infrastructure directly through Openclaw Skills. It allows developers and system administrators to manage DNS zones, records, and security settings without the need to manually navigate the Cloudflare dashboard for every change. By leveraging the Cloudflare API, users can automate repetitive tasks such as purging caches, updating IP addresses, or configuring SSL modes across multiple domains simultaneously.

Integrating this tool within your Openclaw Skills workflow ensures that your web applications remain secure and highly performant. Whether you are migrating domains, hardening your firewall, or deploying serverless logic at the edge, this skill streamlines complex infrastructure tasks into simple, repeatable commands.

Cloudflare Use Cases

  • Automating the migration of DNS records from legacy providers to Cloudflare's global network.
  • Rapidly blocking malicious IP addresses or entire geographic regions during a security event.
  • Orchestrating DNS updates as part of a CI/CD pipeline for blue-green deployments.
  • Managing SSL/TLS encryption levels to ensure secure end-to-end communication.
  • Deploying and updating serverless Cloudflare Workers to handle edge computing logic.

How Cloudflare Works

  1. The skill authenticates with the Cloudflare API using a locally stored API token with scoped permissions for zones and DNS management.
  2. Users interact with the system to manage zones, which includes adding new domains, checking propagation status, or deleting obsolete entries.
  3. DNS records are created or updated via the API, with the option to toggle the Cloudflare proxy (the orange cloud) for CDN and DDoS protection.
  4. Security configurations, such as firewall rules and SSL modes (Flexible, Full, or Strict), are applied to specific zones to protect origin servers.
  5. The skill can query analytics or deploy Workers scripts, providing a full lifecycle management tool for edge infrastructure.

Cloudflare Setup

To use this skill within Openclaw Skills, you must first configure your API credentials.

  1. Generate an API token at Cloudflare's dashboard with Zone:Read, Zone:Edit, DNS:Read, and DNS:Edit permissions.
  2. Create the configuration directory and store your token locally:
mkdir -p ~/.config/cloudflare
echo -n "YOUR_API_TOKEN" > ~/.config/cloudflare/token
chmod 600 ~/.config/cloudflare/token
  1. Ensure you have the necessary Python environment to execute the integration scripts.

Cloudflare Data Schema & Taxonomy

The skill organizes infrastructure data around the concept of Zones. Below is the metadata taxonomy used for managing assets:

Component Managed Data Example Attributes
Zones Domain identification Zone ID, Status (Active/Pending), Nameservers
DNS Records Routing information Type (A, CNAME, MX), Name, Content, Proxy Status
Security Access control Firewall Rule ID, IP/Country filter, Action
SSL/TLS Encryption settings SSL Mode, HSTS Status, HTTPS Redirects
Workers Edge scripts Script Name, Deployment Date, Route Bindings

Cloudflare Advanced Features

  • Bulk zone management for handling large portfolios of domains within Openclaw Skills.
  • Granular cache control allowing for specific URL purges to ensure instant content updates.
  • Advanced firewall orchestration supporting IP ranges and country-level geofencing.
  • Direct deployment of serverless Workers scripts from local development environments.
  • Automated SSL/TLS enforcement including 'Always Use HTTPS' and HSTS configuration.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*