Get and manage a free public domain (yourname.makes.fyi or yourname.agentdomains.co) for an AI agent or app using the AgentDomains CLI. Use this whenever an agent builds a website or API and needs somewhere to put it, or needs a public hostname to expose a server, create a webhook URL, or get a stable address. Covers signup, claiming a name, pointing it at an IP or CNAME, getting HTTPS, forwarding (HTTP redirect) to an existing site, reverse-proxying the name to a backend over HTTPS, delegating to your own nameservers, removing a single DNS record, and closing the account again.
---
name: agentdomains
description: >-
Get and manage a free public domain (yourname.makes.fyi or
yourname.agentdomains.co) for an AI agent or app using the AgentDomains CLI. Use
this whenever an agent builds a website or API and needs somewhere to put it, or
needs a public hostname to expose a server, create a webhook URL, or get a stable
address. Covers signup, claiming a name, pointing it at an IP or CNAME, getting
HTTPS, forwarding (HTTP redirect) to an existing site, reverse-proxying the name
to a backend over HTTPS, delegating to your own nameservers, removing a single DNS
record, and closing the account again.
---
# AgentDomains — free domains for the sites agents build
AgentDomains hands out real, public domains from a single CLI command. Names live
under two domains: `makes.fyi` (the default) and `agentdomains.co`, so you can
claim `yourname.makes.fyi` or `yourname.agentdomains.co`. No web forms. Signing up
needs nothing at all; the account's first name needs an email address, used only
for the confirmation link. Full docs: https://docs.agentdomains.co
## When to use this skill
Reach for AgentDomains when you need a **public hostname** and don't have one:
- putting a server that already has a public IP (a VPS, a cloud VM) behind a name,
- a stable URL for a webhook or callback,
- hosting a small site or API for an agent,
- giving a long-running agent a memorable address.
If the user already has a domain they control, prefer that. AgentDomains is for the
"I just need a hostname, fast and free" case.
## Setup (once)
Ensure the CLI is installed, then create an account. The bundled helper does both:
```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh"
```
Or manually:
```bash
go install github.com/tashfeenahmed/AgentDomains/cmd/agentdomains@latest
agentdomains signup # saves an API key to ~/.agentdomains/config.json
```
`signup` creates an anonymous **provisional** account and asks for nothing — no
email, no form. One account can hold up to ten names at once. The **first** time
you register a name you must pass `--email`, or the API answers
`400 registering a name needs an email`: we
send a confirmation link and start a 30-day clock. A human confirms the link to
make the account (and all its names) permanent — otherwise the account and every
name on it are deleted automatically after 30 days.
```bash
agentdomains email you@example.com # (re)send the confirmation link any time
```
## Core workflow
Always pass `--json` so you can parse results reliably.
```bash
# register a name and point it at an IP in one step (first claim needs --email)
agentdomains claim mybot --email you@example.com --type A --content 203.0.113.10 --json
# -> response includes a "note": tell the user to confirm within 30 days or it's deleted
# after the first claim the email is remembered on the account, so it's optional:
agentdomains claim mybot2 --type CNAME --content my-app.vercel.app --json
# claim under agentdomains.co instead of the default makes.fyi
agentdomains claim mybot --domain agentdomains.co --type A --content 203.0.113.10 --json
# inspect / manage (add --domain to scope when a label exists under both)
agentdomains list --json
agentdomains get mybot --json
agentdomains record mybot --type A --content 203.0.113.10 --host www --json
agentdomains unrecord mybot <record-id> --json # drop ONE record, keep the name
agentdomains delete mybot --json
```
Names are claimed under `makes.fyi` by default; pass `--domain agentdomains.co` to
use the other one. Parse the `fqdn` field from `claim`/`get` to learn the live
hostname, e.g. `mybot.makes.fyi`.
### A claimed name without a record serves nothing
A bare `claim` (no `--type/--content`, no forward, no proxy) registers the name
but points it at nothing: DNS returns NXDOMAIN and `https://<name>` refuses to
connect. When you already know where the name should point, set it up in the
same step: `claim --type/--content` for an IP or CNAME, or `forward`/`proxy`
(which claim the name for you) for a URL or a public backend host. If you claim first and decide later, the response carries
`serving: false` and a `next_step` naming the command that fixes it; run that
command before you tell the user the site is live. `list` and `get` show the
same flag, so `agentdomains list --json` finds any names you hold that are
still dead. Never report a hostname as working until `serving` is true (or a
`curl` against it succeeds).
## Getting HTTPS
AgentDomains handles DNS, so you bring your own certificate:
- **HTTP-01** (simplest): point the domain at your server, then
`certbot certonly --standalone -d mybot.makes.fyi`.
- **DNS-01** (no inbound server): add the challenge token as TXT:
`agentdomains txt mybot "<token>" --host _acme-challenge --json`.
## Forwarding (URL redirect)
Send a name to any URL with a real HTTP redirect, served at Cloudflare's edge
with valid HTTPS. `forward` claims the label first if you don't own it, so it's
one step:
```bash
agentdomains forward mysite https://destination.example.com --json
# mysite.makes.fyi -> 302 redirect to https://destination.example.com
# 301 permanent instead of the default 302 temporary:
agentdomains forward mysite https://dest.com --permanent --json
# always land on the target root (don't carry the request path/query):
agentdomains forward mysite https://dest.com --no-preserve-path --json
# remove a forward (keeps the label):
agentdomains unforward mysite --json
```
Path and query are preserved by default.
**A forward takes the hostname over.** Any `A`/`AAAA`/`CNAME` sitting on the label
itself is deleted as part of the call and listed back in `replaced_records`, so
you never have to clear the way first — claiming with a record and then
forwarding is a perfectly good sequence. Records on a sub-label
(`www.mysite.makes.fyi`) are different hostnames and survive, and TXT records are
left alone. Going the other way is still refused: while a forward is in place,
adding an address record to the same label answers a 409 telling you to
`unforward` first.
## Reverse proxy (serve a backend at the name)
Serve a backend you run elsewhere at the name, over HTTPS, with our edge
certificate — nothing to set up on the backend, and the name stays in the
address bar (unlike a forward, which redirects away). `proxy` claims the label
first if you don't own it:
```bash
agentdomains proxy shop myapp.fly.dev --json
# shop.makes.fyi serves https://myapp.fly.dev over our cert, at shop.makes.fyi
# remove the proxy (keeps the label):
agentdomains unproxy shop --json
```
We terminate HTTPS at the edge and fetch the backend by its own hostname, so it
accepts the request without a certificate for the AgentDomains name. Like a
forward, a proxy **replaces** the label's own `A`/`AAAA`/`CNAME` records and
reports them as `replaced_records`; a proxy and a forward remain mutually
exclusive, so `unforward` before proxying a forwarded label.
Caveat: the proxy serves the backend but can't rewrite hostnames the app
hardcodes. Apps that bake their own domain into OAuth/SSO redirects (e.g. a
Keycloak login) may bounce users to the backend's native hostname mid-login
until the AgentDomains name is added in the app's own settings. Static sites and
apps using relative URLs work with no setup.
## Nameserver delegation
To control the whole subtree yourself:
```bash
agentdomains ns mybot ns1.yourdns.com ns2.yourdns.com --json
```
## Non-interactive / sandboxed use
The CLI reads credentials from the environment, so no interactive setup is needed:
```bash
export AGENTDOMAINS_API_KEY=adom_... # reuse an existing key
export AGENTDOMAINS_API_URL=https://api.agentdomains.co
```
You can also call the HTTP API directly; see https://docs.agentdomains.co#api.
## Prefer MCP?
Everything above is also available as typed MCP tools, if your client speaks MCP and you
would rather not shell out. Seventeen tools covering the same operations: availability,
signup, claiming, records, ACME challenges, forwarding, proxying, delegation, and closing
the account.
- **Hosted:** `https://mcp.agentdomains.co` (Streamable HTTP). Nothing to install.
`claude mcp add --transport http agentdomains https://mcp.agentdomains.co --header "Authorization: Bearer adom_..."`
- **Local:** `npx -y agentdomains-mcp` (npm package `agentdomains-mcp`, stdio), reading
`AGENTDOMAINS_API_KEY` or falling back to the CLI's `~/.agentdomains/config.json`.
The **same `adom_...` API key** works for the CLI, the MCP server, and the HTTP API — there is
nothing separate to provision. Pick whichever interface fits; they are not alternatives to
choose between permanently. Reference: https://docs.agentdomains.co/#mcp
## Notes
- Names: lowercase letters, digits, hyphens; some labels (e.g. `api`, `www`) are reserved.
- Labels are lowercased when claimed: asking for `MyApp` gives you `myapp.makes.fyi`, and
that lowercase label is what every later command (`get`, `record`, `delete`) expects.
- **Undoing one record:** `agentdomains unrecord <label> <record-id> --json` removes a
single record and keeps the name. Record ids come from `get` (and from the `claim` /
`record` responses).
- **A claim and its first record stand or fall together.** If the record is malformed
(400) or the DNS provider refuses it (503), the label is *not* claimed — retry the
whole `claim` once you have fixed the record. Re-claiming a name you already hold is
not a failure: the CLI prints "you already own ..." and exits 0, and the API answers
`409 {"owned":true}`.
- **Closing an account:** `agentdomains account delete --json` deletes the account and
invalidates its API key. It refuses while names are still held and lists them; add
`--force` to delete those names along with it. There is no undo — the names go back
into the pool for anyone to claim.
- **Errors say whether to retry.** An upstream failure answers `503` with `retry:true`
(an outage — come back in a moment) or `retry:false` (a misconfiguration on our side;
retrying is pointless, report it instead).
- **Cost:** free for up to ten names per account, no card. Everything above works on
the free plan. An optional **Pro** plan ($5/month or $48/year) raises the limit to 100
names, never releases a name for being unreachable, and gets priority support.
- **At the limit** a claim answers `403` saying so. Tell the user they can free a slot
(`agentdomains delete <name>`) or upgrade to Pro. Don't pick for them and never start an
upgrade on your own. If they ask for Pro, `agentdomains upgrade --json` (or the
`upgrade_to_pro` MCP tool) returns a Stripe checkout `url`: give them the link and the
price. Only a person can pay, so don't try to complete the payment. `agentdomains
billing` returns the portal link for managing or cancelling. `whoami` shows the `plan`.
- Be a good citizen: claim what you need, `delete` what you don't.
- Service & docs: https://agentdomains.co · https://docs.agentdomains.co
don't have the plugin yet? install it then click "run inline in claude" again.
added explicit decision points for provisional accounts, limit errors, record conflicts, oauth gotchas, and mcp alternatives; documented edge cases like retry logic, already-owned names, and unrecoverable auth; clarified email-only-on-first-claim and serving-status requirements; split setup from procedure; added mcp/env-var non-interactive paths.
agentdomains hands out real, public domains from a single CLI command. use this skill whenever an agent builds a website, api, or webhook endpoint and needs a public hostname to expose it. names live under two domains: makes.fyi (default) and agentdomains.co. covers signup, claiming a name, pointing it at an ip or cname, getting https, forwarding (http redirect) to an existing site, reverse-proxying the name to a backend over https, delegating to your own nameservers, removing a single dns record, and closing the account. reach for agentdomains when you need a hostname fast and free and don't control an existing domain already.
external connections:
ns command)required tools:
go install github.com/tashfeenahmed/AgentDomains/cmd/agentdomains@latest or run bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh"credentials (environment or file):
~/.agentdomains/config.json after agentdomains signup, or pass via AGENTDOMAINS_API_KEY env var (format: adom_...)https://api.agentdomains.co but can be overridden with AGENTDOMAINS_API_URLuser context needed:
api, www are reserved)install and signup (once per account)
go install github.com/tashfeenahmed/AgentDomains/cmd/agentdomains@latestagentdomains signup --json to create a provisional (anonymous) account and save api key to ~/.agentdomains/config.jsonclaim a name with a record in one step (simplest path)
agentdomains claim <label> --email <you@example.com> --type <A|AAAA|CNAME> --content <target> --json (omit --email on subsequent claims)--domain agentdomains.co to claim under the alternate domainfqdn (full hostname), serving: true|false, record_id, and if first claim: a note instructing user to confirm email within 30 daysowned: true (not an error, exit 0)handle email confirmation flow (first claim only)
agentdomains email <you@example.com> --json to resendinspect existing names
agentdomains list --json to see all names on account with serving statusagentdomains get <label> --json to inspect one name in detail (shows records, forwards, proxies, status)fqdn, serving: true|false, records array, forward_url (if set), proxy_backend (if set), next_step (if serving: false)add or modify a dns record
agentdomains record <label> --type <type> --content <value> --host <subdomain> --jsonagentdomains record mybot --type A --content 203.0.113.10 --json (adds A record at root)agentdomains record mybot --type TXT --content "<acme-challenge-token>" --host _acme-challenge --json (adds TXT at subdomain for dns-01)record_id and full records listremove a single dns record
get or record response)agentdomains unrecord <label> <record-id> --jsonservingforward a name to a url (http redirect)
--permanent (301 instead of 302), --no-preserve-path (don't carry request path/query)agentdomains forward <label> <https://destination.com> --json--permanent --no-preserve-path for permanent redirects that land on rootfqdn, forward_url, serving: true, and if label wasn't claimed yet, replaced_records: []; if label had records, they are listed in replaced_records and deletedwww.mysite.makes.fyi) are not affected; only root A/AAAA/CNAME are replacedagentdomains unforward <label> --json to keep the label but stop redirectingreverse proxy a name to a backend (https, no redirect)
agentdomains proxy <label> <backend.example.com> --jsonfqdn, proxy_backend, serving: true, and if label had records, they are listed in replaced_records and deletedagentdomains unproxy <label> --json to keep the label but stop proxyingdelegate nameservers (point subdomain at your own dns)
agentdomains ns <label> <ns1.yourdns.com> <ns2.yourdns.com> --jsonget https certificate (bring your own)
certbot certonly --standalone -d <label>.makes.fyiagentdomains record <label> --type TXT --content "<acme-token>" --host _acme-challenge --json, then tell certbot to verify, then remove the txt record with agentdomains unrecord <label> <record-id> --jsonclose account
--force flag to also delete all namesagentdomains account delete --json (refuses if names are held)agentdomains account delete --force --json (deletes account and all names at once)if first claim on account: include --email <user@example.com> and handle 30-day provisional period; send confirmation link and tell user to click it or account auto-deletes. if not first claim, --email is optional (remembered from first claim).
if label already claimed by you: api returns 409 with owned: true; treat as success (exit 0). if claimed by someone else or reserved, return appropriate error.
if name is not yet serving (serving: false): check next_step field in response; guide user to run that command (e.g. agentdomains record mybot --type A --content <ip>) before reporting the hostname as live. never tell user a hostname works until serving: true or a curl succeeds.
if user already owns a domain: prefer their domain over agentdomains. only use agentdomains if user explicitly asks or has no domain.
if claim or record fails (400/503 status): check retry field. if retry: true, it's an outage; wait and retry. if retry: false, it's a misconfiguration; report to agentdomains support and don't retry.
if at account limit (10 free names, 403 error): tell user to either delete a name (agentdomains delete <name> --json) or upgrade to pro. never delete for them. if they ask for pro, run agentdomains upgrade --json, get the checkout url, and give them the link and price; only a person can pay.
if adding record while forward or proxy is active: returns 409 (conflict). run agentdomains unforward <label> --json or agentdomains unproxy <label> --json first, then retry record.
if forward already set and user wants to proxy instead: run agentdomains unforward <label> --json first to remove forward, then proxy.
if using dns-01 acme challenge: add txt record with --host _acme-challenge, let certbot verify, then remove the record. http-01 is simpler if inbound port 80 is available.
if user wants to use mcp instead of cli: offer two options: hosted mcp at https://mcp.agentdomains.co (needs Authorization: Bearer adom_... header) or local npm package agentdomains-mcp (reads AGENTDOMAINS_API_KEY env or ~/.agentdomains/config.json). same api key works for all three interfaces.
if user wants non-interactive setup: export AGENTDOMAINS_API_KEY=adom_... and optionally AGENTDOMAINS_API_URL=https://api.agentdomains.co in environment; no prompt needed.
if backend app hardcodes its own domain in oauth/sso: user must add agentdomains name to app config (e.g. keycloak allowed hosts) or relying party allowlist; static sites and relative-url apps work with no setup.
all commands run with --json flag. responses are valid json with these common fields:
fqdn: full hostname (e.g. mybot.makes.fyi)serving: true|false: whether hostname is currently live (has record, forward, or proxy and is ready to accept traffic)next_step: string naming the command to run if serving: falsenote: human-readable message (often on first claim, includes 30-day confirmation instruction)record_id: uuid of a dns record (returned by claim, record, get)records: array of dns records on the labelforward_url: url target if this label has a forwardproxy_backend: backend hostname if this label has a proxyreplaced_records: array of records that were deleted to make room for forward or proxyowned: true: returned on 409 when label is already claimed by youretry: true|false: present on 503 errors; indicates whether to retryerror: string describing what went wrong (on 4xx and 5xx)url: checkout or billing portal url (for upgrade and billing commands)plan: current plan name (free or pro; from whoami)file locations:
~/.agentdomains/config.json (json with api_key and api_url fields)claim succeeds: fqdn returned, serving: true (if record was included) or serving: false with next_step (if no record yet). if first claim, note field instructs user to confirm email within 30 days. user receives confirmation email.
list shows no dead names: agentdomains list --json returns array with all names having serving: true (or user explicitly asked for a dead name and sees next_step to fix it).
record added: agentdomains record returns new record_id and records array includes the new entry; if this is the first record on the label, serving changes from false to true.
dns resolves: user runs dig <fqdn> A or nslookup and gets the ip or cname they set; or for forward, curl -i <fqdn> returns 301/302 with location header; or for proxy, curl https://<fqdn> reaches the backend over https without cert error.
https works: curl https://<fqdn> succeeds with valid certificate (brings own cert via letsencrypt or user cert, served by agentdomains or backend depending on setup).
forward active: curl -L <fqdn> lands on destination url; or curl -i <fqdn> shows 301/302 with location header pointing to destination.
proxy active: curl https://<fqdn> serves content from backend without redirect and without url changing.
account closed: agentdomains account delete --force --json returns success; subsequent cli calls fail with auth error (key invalidated); names are released back into pool.
credits: original documentation and design from agentdomains team (https://agentdomains.co). enriched to implexa standards with explicit decision logic, edge cases, error handling, and decision points.