Cloudflare DNS Updater for Openclaw

A specialized tool for programmatically creating or updating proxied Cloudflare DNS A records.

xieyuanqing
v0.1.1
Feb 6, 2026
0
2.8k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install cloudflare-dns-updater

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-dns-updater 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 Updater?

This skill provides a streamlined interface for managing Cloudflare DNS records directly through your AI agent. By leveraging the Cloudflare API, it allows for the dynamic creation and updating of A records, ensuring subdomains are correctly pointed to specific IP addresses. As part of the Openclaw Skills ecosystem, this tool simplifies the complexity of manual DNS management, making it an essential component for automated server deployments and dynamic infrastructure scaling.

The skill ensures that security is a priority by utilizing environment variables for sensitive API tokens. It defaults to Cloudflare's proxied status, providing immediate CDN and security benefits for any record updated or created. This makes it a powerful asset for developers looking to integrate DNS orchestration into their broader automation workflows using Openclaw Skills.

Cloudflare DNS Updater Use Cases

  • Pointing a new subdomain to a dynamic or static server IP address.
  • Automating DNS updates during CI/CD pipeline deployments.
  • Programmatically managing root domain A records for high-availability setups.
  • Ensuring DNS records are proxied by Cloudflare for security and performance by default.

How Cloudflare DNS Updater Works

  1. The AI agent checks for the presence of the CLOUDFLARE_API_TOKEN environment variable to ensure authorization.
  2. Relevant data such as the root zone, record name (subdomain), and target IP address are extracted from the user's request.
  3. The agent constructs a Python-based CLI command using the update-record.py script.
  4. The script interfaces with the Cloudflare API to identify the zone ID and either create a new record or update an existing one.
  5. The execution result is captured, and a detailed confirmation or error report is provided back to the user.

Cloudflare DNS Updater Setup

To get started with this skill within the Openclaw Skills framework, ensure your environment is configured correctly:

  1. Install Python 3 and the requests library:
pip install requests
  1. Set your Cloudflare API Token as an environment variable:
export CLOUDFLARE_API_TOKEN="your_api_token_here"
  1. Verify that the token has DNS Edit permissions for the zones you intend to manage.

Cloudflare DNS Updater Data Schema & Taxonomy

The skill operates primarily through CLI arguments and outputs structured JSON data upon successful execution.

Input Parameter Type Description
--zone String The root domain (e.g., example.com)
--record String Subdomain name or @ for root
--ip String The destination IPv4 address
--proxied Boolean Toggle Cloudflare proxy (Default: true)

Success output returns a JSON object containing the record ID, name, type, content, and proxied status as defined by the Cloudflare API.

Cloudflare DNS Updater Advanced Features

  • Supports @ notation for updating root domain records directly.
  • Toggleable proxy status for flexible CDN and security integration.
  • Automated error analysis providing specific feedback on API failures or permission issues.
  • Seamless integration with other Openclaw Skills for end-to-end infrastructure automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*