Cloudflare DNS Management Skill for Openclaw

A powerful tool for programmatically managing Cloudflare DNS records to automate domain configuration and email authentication.

masasdani
v1.0.0
Feb 23, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install spf-dkim-setup

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 spf-dkim-setup 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 DNS Management Skill?

This skill enables AI agents to interface directly with the Cloudflare API to manage DNS infrastructure. It provides full CRUD (Create, Read, Update, Delete) capabilities for various record types including A, AAAA, CNAME, TXT, MX, and more. By leveraging Openclaw Skills, developers can automate complex networking tasks, such as setting up email authentication protocols like SPF, DKIM, and DMARC, without manual dashboard intervention.

Integrating this skill allows for dynamic domain verification and the management of tracking domains, making it an essential component for automated web hosting and communication workflows. It ensures high precision in DNS record placement, reducing the risk of human error in critical infrastructure settings.

Cloudflare DNS Management Skill Use Cases

  • Automating the setup of SPF, DKIM, and DMARC records for secure email delivery.
  • Programmatically verifying domain ownership for third-party services and platforms.
  • Managing CNAME records for tracking domains and subdomains in marketing stacks.
  • Updating A or AAAA records for dynamic IP environments or automated deployments.
  • Integrating with mail services like Mailtarget for end-to-end autonomous sending domain provisioning.

How Cloudflare DNS Management Skill Works

  1. The agent authenticates with the Cloudflare API using a provided API token and specific Zone ID.
  2. It retrieves current DNS records to assess the existing state of the domain configuration.
  3. Based on the required task, it identifies whether to create a new record or update an existing one, such as merging SPF directives into existing TXT entries.
  4. It executes the API request via POST, PATCH, or DELETE methods to modify the DNS zone.
  5. It confirms the operation's success by validating the structured JSON response returned from the Cloudflare API.

Cloudflare DNS Management Skill Setup

To use this skill within the Openclaw Skills framework, configure the following environment variables:

  • CLOUDFLARE_API_TOKEN: An API token with DNS Write permissions.
  • CLOUDFLARE_ZONE_ID: The unique identifier for your target domain, found in the Cloudflare dashboard.

Example of listing records via CLI:

curl -s "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" | jq '.result[] | {id, type, name, content}'

Cloudflare DNS Management Skill Data Schema & Taxonomy

The skill interacts with Cloudflare's structured API responses. Key data fields managed during record operations include:

Field Description
id Unique record identifier used for updates or deletion
type DNS record type (e.g., A, TXT, CNAME, MX)
name The hostname for the record (e.g., example.com)
content The target value or IP address of the record
ttl Time to live in seconds (default is often 3600)
proxied Boolean indicating if traffic goes through the Cloudflare proxy

Cloudflare DNS Management Skill Advanced Features

  • Intelligent SPF merging: Automatically appends include directives to existing SPF records instead of overwriting them.
  • Proxy-Aware logic: Automatically sets the proxied flag to false for email-related CNAME records to prevent breaking authentication protocols.
  • End-to-end integration: Works in tandem with Mailtarget-email for fully autonomous domain verification and mail setup workflows.
  • Granular API filtering: Supports targeted queries by record type or hostname to minimize data overhead.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*