# Customization

## Plans

Update instance limits in `.env`:

```bash
FREE_PLAN_INSTANCE_LIMIT=1
PRO_PLAN_INSTANCE_LIMIT=3
SCALE_PLAN_INSTANCE_LIMIT=10
```

Update Stripe price IDs with your real recurring prices.

## Domains

Set `APP_ROOT_DOMAIN=yourdomain.com`. A customer instance named `Sales Agent` becomes a slug such as:

```text
sales-agent-ab123.yourdomain.com
```

Make sure wildcard DNS points to your Dokploy/Traefik server:

```text
*.yourdomain.com A your-server-ip
```

## Hermes Docker Image

Change the image without touching code:

```bash
HERMES_IMAGE=your-registry/hermes:latest
HERMES_INTERNAL_PORT=8080
```

## Dokploy API Shape

If Dokploy changes its API, edit only `src/lib/dokploy.ts`. The rest of the app expects:

- create instance
- deploy instance
- start instance
- stop instance
