Custom domains
Serve your project's main version at a domain you own: enter the address, add the two records it shows at your DNS provider, and Agent Lab does the rest.
Connect a domain in one step#
Open the project's Domains tab and enter the address you want, such as www.example.com or example.com. Agent Lab shows every record to add at once:
| Record | Name | Value | What it does |
|---|---|---|---|
| TXT | _agentlab-verify.example.com | agentlab-verify= and your organization's token | Proves the domain is yours |
| CNAME for a subdomain | www.example.com | cname.agentlab.run | Points the address to your project |
| A for an apex | example.com | The IPv4 address shown in the console | Points the address to your project |
You add the proof and the one pointing record that fits your address. Open the DNS settings at the company where you bought the domain, add both records in one visit. You don't need to come back or press a button afterwards. Agent Lab checks the records every minute for the first hour, then hourly for 14 days. Once the domain is proved yours and the address points to the project, the address is connected and HTTPS is prepared automatically. The Domains tab shows the three steps (domain proved yours, address points here, HTTPS ready) as they complete.
The proof is for the domain you bought (example.com for www.example.com), so the next address under it, such as shop.example.com, only needs its pointing record. Some DNS providers want only the part of the name before your domain (www, _agentlab-verify). Entering the same address again shows the same records.
Custom domains are available on paid plans. Your organization's allowance is its effective static-site limit plus web-service limit; each project accepts at most 50 domains. A downgrade keeps existing domains but can prevent new additions.
Verify your domain#
Connecting a domain in one step verifies it for you, but you can also verify a domain on its own, before any project uses it. A domain is verified once for the whole workspace; after that every project can use it and its subdomains. Workspace owners and admins verify domains in Deploy settings → Domain ownership, or with Add a domain… in a project's Add custom domain dialog. Other members ask one of them.
Enter the domain you own, such as example.com, choose Add and verify, and publish the TXT record the console shows:
| Record | Name | Value |
|---|---|---|
| TXT | _agentlab-verify.example.com | agentlab-verify= and your organization's token |
No pointing record is needed for this step. Agent Lab checks the record by itself, every minute for the first hour and then hourly for 14 days; to check right away, choose Check ownership.
Keep the TXT record. It is checked again whenever a hostname under the domain is added to a project, and when a hostname is verified again; without it, both are refused until the record is back.
Add a hostname to a project#
Open Project → Settings → Domains, choose Add custom domain, pick the verified domain and enter a subdomain, or leave it empty to use the domain itself. Custom domains are available on paid plans. Your organization's allowance is its effective static-site limit plus web-service limit; each project accepts at most 50 domains. A downgrade keeps existing domains but can prevent new additions.
Only the pointing record is per hostname. Publish it exactly as shown:
| Record | Points to |
|---|---|
| CNAME for a subdomain | cname.agentlab.run |
| A for an apex | The IPv4 address shown in the console |
Do not put a CNAME at your zone's apex. Remove conflicting records; IPv6 is not supported. On staging the CNAME target is cname.staging.cresclab.site.
Choose Check DNS after DNS has propagated: the pointing record and the workspace's TXT record must both match. A hostname still waiting after 14 days expires. A hostname can belong to only one project in an organization; remove it before adding it to another project.
HTTPS and the main version#
Verification starts certificate issuance. Issuing certificate means HTTPS is being prepared; Active means the origin certificate has been checked successfully. The domain follows main, including promotions, password protection and usage limits. It does not serve staging.
Keep both the pointing record and the TXT record. Seven consecutive days of an observed pointing mismatch change the hostname to DNS pointing lost; restore the pointing record and choose Check DNS again. Removing a hostname from a project stops serving it and stops certificate renewal; the workspace's domain ownership is kept.
Cloudflare and CAA#
With Cloudflare, choose DNS only (gray cloud) while verifying and preparing HTTPS. If your DNS has CAA records, permit letsencrypt.org or pki.goog; these are the two supported certificate authorities. An existing CAA policy that permits neither prevents issuance.
Troubleshooting#
- Ownership not verified yet: check the TXT record at
_agentlab-verify.<your domain>at the authoritative DNS provider, wait for propagation, and choose Check ownership again. - Waiting for DNS: check both the hostname's pointing record and the workspace's TXT record, and wait for propagation.
- DNS pointing lost: restore the pointing record shown for the hostname. If the TXT record was removed, restore it too: checking again needs both.
- CAA refuses: update the CAA policy to permit one of the supported authorities.
- Origin TLS unavailable: the direct origin handshake has not succeeded. Check DNS and CAA diagnostics separately; this message does not identify a CA rate limit or a Cloudflare certificate failure.
- Domain taken: another project has verified the hostname. Remove the existing binding before moving it.
The MCP tools are sites_domains_connect, sites_domains_add, sites_domains_list, sites_domains_verify and sites_domains_remove. They take a project, without an environment. sites_domains_connect is the one-step flow above: it answers both records and a sentence for the assistant to relay, and the platform checks them in the background. sites_domains_add adds a hostname under a domain the workspace has already verified. sites_domains_list and sites_domains_verify say what each domain is still missing: the proof that the domain is yours, the address pointing to the project, or HTTPS.