> For the complete documentation index, see [llms.txt](https://docs.alpha-security.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alpha-security.app/getting-started/first-admin.md).

# First Admin Setup

After starting Alpha for the first time, you need to create an admin operator account.

## Using the CLI

If you're running with Docker Compose:

```bash
docker compose -f docker-compose.prod.yml exec server \
  node dist/main.js cli create-admin \
  --email admin@yourfirm.com \
  --password YourSecurePassword
```

If you're running the server directly:

```bash
cd server
pnpm cli create-admin --email admin@yourfirm.com --password YourSecurePassword
```

The `create-admin` command creates a new operator with the `admin` role. If the email already exists, it resets the password.

## First login

Open the web UI and log in with the email and password you just set. You'll see the engagement list (empty at first).

## Adding more operators

Admins can add operators through the web UI: go to **Admin** in the sidebar and use the operator management panel. Each operator gets their own login and can be assigned a role:

* **admin** can manage operators, create engagements, and access everything
* **operator** can work on engagements they're assigned to
* **read\_only** can view engagement data but cannot modify anything


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.alpha-security.app/getting-started/first-admin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
