Skip to main content
Add Postgres or Redis to give your app persistent storage and caching. Your agent can manage addons through the Build API, or you can use the dashboard.

How addons work

An addon lives in an environment next to your services.
1

Create an addon

Choose a name and your service’s environment. Wait until the status is available: usually 30–60 seconds for Postgres or 10–20 seconds for Redis.
2

Connect your service

Add an explicit variable reference, such as "DATABASE_URL": "${{db.DATABASE_URL}}". Only services that reference an addon receive its connection variables.
3

Redeploy

Redeploy the service to load the connection values.

Available addons

Each addon costs $1.50/month from workspace credits, or $0.25/month for workspaces that pay with x402 on Polygon. See variables and connections for templates, and the addon reference for queries and migrations.

Custom domains

Every service already has a public HTTPS URL. For your own address, bring a domain you own or buy one through Locus, with SSL included. See custom domains.

Next steps

Variables and connections

Reference addons from your services.

Custom domains

Put your app on its own domain.