Domains
Bind a domain you own to a Ferrite application. Publish the ownership TXT record, verify the claim, and check HTTPS.
After a successful deploy, open the generated URL on the host: line of the deploy receipt. To look it up later, run ferrite host from the project directory. Before the first deploy, the CLI labels the predicted address derived. After the platform reports a host, the CLI labels it confirmed.
To use a domain you own, such as shop.example.com, claim the name, publish its DNS records, verify ownership and bind it to the app. Ferrite obtains and renews the HTTPS certificate. For a name in Ferrite’s own zone, see Free names.
With the CLI
For a domain you own, claim, verify, and bind it from the app's project directory (or pass --app):
ferrite domains add shop.example.com
For an account-suffixed free name under ferrite.run, ask the CLI for your account's address first, then add it:
ferrite domains suggest my-shop
ferrite domains add my-shop-<account-tag>.ferrite.run
ferrite domains add saves the one-time verification token locally, prints the DNS records needed for an external domain, and is safe to rerun once those records propagate. After verification and binding, check public DNS and HTTPS reachability:
ferrite domains check shop.example.com
check queries public DNS and requests https://shop.example.com/. Run ferrite domains list to inspect every hostname your account holds. See CLI commands for all flags.
In the Dashboard
For a domain you own, open Domains, enter the hostname, and click Claim domain. The Dashboard shows the one-time claim token. Save it. If the page displays an ownership record starting with _ferrite-challenge, use the TXT name and value in the table below. Once the record resolves publicly, verify the domain and bind it to the application.
With MCP
Use these steps for a domain whose DNS you control.
- Call
claim_domain {domain}. It returnsDomainClaimed {domain, verify_token}. Save the one-timeverify_token. If you lose it, let the unverified claim expire 24 hours after it was created. Claim the name again and publish the new token. Verified claims do not expire on that timer. - Publish the records below. For the ownership TXT record, prefix the token with
ferrite-verify=. Check that public DNS returns the complete value, for example withdig +short TXT _ferrite-verify.shop.example.com. - Call
verify_domain {domain, presented_token}. Pass the original token alone aspresented_token. Wait forDomainVerified {verified: true}. - Call
bind_domain {domain, app}. Once it returnsDomainBound {domain, app}, openhttps://<domain>/and confirm the application answers.
Call list_domains {} to list your account's hostnames alongside their verification status and bound applications.
The DNS records
For a domain you own, publish these records at your DNS provider. Replace shop.example.com with your hostname, and replace ferrite.cloud with your installation's base domain if different.
| Name | Type | Value | Purpose |
|---|---|---|---|
shop.example.com | CNAME | ferrite.cloud | Routes traffic for the hostname to Ferrite. |
_acme-challenge.shop.example.com | CNAME | _acme-challenge.shop.example.com.acme.ferrite.cloud | Delegates DNS-01 certificate issuance and renewal to Ferrite. |
_ferrite-verify.shop.example.com | TXT | ferrite-verify=<verify_token> | Proves ownership of the hostname. |
The _acme-challenge record delegates only the certificate authority's DNS-01 challenge into Ferrite's own zone, so Ferrite never needs write access to your DNS. Within roughly ten minutes after both CNAME records resolve, Ferrite issues the HTTPS certificate and https://shop.example.com/ begins serving your application. If a record is missing on the first attempt, Ferrite retries one hour later. Set a TTL of 300 seconds or lower during initial setup so typos expire quickly.
A domain's apex
Standard DNS forbids a CNAME record at the zone apex (example.com). Point an ALIAS, ANAME, or flattened CNAME record at ferrite.cloud (supported by Cloudflare, DNSimple, Netlify DNS, and most managed DNS providers). If your provider does not support apex aliasing, serve the application on www.example.com with a CNAME and redirect the bare domain at your provider. The _acme-challenge record sits on a subdomain, so it is always a standard CNAME.
Direct A records pointing to the platform's current IP addresses also route traffic, but those addresses can change on a platform release. Prefer aliasing or a www redirect.
Free names
Bare vanity names under ferrite.run (such as shop.ferrite.run) are reserved. Durable accounts can claim an account-suffixed name of the form <slug>-<account_tag>.ferrite.run, subject to reserved-term, brand, punycode, and quota checks. If you are using an unclaimed trial, claim it into a durable account first.
With the CLI, run ferrite domains suggest <slug> to print your account's suffixed hostname, then run ferrite domains add <slug>-<account_tag>.ferrite.run to claim, verify, and bind it in one step.
Over MCP, call claim_domain {domain} with <slug>-<account_tag>.ferrite.run, save the returned verify_token, and pass it unchanged to verify_domain {domain, presented_token} within 24 hours. Eligible account-suffixed names verify against the durable account reservation without a DNS TXT record. Once verification succeeds, call bind_domain {domain, app} and open the HTTPS address.
What to know before you announce a name
- Hostname claims are first come, first served across the entire installation. While a claim is active,
claim_domainreturnsdomain already claimedto every other account. If a domain you own is already claimed, contact the Ferrite team (Get help from the Ferrite team). - There is no API to release a claim or delete a binding, and withdrawing the application leaves its binding in place. Rebind the hostname to another app in your account to move it.
bind_domainandlist_domainsconfirm the stored binding. They do not verify live DNS routing or certificate readiness. Hit the URL directly or runferrite domains checkbefore sharing the address.ferrite deployrebinds every domain attached to the application after each deploy and reports any failure. Clients deploying over MCP alone should test each domain after a deploy and callbind_domainagain if the route dropped.
Choose one canonical host
Binding a custom or free domain does not retire the application's generated platform host; the application answers at both addresses. Choose one canonical origin and emit it everywhere an absolute URL appears.
Authentication breaks when users bounce between two hosts. The auth package sets a __Host- cookie that browsers return only to the exact host that issued it, and it builds callback URLs from the single origin stored in auth_public_origin. A user signed in on one host is logged out on the other. Passkeys registered on one hostname fail on another as well. Give each separate sign-in configuration its own host instead of mounting two sign-in setups under different paths of one host. See Authentication.
Generate your sitemap, llms.txt, OpenAPI specification, agent card, and MCP endpoint URLs from the canonical origin so crawlers and assistants index one address. Production discovery documents must never expose a preview host. See Agent-ready apps and Headers & Cookies.