# Cloudflare Domain Registration

> Check availability and register domains through Cloudflare Registrar. Use when asked to buy, purchase, register, check, price, or verify a domain on Cloudflare Registrar with CLOUDFLARE_REGISTRAR_TOKEN.

- Skill: `nachoal/cloudflare-domain-registration` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add nachoal/cloudflare-domain-registration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nachoal/cloudflare-domain-registration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: nachoal (https://skillmd.com/u/nachoal)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/nachoal/cloudflare-domain-registration

---


# Cloudflare Domain Registration

Use this skill for Cloudflare Registrar ownership flows. Do not use deployment, Pages, DNS-zone, or custom-domain workflows when the user is asking to purchase or verify registrar ownership.

## Requirements

The user must provide their own Cloudflare values:

- `CLOUDFLARE_REGISTRAR_TOKEN`: Cloudflare API token with Registrar access.
- `CLOUDFLARE_ACCOUNT_ID`: Cloudflare account ID, or pass `--account-id`.

Never print token values. Do not hardcode personal account IDs, contact IDs, private domains, or purchase transcripts in public examples.

## Quick Start

From this skill directory:

```bash
python3 scripts/cf_domain_registration.py check example.com
python3 scripts/cf_domain_registration.py list --find example.com
python3 scripts/cf_domain_registration.py register example.com --dry-run
python3 scripts/cf_domain_registration.py register example.com --yes
```

Claude Code can reference the bundled script with:

```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/cf_domain_registration.py check example.com
```

## Purchase Rules

- Availability checks are read-only.
- Only submit a registration when the user explicitly asks to buy, purchase, or register the domain.
- Live registration requires `--yes`; use `--dry-run` to inspect the exact request body.
- Reject premium domains unless the user explicitly approves premium pricing, then rerun with `--allow-premium`.
- Default to one year, auto-renew on, and WHOIS privacy redaction unless the user asks otherwise.

## Registrar Flow

1. Check availability:

```http
POST /accounts/{account_id}/registrar/domain-check
```

```json
{
  "domains": ["example.com"]
}
```

2. Confirm the domain object has `registrable: true`.
3. Register:

```http
POST /accounts/{account_id}/registrar/registrations
```

```json
{
  "domain_name": "example.com",
  "years": 1,
  "auto_renew": true,
  "privacy_mode": "redaction"
}
```

4. Verify ownership:

```http
GET /accounts/{account_id}/registrar/domains?page=0&per_page=100
```

Cloudflare Registrar listing can be zero-indexed. If a page one list call is empty but `result_info.total_count` is non-zero, retry from `page=0`.

## Helper Commands

- `check DOMAIN [DOMAIN...]`: call `domain-check` and print registrability/pricing.
- `register DOMAIN --yes`: preflight check, submit registration, and verify in the registrar domain list.
- `register DOMAIN --dry-run`: show the exact submit body without purchasing.
- `list --find DOMAIN`: read registrar inventory from zero-based pagination and search for a domain.
- `status DOMAIN`: read `/registrar/registrations/{domain}/registration-status`.

Read `references/registrar-flow.md` for the endpoint summary and failure modes to avoid.

