How pairing works
1
The installer prints a link and a code
0 or 1.2
Open the link on any device
Use the same machine, a laptop, or a phone. Sign in to Alike first. If you are not signed in, the link opens the Alike home page instead. If you have not finished setup in the web app, the link opens your setup page. In both cases, see Enter the code by hand.
3
Approve the code
Check that the code on the page is the code in your terminal. Then approve it.
4
The installer continues
The installer saves the machine’s credential to
~/.alike/credentials.json. Only your user account can read this file. The installer never prints the credential.Enter the code by hand
You can also type the code in the web app:- During setup: on the Connect your agents page, under Enter your pairing code.
- Later: in Settings → AI Agents.
<hostname> paired — your agents are wired to this workspace. If the code does not work, it shows That code is invalid or has expired. Ask your installer for a fresh code and try again.
Time limits
A code is valid for 10 minutes. The installer also stops waiting after 10 minutes. After that, you see one of these messages:pairing timed out (10m)pairing code expired
If you close the browser or stop the installer
Nothing is lost. The installer wires your agents before it pairs, so a pairing problem never removes the wiring. Runnpx @alikeai/setup --doctor to finish pairing.
Headless machines and SSH
The installer does not open a browser. Open the printed link on another device and approve the code there. The code works from any device where you can sign in.Pair more than one machine
Run the installer on each machine. Each machine gets its own credential. Check a machine’s hostname withhostname.
Switch to a different Alike account
The installer always reuses a credential that still works. To pair the machine with a different account:- Delete the credential:
rm ~/.alike/credentials.json - Run the installer again:
npx @alikeai/setup - Sign in to the other account in your browser before you approve the code.
When pairing happens again
Remove a machine from your account
You cannot remove a single machine from the Alike web app yet. To stop a machine from sending data, run the uninstaller on that machine. It deletes the machine’s credential file. See Uninstall. The uninstaller does not cancel the credential on Alike’s side. If you think a copy of~/.alike/credentials.json was taken, or you do not have access to the machine anymore, contact support@alike.work.