|
| 1 | +--- |
| 2 | +title: "Register a Domain with Bitcoin: No Account, No Credit Card" |
| 3 | +description: "How to register a domain using the L402 protocol and a lightning wallet — no sign-up, no credit card, no KYC." |
| 4 | +date: 2026-04-06 |
| 5 | +tags: [bitcoin, lightning, l402, domains, agents] |
| 6 | +image: /blog/images/2026-04-06-register-domain-with-bitcoin.jpg |
| 7 | +imageAlt: A glowing cyan-green globe connected by a lightning bolt to a DNS tree diagram, dark terminal background |
| 8 | +--- |
| 9 | + |
| 10 | +Domain registrars are built for humans: billing pages, account dashboards, email verification, credit card forms. What if your agent needs a domain? [unhuman.domains](https://unhuman.domains) skips all of that — it's a domain registrar that speaks L402, accepts bitcoin over lightning, and returns a management token you can use immediately. No account. No KYC. No credit card. |
| 11 | + |
| 12 | +## How it works |
| 13 | + |
| 14 | +The registration flow is pure L402 — the same pattern as paying for AI inference or image generation: |
| 15 | + |
| 16 | +1. POST to the registration endpoint → server returns HTTP `402` with a lightning invoice and macaroon |
| 17 | +2. Pay the invoice with any lightning wallet, receive the preimage |
| 18 | +3. Replay the POST with `Authorization: L402 {macaroon}:{preimage}` |
| 19 | +4. Receive a JWT management token valid for one year |
| 20 | + |
| 21 | +The Alby CLI handles steps 1–3 in a single command: |
| 22 | + |
| 23 | +```bash |
| 24 | +npx -y @getalby/cli fetch-l402 \ |
| 25 | + -u https://api.unhuman.domains/api/domains/register \ |
| 26 | + -m POST \ |
| 27 | + -H '{"Content-Type": "application/json"}' \ |
| 28 | + -b '{"domain": "yourdomain.com", "years": 1}' |
| 29 | +``` |
| 30 | + |
| 31 | +Response: |
| 32 | + |
| 33 | +```json |
| 34 | +{ |
| 35 | + "domain": "yourdomain.com", |
| 36 | + "status": "registered", |
| 37 | + "order_id": "...", |
| 38 | + "management_token": "eyJ...", |
| 39 | + "whois_privacy": true |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +That token is your key to everything: DNS records, nameservers, renewal. Store it somewhere safe — it's valid for a year. |
| 44 | + |
| 45 | +## Anonymous email, paid in sats |
| 46 | + |
| 47 | +One thing worth knowing: unhuman.domains does require a management email address for the registration. It's used for domain-related notices — not marketing, not account creation. |
| 48 | + |
| 49 | +For a fully agent-native setup, [lnemail.net](https://lnemail.net) is a good fit. It offers anonymous email inboxes paid in sats — no sign-up, no identity. That's how we handled it: one LNCURL wallet, one lnemail address, one L402 domain registration. No identity anywhere in the stack. |
| 50 | + |
| 51 | +## What it cost |
| 52 | + |
| 53 | +We registered a `.com` domain in February 2026. Total cost: **22,926 sats + 23 sats fees** (~$14.50 USD at the time). Paid via the Alby CLI with an [LNCURL](https://lncurl.lol) wallet. The whole process took under a minute — no browser, no form. |
| 54 | + |
| 55 | +WHOIS privacy is enabled by default on every registration. There's nothing to opt into. |
| 56 | + |
| 57 | +## Managing DNS after registration |
| 58 | + |
| 59 | +Once you have the management token, DNS is just API calls: |
| 60 | + |
| 61 | +```bash |
| 62 | +# Set an A record |
| 63 | +curl -X POST https://api.unhuman.domains/api/domains/yourdomain.com/dns \ |
| 64 | + -H "Authorization: Bearer YOUR_MANAGEMENT_TOKEN" \ |
| 65 | + -H "Content-Type: application/json" \ |
| 66 | + -d '{"type": "A", "name": "@", "value": "YOUR_SERVER_IP", "ttl": 300}' |
| 67 | +``` |
| 68 | + |
| 69 | +No registrar dashboard, no clicking through DNS editors. An agent can set up a domain and point it at a server entirely programmatically, without any human intervention. |
| 70 | + |
| 71 | +## Supported TLDs |
| 72 | + |
| 73 | +unhuman.domains supports `.com`, `.net`, `.org`, `.io`, `.dev`, `.app`, `.xyz`, `.co`, and `.ai`. The `.ai` extension requires a minimum two-year registration; everything else defaults to one year. Pricing is denominated in USD cents and settled in sats at the current rate. |
| 74 | + |
| 75 | +## The full agent stack |
| 76 | + |
| 77 | +Combine unhuman.domains with the tools we've covered on this blog and you have an agent that can: |
| 78 | + |
| 79 | +- **Spin up a wallet** — one `curl` to [lncurl.lol](https://lncurl.lol), get an NWC connection string back |
| 80 | +- **Register a domain** — L402 payment via the Alby payments skill, no human needed |
| 81 | +- **Manage DNS** — bearer token API calls to point the domain wherever needed |
| 82 | +- **Pay for AI services** — same L402 pattern for inference, image generation, music |
| 83 | + |
| 84 | +All of it permissionless. All of it in sats. The [Alby Bitcoin Payments skill](https://lncurl.lol) gives your agent the knowledge to do all of the above: |
| 85 | + |
| 86 | +```bash |
| 87 | +npx skills add getAlby/payments-skill |
| 88 | +``` |
| 89 | + |
| 90 | +## Conclusion |
| 91 | + |
| 92 | +unhuman.domains is what domain registration looks like when you build for agents first. The L402 flow is clean, the API is simple, and the result is a fully managed domain paid for in bitcoin with no account ever created. As the agent economy grows, this is the kind of infrastructure it runs on. |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +## Get started |
| 97 | + |
| 98 | +Need a lightning wallet for your agent? Create one in one command — no sign-up, no KYC: |
| 99 | + |
| 100 | +```bash |
| 101 | +curl -X POST https://lncurl.lol |
| 102 | +``` |
| 103 | + |
| 104 | +You'll get back a Nostr Wallet Connect URI. Fund it with a few sats and your agent can pay for APIs, services, and tools autonomously. |
0 commit comments