# Pair a computer

Pairing links your computer to the phone with a key, once. There are no passwords, and only paired computers can deploy.

## Pair

Open Dukoi on the phone, then run this on a computer on the same Wi-Fi:

```sh
$ dukoi pair
Looking for phones on this Wi-Fi…
✓ Found a024 (Nothing A024, Android 16) at 192.168.0.112

  Code on your phone: 482 913
  Tap Approve on the phone if the codes match.

✓ Paired with a024

  Next: dukoi deploy in your app's folder
```

Check that the code on the phone matches the one in your terminal, then tap **Approve**. The matching code proves you’re talking to your phone and nobody else’s. If nobody approves within 2 minutes, run `pair` again.

## If it can’t find the phone

Check Dukoi is open on the phone and both are on the same Wi-Fi. Some routers block devices from finding each other. If yours does, pass the phone’s address. You’ll find it in the app.

```sh
$ dukoi pair --host 192.168.0.112
```

## More than one phone

Pair each phone the same way. Commands use the last phone you used, and `--device` picks another.

```sh
$ dukoi devices
NAME       MODEL           ADDRESS              PAIRED
●  a024       Nothing A024    192.168.0.112:7070   2026-11-11
   pixel-6    Pixel 6         192.168.0.140:7070   2026-11-10
```

To name a phone yourself, pair with `--name kitchen`.

## Unpair

`dukoi unpair a024` forgets the phone on this computer and asks the phone to forget the computer too.

> Lost a laptop?
> 
> Remove the computer in the Dukoi app on the phone. It can’t deploy or read logs after that.
