# Addresses and custom domains

> The free sypnia.app address, your own domain through Sypnia Domains or any DNS, and certificates.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://run.docs.sypnia.com/config/addresses-and-domains/

For agents: Run addresses: free https://<app>.sypnia.app in Cloud (unique name, never under sypnia.com so deployed code cannot read Sypnia account cookies); custom domains via Sypnia Domains (automatic), Route 53 in engine account (automatic), or any DNS (CNAME/ALIAS + TXT ownership proof); ACM certificates auto-renew; one domain per app; apex/www redirect; domains attached per environment.

## The free address **\[Cloud]**

Every app in Sypnia Cloud answers at `https://<app>.sypnia.app`, with a certificate, from its first deploy. The name is unique across Sypnia; if it is taken, the CLI suggests another.

Apps are served from `sypnia.app` and never from `sypnia.com`, so code you deploy can never read the cookies of your Sypnia account.

## Your own domain

| Your domain is                                    | What you do                                                                                                           |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| in [Sypnia Domains](https://domains.sypnia.com)   | `run domains add laespiga.co`: records and certificate are set for you                                                |
| in Route 53 in the engine's account **\[Engine]** | the same command writes the records                                                                                   |
| anywhere else                                     | add the records the command prints: a `CNAME` (or an `ALIAS` at the apex) and a `TXT` that proves the domain is yours |

The certificate comes from AWS Certificate Manager and renews itself while the records are in place. A domain attached to one app cannot be attached to another until it is removed.

## Apex and www

`run domains add laespiga.co --redirect www` serves the app at `laespiga.co` and redirects `www.laespiga.co` to it (or the reverse).

## Domains per environment

A domain belongs to an environment: `www.laespiga.co` to production, `staging.laespiga.co` to `staging`. Preview wildcards are described in [Previews](https://run.docs.sypnia.com/deploys/previews).
