# Send Cloudflare API to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "cloudflare-api",
    "name": "Cloudflare API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "canonicalUrl": "https://clawhub.ai/lucassynnott/cloudflare-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/cloudflare-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "examples/config-snippet.json",
      "scripts/_lib.sh",
      "scripts/dns/create.sh",
      "scripts/dns/delete.sh",
      "scripts/dns/list.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "cloudflare-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T21:29:24.502Z",
      "expiresAt": "2026-05-08T21:29:24.502Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cloudflare-api",
        "contentDisposition": "attachment; filename=\"cloudflare-api-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "cloudflare-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/cloudflare-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/cloudflare-api",
    "downloadUrl": "https://openagent3.xyz/downloads/cloudflare-api",
    "agentUrl": "https://openagent3.xyz/skills/cloudflare-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cloudflare-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cloudflare-api/agent.md"
  }
}
```
## Documentation

### Cloudflare Skill

Connect to Cloudflare API for DNS management, tunnels, and zone administration.

### 1. Get Your API Token

Go to dash.cloudflare.com/profile/api-tokens
Create a token with required permissions:

Zone:Read - List domains
DNS:Edit - Manage DNS records
Account:Cloudflare Tunnel:Edit - Manage tunnels


Copy the token

### 2. Configure

# Option A: Store in file (recommended)
echo "YOUR_API_TOKEN" > ~/.cloudflare_token
chmod 600 ~/.cloudflare_token

# Option B: Environment variable
export CLOUDFLARE_API_TOKEN="YOUR_API_TOKEN"

### 3. Test Connection

./scripts/setup.sh

### Zones (Domains)

./scripts/zones/list.sh                    # List all zones
./scripts/zones/list.sh --json             # JSON output
./scripts/zones/get.sh example.com         # Get zone details

### DNS Records

# List records
./scripts/dns/list.sh example.com
./scripts/dns/list.sh example.com --type A
./scripts/dns/list.sh example.com --name api

# Create record
./scripts/dns/create.sh example.com \\
  --type A \\
  --name api \\
  --content 1.2.3.4 \\
  --proxied

# Create CNAME
./scripts/dns/create.sh example.com \\
  --type CNAME \\
  --name www \\
  --content example.com \\
  --proxied

# Update record
./scripts/dns/update.sh example.com \\
  --name api \\
  --type A \\
  --content 5.6.7.8

# Delete record
./scripts/dns/delete.sh example.com --name api --type A

### Tunnels

# List tunnels
./scripts/tunnels/list.sh

# Create tunnel
./scripts/tunnels/create.sh my-tunnel

# Configure tunnel ingress
./scripts/tunnels/configure.sh my-tunnel \\
  --hostname app.example.com \\
  --service http://localhost:3000

# Get run token
./scripts/tunnels/token.sh my-tunnel

# Delete tunnel
./scripts/tunnels/delete.sh my-tunnel

### Token Permissions

FeatureRequired PermissionList zonesZone:ReadManage DNSDNS:EditManage tunnelsAccount:Cloudflare Tunnel:Edit

Create token at: dash.cloudflare.com/profile/api-tokens

### Point subdomain to server

./scripts/dns/create.sh mysite.com --type A --name api --content 1.2.3.4 --proxied

### Set up tunnel for local service

# 1. Create tunnel
./scripts/tunnels/create.sh webhook-tunnel

# 2. Configure ingress
./scripts/tunnels/configure.sh webhook-tunnel \\
  --hostname hook.mysite.com \\
  --service http://localhost:8080

# 3. Add DNS record
TUNNEL_ID=$(./scripts/tunnels/list.sh --name webhook-tunnel --quiet)
./scripts/dns/create.sh mysite.com \\
  --type CNAME \\
  --name hook \\
  --content ${TUNNEL_ID}.cfargotunnel.com \\
  --proxied

# 4. Run tunnel
TOKEN=$(./scripts/tunnels/token.sh webhook-tunnel)
cloudflared tunnel run --token $TOKEN

### Output Formats

FlagDescription--jsonRaw JSON from API--tableFormatted table (default)--quietMinimal output (IDs only)

### Troubleshooting

ErrorSolution"No API token found"Run setup or set CLOUDFLARE_API_TOKEN"401 Unauthorized"Check token is valid"403 Forbidden"Token missing required permission"Zone not found"Verify domain is in your account
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lucassynnott
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T21:29:24.502Z
- Expires at: 2026-05-08T21:29:24.502Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/cloudflare-api)
- [Send to Agent page](https://openagent3.xyz/skills/cloudflare-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/cloudflare-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/cloudflare-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/cloudflare-api)