dna drives the Domain Name API reseller platform from the command line and from AI agents. It covers all 67 API operations: domain search, registration, renewal, transfer, DNS, DNSSEC, contacts, SSL and hosting. Plug it into Claude Code, Claude Desktop, Cursor, Codex or any MCP client, and every operation becomes a safe, well-described tool.
| What an agent gets | |
|---|---|
| 🧰 One tool per operation | dna mcp serve exposes 68 MCP tools with JSON Schemas built from the API spec, so models fill inputs correctly the first time. |
| 🛡️ A safety gate | Billable and destructive calls never run on their own. The CLI needs --yes, MCP needs confirm=true, and without it the agent gets a preview to show you. |
| 🧾 Machine-readable everything | JSON output when piped, JSON errors with stable exit codes, --dry-run for the exact request, and dna schema for every input. |
| 🧪 A sandbox | --env ote points at the test environment: real API, no real money. --read-only blocks every change. |
| 📘 Self-documenting | dna agent guide teaches an agent the whole CLI in one call. dna agent skill --install adds a Claude Code skill. |
Important
Always install from the latest release. Release binaries are versioned, tested and published with SHA-256 checksums.
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/domainreseller/cli/main/scripts/install.sh | shWindows (PowerShell)
irm https://raw.githubusercontent.com/domainreseller/cli/main/scripts/install.ps1 | iexWith Go 1.26+
go install github.com/domainreseller/cli/cmd/dna@latestManual download
Pick your archive on the latest release, check it against checksums.txt, unpack it and put dna (or dna.exe) on your PATH.
| OS | x64 | ARM |
|---|---|---|
| Linux | dna_<version>_linux_amd64.tar.gz |
dna_<version>_linux_arm64.tar.gz |
| macOS | dna_<version>_darwin_amd64.tar.gz |
dna_<version>_darwin_arm64.tar.gz |
| Windows | dna_<version>_windows_amd64.zip |
dna_<version>_windows_arm64.zip |
Check the setup with dna version and dna doctor.
# 1. Log in to the test environment first (it has its own API key)
dna auth login --env ote
# 2. Look around: nothing here changes anything
dna --ote account get
dna --ote domain search example.com
dna --ote product tlds --filter-text com
# 3. Create a contact once: dna asks for the details and makes it your default
dna --ote contact create
# 4. Preview a purchase, then make it (it asks for confirmation)
dna --ote domain register example.com --dry-run
dna --ote domain register example.com
# 5. Production
dna auth login
dna domain listRun dna on its own in a terminal. You don't need to know a single command: everything is a choice with ↑↓ and Enter, and Esc always goes back.
| What you get | |
|---|---|
| 🔎 Live search | Type a name like acme: free extensions and their prices appear while you type. ↓ picks one and registers it through a short form. |
| ⚡ Quick actions | ↓ on an empty line: your domains, register a domain, DNS records, balance, switch between OTE and production. |
| 🗂️ Domain menus | Search your domains and press Enter: details, DNS, renew, lock, WHOIS privacy, nameservers, auth code. |
| 🛡️ Nothing by accident | Every billable or destructive step ends in a confirmation box with the exact request and the price. Cancel stays selected until you choose otherwise. |
| 🤖 Connect an AI agent | /agent lists 20+ agents: Claude Code, ChatGPT, Cursor, Claude Desktop, Codex and more. dna sets it up, checks the credentials and hands you ready-made prompts. |
Scripts and AI agents never see the shell: piped, or run by an agent, dna prints JSON and the help exactly as before.
Tip
The quickest way: run dna, press ↓ and choose Connect an AI agent (or type /agent). Pick one of 20+ agents, choose OTE or production and how much it may do. dna runs the setup or adds itself to the agent's config file, checks the credentials and copies ready-made prompts for you.
claude mcp add dna -- dna mcp serve --env ote # Claude Code
dna mcp config # snippets for every other clientClaude Desktop · Cursor · Windsurf · Gemini CLI
{
"mcpServers": {
"dna": {
"command": "dna",
"args": ["mcp", "serve", "--env", "ote"]
}
}
}Claude Desktop: claude_desktop_config.json · Cursor: ~/.cursor/mcp.json · Windsurf: ~/.codeium/windsurf/mcp_config.json · Gemini CLI: ~/.gemini/settings.json
VS Code
.vscode/mcp.json:
{
"servers": {
"dna": { "type": "stdio", "command": "dna", "args": ["mcp", "serve", "--env", "ote"] }
}
}OpenAI Codex CLI
~/.codex/config.toml:
[mcp_servers.dna]
command = "dna"
args = ["mcp", "serve", "--env", "ote"]Agents with a shell (skill and guide)
dna agent skill --install # Claude Code skill: ~/.claude/skills/dna/SKILL.md
dna agent skill --install --dir .claude/skills # project skill, commit it with your repo
dna agent guide # compact usage guide for any agentYou choose how far the agent can reach:
dna mcp serve --read-only # look, don't touch
dna mcp serve --no-billable # everything except purchases
dna mcp serve --groups domain,dns # only these command groupsCopy a prompt, paste it into your AI assistant and let it do the work. Every prompt starts in the OTE test environment and stops for your approval before anything billable.
Set up dna in Claude Code
Set up the dna CLI for me (https://github.com/domainreseller/cli).
1. Install it with the official install script for my operating system, then run
`dna version` and `dna doctor`.
2. Install the Claude Code skill with `dna agent skill --install` and add the MCP
server with `claude mcp add dna -- dna mcp serve --env ote`.
3. Don't ask me to paste my API key into this chat. Tell me to run
`dna auth login --env ote` myself, then check the connection with
`dna --ote account get`.
Work only in the OTE test environment and never use `--yes` without my approval.
Set up dna in ChatGPT Codex
Set up the dna CLI for me (https://github.com/domainreseller/cli).
1. Install it with the official install script for my operating system, then run
`dna version` and `dna doctor`.
2. Add it to my Codex config (`~/.codex/config.toml`) as an MCP server named `dna`
with the command `dna` and the arguments `mcp serve --env ote`.
3. Don't ask me to paste my API key into this chat. Tell me to run
`dna auth login --env ote` myself, then check the connection with
`dna --ote account get`.
Work only in the OTE test environment and never use `--yes` without my approval.
No terminal? Ask ChatGPT or Claude chat
Read https://raw.githubusercontent.com/domainreseller/cli/main/llms.txt and the dna
docs it links to. Then give me the exact dna commands, step by step, to register a
domain in the OTE test environment: install, log in, search, preview with `--dry-run`
and register. Explain what each command does.
More prompts for everyday work
Find and register a domain
With dna, check whether brandname.com, brandname.net and brandname.io are available.
Show the results with prices in a table, then preview the registration of the cheapest
available one with `--dry-run`. Don't register anything until I say yes.
Upcoming renewals
With dna, list my domains that expire in the next 60 days with their renewal prices,
sorted by expiry date. Don't renew anything.
Point a domain to a server
With dna, point example.com to 203.0.113.10: add A records for `@` and `www`, then
show me the final DNS zone. Ask me before changing or deleting any existing record.
Transfer a domain in
With dna, check whether example.org can be transferred to my account, tell me what I
still need (auth code, unlocking) and preview the transfer with `--dry-run`.
Order an SSL certificate
With dna, find the cheapest DV SSL certificate for example.com, create a CSR and
preview the order. Wait for my approval before buying.
| class | examples | behaviour |
|---|---|---|
read |
search, list, info, prices | runs immediately |
write |
DNS records, lock, privacy, contacts | runs immediately (free, reversible) |
destructive |
delete a record, revoke SSL, disable DNSSEC | stops until confirmed |
billable |
register, renew, transfer, restore, buy SSL/hosting | stops until confirmed |
- In a script or agent shell: without
--yes, a gated command exits with code 9 and sends nothing. - Over MCP: without
confirm=true, the tool returns a preview of the exact request. - Previewing:
--dry-runprints the HTTP request with the API key masked. - Locking it down:
--read-only,DNA_READ_ONLY=1or a read-only profile blocks every change (exit code 10).
dna domain info example.com # table on a terminal
dna domain info example.com -o json # JSON (the default when piped)
dna domain list --all -o jsonl # one domain per line
dna domain info example.com --jq .authCode # built-in jq
dna dns add --body @record.json # full input from a file, or --body - for stdin
dna schema domain.register # JSON Schema of any input
dna enums DomainStatus # what status 7 meansErrors are JSON on stderr: {"error":{"kind","code","message","status","fields","hint","correlationId","retryable","exitCode"}}
| code | meaning | code | meaning |
|---|---|---|---|
| 0 | success | 6 | rate limited |
| 1 | unexpected error | 7 | server error |
| 2 | invalid input, nothing sent | 8 | network |
| 3 | authentication | 9 | confirmation required |
| 4 | not found | 10 | read-only mode |
| 5 | rejected by the API |
| group | what it does |
|---|---|
dna |
the interactive shell: live search, menus, guided forms, AI agent setup |
dna domain |
search, bulk search, list, info, register, renew, transfer, restore, lock, privacy, auth code, contacts, documents, forwarding, nameservers, child hosts |
dna dns · dna dnssec |
zone records, DS records |
dna contact |
contact handles and verification |
dna ssl |
list, CSR, buy, configure, status, download, renew, reissue, revoke |
dna hosting · dna product · dna order · dna account |
hosting, catalogue and prices, orders, profile, balance and transactions |
dna api |
raw request to any endpoint |
dna schema · dna enums · dna agent · dna mcp |
for agents and tools |
dna auth · dna config · dna doctor |
credentials, profiles, diagnostics |
Every command's --help shows its safety class, API route and examples. See the full command reference.
dna needs the same two values as every Domain Name API module:
| value | what it is |
|---|---|
| Reseller ID | a UUID like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| API Key | your API key; production and OTE have different keys |
Tip
Find both in your Domain Name API panel under API Settings. Store them with dna auth login, or use the DNA_RESELLER_ID and DNA_API_KEY environment variables in CI.
Caution
These are API credentials. Your panel login e-mail and password will not work here.
Is it safe to let an AI agent use dna?
Billable and destructive operations are gated: the CLI refuses them without
--yes, and the MCP server returns a preview unless the call carries confirm=true, which agents are instructed to set only after you approve. Start agents on --env ote, and use --read-only or --no-billable to limit them further.
Can I try it without spending money?
Yes.
--env ote uses the OTE test environment with its own API key and balance. Nothing there touches live domains or your real balance.
Which AI tools work with it?
Any MCP client: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, OpenAI Codex CLI, Gemini CLI and others. Agents that only have a shell can call the CLI directly;
dna agent guide and the Claude Code skill explain it to them.
Where are my credentials stored?
dna auth login keeps them in a profile file in your user config folder (dna config path shows where), written with owner-only permissions on Linux and macOS. Environment variables always win over the file, and the API key is masked in every output.
Do I need Go?
No. The install scripts and the release archives contain a single binary. Go 1.26+ is only needed for
go install or building from source.
Is there a library for my own code?
dna is a CLI and MCP server. To call the API from code, use the official PHP, Node.js, Python, Ruby or Go libraries.
| guide | for |
|---|---|
| Getting started | install, OTE login, first registration and DNS change |
| Configuration | credentials, environments, profiles, environment variables, read-only mode |
| Usage | inputs, --body, output formats, --jq, pagination, rate limits, recipes |
| AI agents and MCP | MCP setup per client, confirmation protocol, skill, agent guide |
| Errors and exit codes | error JSON, error codes, troubleshooting |
| Command reference · Enums | every command, flag and coded value (generated) |
| Architecture · Contributing | how the code is organized |
Apache-2.0 · made for people and the agents working with them