> ## Documentation Index
> Fetch the complete documentation index at: https://docs.backtale.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Create the first admin, accept the EULA, and load the license

> Open /setup with AUTH_SETUP_TOKEN, create the first admin, accept the current EULA, and load backtale-license.json.

The first boot of a Backtale release image migrates the database, then waits for an admin, the end-user license agreement, and the signed license file. Changing data stays read-only until that license is loaded. License verification itself is offline. The app does not call Backtale to decide whether the file is valid.

`AUTH_MODE=profile` and `AUTH_PROFILE=local` are what a generated install uses. Without `APP_BASE_URL` set to the public `https://` address, that profile refuses to start.

## Open setup

**1. Open /setup and type the setup secret**

Go to `https://<your-host>/setup`. The page asks you to type `AUTH_SETUP_TOKEN`. It is not a registry password.

On Terraform, print it once:

```bash theme={null}
terraform output -raw auth_setup_token
```

On Compose, it is the `AUTH_SETUP_TOKEN` line in `.env`.

The page answers 404 once an admin exists, or when Backtale accounts are off. An owner link from `backtale admin create-owner-link` is a different path: the secret is in the URL fragment (`/setup#t=...`), and the page removes it from the address bar.

**2. Create the first admin**

Enter the admin name, email, and password. Backtale then requires a second step for that admin. You cannot skip it. After that, the wizard continues at `/setup/wizard`.

**3. Accept the EULA**

The wizard loads the current agreement from `https://license.backtale.app/api/eula/current` unless you set `EULA_FEED_URL`. That request is anonymous JSON over HTTPS. It does not use your license file or any Backtale password. Do not set `EULA_FEED_DISABLED=1`.

The app also needs HTTPS egress to your AI provider and to your source-control and tracker hosts.

**4. Load the license file**

Load `backtale-license.json` in the wizard, or later under Administration, License. From a console in the container:

```bash theme={null}
backtale license load backtale-license.json
backtale license status
backtale doctor
```

Terraform does not mount this file. Upload it after apply.

**5. Remove the setup secret**

Delete `AUTH_SETUP_TOKEN` from the environment, Container App secrets, SSM parameter, or Secret Manager binding. Restart or create a new revision so the process no longer has it. `backtale doctor` reminds you while it is still set.

Configure the AI provider, source control, and tracker in Settings after the wizard. Mail uses `SMTP_URL` and `EMAIL_FROM` when you are ready to send invites.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.