# Cloudflare Registrar

> Cloudflare Registrar: domain availability check, prices, registration via API.

- Skill: `mouadja02/cloudflare-registrar` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mouadja02/cloudflare-registrar`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mouadja02/cloudflare-registrar/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: mouadja02 (https://skillmd.com/u/mouadja02)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mouadja02/cloudflare-registrar

---


# Cloudflare Registrar

> **Attribution:** Sourced from [steipete/agent-scripts](https://github.com/steipete/agent-scripts) by [Peter Steinberger](https://github.com/steipete).

## When to Use

- Checking domain name availability via Cloudflare API
- Querying Cloudflare Registrar pricing for TLDs
- Registering domains through the Cloudflare Registrar API

Use for Cloudflare Registrar domain availability, pricing, listing, and registration.

## Guardrails

- Always run `domain-check` immediately before registration.
- Registration is billable/non-refundable. Get explicit confirmation before registering.
- Do not print tokens or secrets.

## Required Credentials

- `CLOUDFLARE_ACCOUNT_ID`
- `CLOUDFLARE_API_TOKEN` (with Registrar permissions)

## Check Availability / Pricing

```bash
curl -s -X POST \
  "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/registrar/domain-check" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["example.com"]}' | jq '.result'
```

## List Registrations

```bash
curl -s \
  "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/registrar/registrations" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" | jq '.result[] | {domain, expires_at, auto_renew}'
```

## Register (after explicit confirmation)

```bash
curl -s -X POST \
  "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/registrar/registrations" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_name": "example.com",
    "auto_renew": false,
    "privacy_mode": "redaction"
  }' | jq '.result'
```

## Notes

- Always confirm pricing in `domain-check` before registering.
- Registration is immediate and non-reversible — require explicit user confirmation.
- `privacy_mode: "redaction"` enables WHOIS privacy.

