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

# Quickstart

> Install OASM with Docker on your own machine and see the attack surface of a domain you own — from zero to first results in about ten minutes

In this tutorial you install OASM on your own machine, create your account and workspace, add a domain, and watch OASM discover what sits behind it. At the end you will have a real inventory of hosts, open ports, web services and screenshots — and, if you want, your first vulnerability findings.

**Time:** about 10 minutes, plus a few minutes of scanning. **You need:** a terminal and a browser.

## Before you start

**1. Docker**

Docker Engine 24 or newer with Docker Compose v2 (Docker Desktop on macOS and Windows). Check with `docker compose version`.

**2. A machine with room to scan**

At least 4 CPU cores, 4 GB of RAM (8 GB recommended) and 20 GB of free disk.

**3. A domain you are allowed to scan**

A domain you own, or one you have written permission to test. OASM will actively probe everything it finds under it.

> [!WARNING]
>
> Scanning systems you do not own or have no permission to test can be illegal. If you only want to try OASM, use a domain of your own.

## Download OASM

The [oasm-docker](https://github.com/oasm-platform/oasm-docker) repository contains everything needed to run the whole platform with Docker Compose.

```bash theme={null}
git clone https://github.com/oasm-platform/oasm-docker.git
cd oasm-docker
cp .env.example .env
```

## Generate your secrets

OASM refuses to start with default secrets. Generate three random values and put them in `.env`:

```bash theme={null}
openssl rand -base64 32   # → ENCRYPTION_KEYS
openssl rand -base64 32   # → BETTER_AUTH_SECRET
openssl rand -base64 32   # → OASM_CLOUD_APIKEY
```

| Variable | What it protects |
| - | - |
| `ENCRYPTION_KEYS` | Encrypts the credentials OASM stores. Back it up: losing it loses them. |
| `BETTER_AUTH_SECRET` | Signs login sessions and email verification links. |
| `OASM_CLOUD_APIKEY` | Lets the bundled scan workers join the platform. |

Leave `BASE_URL` empty while you run OASM on `localhost`.

## Start the platform

```bash theme={null}
make
```

`make` pulls the images and starts every service: the web console, the core API, three scan workers, PostgreSQL, Redis, object storage and a geo-IP service. Without `make`, run `docker compose pull && docker compose up -d`; on native Linux, first set `DOCKER_GID` in `.env` to the output of `stat -c '%g' /var/run/docker.sock`.

When the containers are up, check that the API is ready:

```bash theme={null}
curl -f http://localhost:6276/api/health
```

> [!TIP]
>
> The command returns a healthy response. The first start can take a minute while the database is prepared.

## Create your admin account

Open [http://localhost:6276/init-admin](http://localhost:6276/init-admin). The **Create your first admin** form appears only once, on a fresh installation.

1. Enter your email address and a password of at least 8 characters, confirm the password, and click **Create account**.
2. OASM takes you to the sign-in page. Sign in with the same email address and password.

> [!TIP]
>
> You are signed in as the platform administrator.

## Create your workspace

A **workspace** holds everything you scan and find, and the people who work on it. OASM asks you to create the first one straight after you sign in. Keep the suggested name or type your own, then click **Create workspace**.

> [!TIP]
>
> The **Start discovery** page opens.

## Add your domain and start discovery

On the **Start discovery** page, choose **Root domain**, enter your domain — for example `example.com` — and click **Start Discovery**.

That is all you have to do. Adding a domain **target** starts OASM's built-in *domain discovery* workflow on its own. The bundled workers then run four tools, each one working on what the previous one found:

```mermaid theme={null}
flowchart LR
    A["Subdomains<br/>subfinder"] --> B["Open ports<br/>naabu"]
    B --> C["Live web services<br/>httpx"]
    C --> D["Screenshots"]
```

> [!TIP]
>
> The target page opens and shows **Discovering assets...** while the first discovery runs.

## Watch the scan

Open **Jobs Registry** in the sidebar to see every tool execution: each job waits for a free worker, runs, and finishes as completed or failed. A small domain usually finishes within a few minutes; a large one with hundreds of subdomains takes longer.

![The Jobs Registry page listing tool executions of a discovery run with their tool, target, status and duration](https://mintcdn.com/oasmplatform/JcAER2Ib37AN8_8A/images/screens/jobs.webp?fit=max\&auto=format\&n=JcAER2Ib37AN8_8A\&q=85\&s=8453c1571d0953a5778d5617b9b6cbc3)

## Explore what OASM found

When the run is finished, open **Assets**. Every row is a web service OASM found, with its host, port, title, status code, technologies, TLS certificate and a screenshot. The tabs above the list pivot the same inventory by host, port, IP address, technology or certificate, and **Graph** shows how it all connects.

![The Assets page grouped by technology, listing detected technologies with the number of services that run each one](https://mintcdn.com/oasmplatform/JcAER2Ib37AN8_8A/images/screens/assets-tech.webp?fit=max\&auto=format\&n=JcAER2Ib37AN8_8A\&q=85\&s=e3cb53d175ae0e9a614dfb8333861d70)

Then open **Dashboard** for the overview of your attack surface: hosts, exposed ports, technologies, certificates and, once you have findings, your security score.

## Find your first vulnerabilities (optional)

Discovery maps what you expose; it does not attack it. To check the services for known vulnerabilities, open your target, go to the **Vulnerabilities** tab and click **Fast scan**. OASM runs Nuclei against every live web service it found.

> [!TIP]
>
> Findings appear in the target's **Vulnerabilities** tab and on the **Vulnerabilities** page, each with its severity and the evidence the scanner saw.

## What you just did

In ten minutes you went through the core loop of OASM:

| You did | In OASM terms |
| - | - |
| Added `example.com` | Created a **target**, the scope you are responsible for |
| Watched the scan start on its own | A **workflow** started **jobs**, and **workers** ran the tools |
| Opened Assets | Results were merged into your **inventory** of assets and services |
| Ran Fast scan | A scanner produced **vulnerabilities**, tracked from now on |

[How OASM works](https://docs.oasm.io/concepts.md) follows the same journey and explains what happens at each stage, and what comes after it.

## Troubleshooting

> [accordion] A container keeps restarting
>
> Run `docker compose logs core-api`. The most common cause is a missing or default secret: check that `ENCRYPTION_KEYS`, `BETTER_AUTH_SECRET` and `OASM_CLOUD_APIKEY` are set to random values of at least 32 characters, then run `make` again.

> [accordion] Jobs stay waiting and never run
>
> Open **Workers**: the bundled workers should be connected. If they are not, run `docker compose logs oasm-worker`. A `permission denied` error on the Docker socket means `DOCKER_GID` does not match the group of `/var/run/docker.sock` on your host.

> [accordion] The scan finished but found almost nothing
>
> Discovery only finds what is publicly reachable. A domain without public subdomains or open web ports yields a small inventory — that is a good result. Check the job list for failed jobs, and see [Targets](https://docs.oasm.io/target.md) for what each target type discovers.

> [accordion] I can't open /init-admin
>
> The page is only available until the first admin exists. If an admin was already created, sign in at [http://localhost:6276/login](http://localhost:6276/login) instead.

## Next steps

> [card] [Understand how it works](https://docs.oasm.io/concepts.md)
>
> The mental model behind what you just saw.

> [card] [Keep it scanned](https://docs.oasm.io/project.md)
>
> Create a project to rescan your assets on a schedule.

> [card] [Invite your team](https://docs.oasm.io/members.md)
>
> Add members and give them the right permissions.

> [card] [Get alerted](https://docs.oasm.io/integrations/overview.md)
>
> Send new assets and findings to Slack, Telegram or a webhook.

> [card] [Ask the AI agent](https://docs.oasm.io/ai-studio/overview.md)
>
> Connect a model and ask questions about your attack surface.

> [card] [Go to production](https://docs.oasm.io/deployment.md)
>
> Public URL, secrets, backups, scaling and upgrades.


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