Cloudflare Manager
VerifiedManage Cloudflare DNS records, Tunnels (cloudflared), and Zero Trust policies. Use for pointing domains, exposing local services via tunnels, and updating in...
$ Add to .claude/skills/ About This Skill
# Cloudflare Manager
Standardized system for managing Cloudflare infrastructure and local tunnel ingress.
Prerequisites - **Binary**: `python3` and `cloudflared` must be installed. - **Credentials**: `CLOUDFLARE_API_TOKEN` (minimal Zone permissions) and `CLOUDFLARE_ZONE_ID`.
Setup 1. Define credentials in the environment or a local `.env` file. 2. Initialize the local environment: `bash scripts/install.sh`.
Core Workflows
1. DNS Management Add, list, or delete DNS records via Cloudflare API. - **List**: `python3 $WORKSPACE/skills/cloudflare-manager/scripts/cf_manager.py list-dns` - **Add**: `python3 $WORKSPACE/skills/cloudflare-manager/scripts/cf_manager.py add-dns --type A --name <subdomain> --content <ip>`
2. Tunnel Ingress (Local) Update `/etc/cloudflared/config.yml` and restart the tunnel service. - **Update**: `python3 $WORKSPACE/skills/cloudflare-manager/scripts/cf_manager.py update-ingress --hostname <host> --service <url>` - **Safety**: Use `--dry-run` to preview configuration changes before application.
Security & Permissions - **Sudo Usage**: The `update-ingress` command requires `sudo` to write to system directories and restart the `cloudflared` service. - **Least Privilege**: Configure restricted sudo access using the pattern in `references/sudoers.example`. - **Token Isolation**: Ensure API tokens are scoped narrowly to specific zones and permissions.
Reference - **Sudoers Pattern**: See [references/sudoers.example](references/sudoers.example). - **Tunnel Logic**: See [references/tunnel-guide.md](references/tunnel-guide.md).
Use Cases
- Manage Cloudflare infrastructure including Workers, DNS, and tunnel configurations
- Set up and maintain cloudflared tunnels for secure local service exposure
- Standardize Cloudflare resource management across multiple projects
- Monitor tunnel health and automatically restart failed tunnel connections
- Provision new Cloudflare resources as part of automated deployment pipelines
Pros & Cons
Pros
- +Standardized management system covering both Cloudflare API and local tunnels
- +Python-based with clear prerequisites for cloudflared binary
- +Handles both remote API operations and local tunnel ingress
Cons
- -Requires both python3 and cloudflared binary to be installed
- -Only available on claude-code and openclaw platforms
- -Credential management adds setup complexity before first use
FAQ
What does Cloudflare Manager do?
Manage Cloudflare DNS records, Tunnels (cloudflared), and Zero Trust policies. Use for pointing domains, exposing local services via tunnels, and updating in...
What platforms support Cloudflare Manager?
Cloudflare Manager is available on Claude Code, OpenClaw.
What are the use cases for Cloudflare Manager?
Manage Cloudflare infrastructure including Workers, DNS, and tunnel configurations. Set up and maintain cloudflared tunnels for secure local service exposure. Standardize Cloudflare resource management across multiple projects.
100+ free AI tools
Writing, PDF, image, and developer tools — all in your browser.
Next Step
Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.