# Quick start for the owner

Add your first machine to CMDOP and see it online on your page.

**Preview.** Signed installers and self-service sign-up are not out yet: today the CMDOP team issues your contour and admits each new machine, and the program is installed from source.

**In short:** Sign in with your owner token at `https://app.cmdop.ai`, point the machine at
`wss://<contour>.cmdop.ai/ws/machine`, run `cmdop run`, and the machine shows online on your page.

## Before you start

- Your contour's address, `<contour>.cmdop.ai`, and your owner token. Keep the token like a
  password: it opens everything in your contour.
- A Mac or a Linux computer with the `cmdop` program. Windows is not supported.

## Steps

1. **Sign in.** Open `https://app.cmdop.ai`, paste your owner token. You land on your page at
   `https://<contour>.cmdop.ai`.
2. **Show the machine's key.** On the computer you add, run:

   ```bash
   cmdop key
   ```

   Send the key it prints to the CMDOP team, which admits the machine. The key is not a secret.
3. **Point the machine at your contour:**

   ```bash
   cmdop config set server wss://<contour>.cmdop.ai/ws/machine
   cmdop config set name <name>
   ```

   `name` is how the machine shows on your page; the default is the computer's host name.
4. **Start it:**

   ```bash
   cmdop run
   ```

   On a Mac the CMDOP app starts it for you at login.

## Check

Your page lists the machine as online. On the machine itself:

```bash
cmdop control status.get
```

answers with the link state `up` and the machine's name. Exit code `2` means the program is not
running.

## Next

- [Connect an agent](https://docs.cmdop.ai/start/quickstart-agent.md) to the machine.
- Decide what agents may do there: [the ceiling](https://docs.cmdop.ai/reference/config/ceiling-json.md).
