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

# Pairing links and this computer

> Open Mission Control straight onto a node's pairing code with a /pair link or the front panel QR code, and add a ground station running on the same computer with one button.

Two shortcuts skip typing in the **Add a node** dialog: a pairing link that carries a node's code, and a button that adds a ground station installed on the computer Mission Control runs on. For the full connection flow, see [Connecting](https://docs.altnautica.com/mission-control/connecting.md).

## The `/pair` link

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
https://<mission control>/pair?code=<CODE>&host=<lan host>
```

| Parameter | Meaning |
| - | - |
| `code` | The node's 6-character pairing code. Letters and digits only; Mission Control upper-cases it and drops anything else. |
| `host` | Optional. The node's LAN name, so Mission Control can reach it directly. |

Opening the link shows the code (and the device, when `host` is given) and opens the pairing dialog with the code filled in. Sign in if prompted; the dialog claims the code on your account. After a successful pair Mission Control goes to the dashboard with the new node.

The link is the only source of the code. Nothing is stored between visits, so a code is used once and never replayed into a later visit without one.

| Situation | What `/pair` does |
| - | - |
| A valid 6-character `code` | Opens the claim for that code. |
| No `code`, or not 6 characters | Opens the manual pairing form, with `host` filled in when given. |
| A build of Mission Control with no cloud backend | Cannot claim a code, so it hands `host` (or the code) to the **Add a node** field on the dashboard, which probes the node directly. |

### Where the link comes from

A node with a front panel display shows its pairing code as a QR code that encodes this link, so scanning it with a phone lands on the claim. The link points at `api.mission_control_url` from the node's config, or `https://command.altnautica.com` when that is empty. The node adds `host` when it knows its LAN name.

The code is also shown by `ados status` on the node, and you can type it into **Add a node** yourself.

## Use this computer as ground station

When the Ground Agent is installed on the same computer as Mission Control, it answers on `http://127.0.0.1:8080`. **Add a node** has a button for exactly that case: **Use this computer as ground station**. It probes the local agent and adds it.

* In the desktop app, or when Mission Control itself is served from this computer, Mission Control probes the local agent on its own when the dialog opens.
* On the hosted site it waits for the button, so the browser's private-network permission prompt follows your click, and a visitor with no local agent never sees it.

If nothing answers, the dialog shows the one-line install for a ground station on this computer:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -sSL https://raw.githubusercontent.com/altnautica/ADOSDroneAgent/main/scripts/install.sh | sudo bash -s -- --profile ground_station
```

A ground station installed this way answers only this computer until you share it.

## Related

> [card] [Connecting](https://docs.altnautica.com/mission-control/connecting.md)
>
> Every way to add a node.

> [card] [Drone Agent pairing](https://docs.altnautica.com/drone-agent/pairing.md)
>
> Pairing from the agent's side.


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