Cloudflare for Openclaw

An integrated bash-driven toolset for managing Cloudflare infrastructure, including DNS, SSL configurations, and Zero Trust tunnels.

insipidpoint
v1.5.0
Feb 16, 2026
1
3.8k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cloudflare-toolkit

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 cloudflare-toolkit 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?

The Cloudflare skill provides a powerful interface for interacting with the Cloudflare API directly from your local environment. By leveraging a bundled bash script, users can perform complex operations like zone management, DNS record updates, and security tuning without needing to navigate the web dashboard or write custom API calls. This skill is a core component of the Openclaw Skills library, designed for developers who need reliable infrastructure automation.

Whether you are updating an A record for a new deployment or configuring strict SSL modes across multiple zones, this skill simplifies the process. It bridges the gap between manual configuration and programmatic infrastructure-as-code, making it an essential utility for modern web operations managed via Openclaw Skills.

Cloudflare Use Cases

  • Pointing new domains to server IP addresses using A and CNAME records.
  • Configuring email infrastructure by setting up MX, SPF, and TXT records.
  • Enforcing high-level security by toggling SSL modes to strict or flexible.
  • Automating cache purges for specific URLs or entire zones during deployments.
  • Managing Cloudflare Tunnels for secure, private network connectivity within an Openclaw Skills workflow.

How Cloudflare Works

  1. The skill utilizes the cf.sh script to interface with the Cloudflare v4 API endpoints.
  2. It authenticates using a user-provided CLOUDFLARE_API_TOKEN to ensure secure, scoped access.
  3. For zone-specific operations, it retrieves the unique Zone ID based on the target domain name.
  4. Commands are executed against specific API modules (DNS, SSL, Tunnels) with logic to handle optional flags like proxying and TTL.
  5. The system returns structured JSON data or clear status updates to confirm successful infrastructure modifications.

Cloudflare Setup

To start using this skill within Openclaw Skills, ensure curl, jq, and openssl are installed on your system. Set your environment variables as follows:

export CLOUDFLARE_API_TOKEN="your_api_token_here"
# Required for tunnel operations
export CLOUDFLARE_ACCOUNT_ID="your_account_id_here"

Verify your configuration by running the help or verify command:

./scripts/cf.sh verify

Cloudflare Data Schema & Taxonomy

This skill interacts primarily with Cloudflare API objects. Data is often handled as JSON, especially during export and import operations.

Object Identifier Key Metadata
Zone zone_id Domain name, status, name servers
DNS Record record_id Type (A, CNAME, etc.), content, proxy status, TTL
Tunnel tunnel_id Name, status, configuration details
Settings setting_name SSL mode, security level, cache settings

Cloudflare Advanced Features

  • Bulk Operations: Use dns-export and dns-import to migrate or backup entire DNS zones via JSON files.
  • Zero Trust Support: Full lifecycle management of Cloudflare Tunnels including creation and detailed inspection.
  • Granular Security: View and list firewall rules and page rules to audit zone security posture via Openclaw Skills.
  • Performance Monitoring: Access zone analytics for the last 24 hours directly from the command line.
  • Proxy Control: Toggle Cloudflare's orange-cloud (CDN/WAF) features programmatically per record.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins curljqopenssl
Github Stars: 0
forks: 0

Featured*