# Configure your app

After deployment, check your email sender, decide whether to enable payments, and make the app's identity match your product. `adios kit deploy` already creates the database connections and stores their credentials in Adios secrets.

## Set up account emails

The app uses Resend for verification, password reset, and invitation emails. Set up the sender before your first hosted deployment.

1. Add a domain you control in Resend. Add the sending records Resend gives you at your DNS provider and wait for the domain to verify. See [Verified domains](https://resend.com/docs/dashboard/domains/introduction).
2. Choose a From address on that domain, such as `hello@updates.your-domain.example`. Create a Resend API key with Sending access for that domain. See [Manage API keys](https://resend.com/docs/dashboard/api-keys/introduction).
3. At the installer prompts, enter the From address, then paste the key when asked. The key does not appear as you type. Wait for the app URL, then create an account and check that the verification email arrives.

`adios kit deploy` asks for these on the first run and reuses the saved settings later. To change the sender, redeploy with an explicit address:

```sh
adios kit deploy --name my-saas --email-from 'hello@your-domain.example'
```

Replace the example with your verified address. To replace the API key, supply `RESEND_API_KEY` through your shell's secret injection or secret manager when running the same deployment command. The command stores it in Adios secrets. Do not paste keys into source files or an AI conversation.

Create a test account and check that its verification email arrives with the right sender. If it does not, use [Troubleshooting](operations.md#troubleshooting).

## Set up billing

The current CRM supports a free plan and one paid Pro plan using a recurring Stripe price. You can leave payments unconfigured while building the app.

1. In a Stripe testing environment, create a product with a recurring price and copy the price ID. See [Stripe testing](https://docs.stripe.com/testing).
2. Add a webhook destination for the URL printed by deployment. Select the subscription events and API version in the [billing reference](crm-runtime.md#stripe-setup). Copy that destination’s signing secret. See [Stripe webhooks](https://docs.stripe.com/webhooks).
3. Configure the customer portal in the same testing environment.
4. Have these three values ready.

| Setting | Value to supply |
| --- | --- |
| `STRIPE_SECRET_KEY` | Your Stripe test secret key |
| `STRIPE_PRICE_ID` | The recurring price ID |
| `STRIPE_WEBHOOK_SECRET` | The signing secret for your app's webhook endpoint |

From the kit folder, use the following command to enter the values at prompts and redeploy the same installation. The two secrets are hidden as you type. The settings are passed only to this deployment process.

```sh
bash -c '
  set -e
  read -r -p "Stripe recurring price ID: " STRIPE_PRICE_ID
  read -r -s -p "Stripe test secret key: " STRIPE_SECRET_KEY; printf "\n"
  read -r -s -p "Webhook signing secret: " STRIPE_WEBHOOK_SECRET; printf "\n"
  export STRIPE_PRICE_ID STRIPE_SECRET_KEY STRIPE_WEBHOOK_SECRET
  exec adios kit deploy --name my-saas
'
```

The command stores the keys in Adios secrets. It does not create Stripe products, prices, or webhooks for you. Follow [the billing checks](verification.md#check-billing-if-your-app-charges-customers) before switching to live payment settings.

The free plan currently allows 25 contacts and 10 deals per workspace. Pro removes those limits. To change the plan rules or add more plans, use [Customize your product](customization.md); editing a displayed price alone does not change billing behavior.

## Change the product name and design

Your public landing page is in `site/`; customer screens are in `web/app/`. Branding is edited in these files rather than through an admin settings screen. Follow [Customize your product](customization.md) for file locations and a small first change you can give to your agent.

The existing white and dark themes are shared across the site and app. Check both after changing colors or adding screens.

## Application settings

These values are useful when running locally or extending deployment. The installer sets the hosted origin, production mode, service connections, and provider settings for you. It does not automatically read `.env`.

| Variable | Purpose |
| --- | --- |
| `APP_ORIGIN` | The app's exact public origin, used for links and request checks |
| `NODE_ENV` | `production` on Adios; `development` locally |
| `PORT` | Application port; defaults to `8080` |
| `DATABASE_URL` | Connection for ordinary customer records |
| `AUTH_DATABASE_URL` | Separate connection for accounts and team membership |
| `BILLING_DATABASE_URL` | Separate connection for billing updates |
| `MAIL_MODE` | `resend` when deployed; `outbox` for local testing |
| `RESEND_API_KEY` | Email-provider secret |
| `EMAIL_FROM` | Verified sender address |

For local settings, copy `.env.example` to a private `.env` and follow [local development](local-development.md). `KIT_DATABASE_URL` is for database administration only; never use it as an application connection. Details are in [Database setup and reference](database.md).

## Use your own domain

Start with the assigned Adios URL. After the test app is running, [verify your hostname in Adios](https://adios.dev/docs/routing) and route it to that same app in the dashboard. Open the custom hostname and check that HTTPS reaches your landing page. Then run this from your original kit folder using the CLI preview build:

```sh
adios kit deploy --name my-saas --domain app.your-domain.example
```

The installer checks that the verified hostname is already routed to this app and uses it for `APP_ORIGIN`. It saves the choice in the installation receipt, so the ordinary update command keeps it. Future updates print the custom URL. Check signup and verification email at that address. If billing is configured, update your existing Stripe destination to the new webhook URL and retest checkout and the webhook before accepting payments.

Keep the assigned URL for initial testing. Verify the custom-domain update on a test installation before using it with customers.

## Add integrations when you need them

Analytics, configurable legal pages, file storage flows, and managed agents require implementation. There are no environment switches that automatically add them. Check [What's included](roadmap.md), then use the [AI development workflow](agents.md) to build one integration at a time.

Next: [Build with AI](agents.md).
