Pair a host without SSH
On a machine without an SSH server, or when you want a device to reach one project and nothing
else, start the headless backend there with ferris-idea serve --pair and pair your window with it
once. After that the window opens the project as paired:// with the same editing, search, Git,
terminals and runs as over SSH. Paired hosts are In progress: the pairing and the
channel are tested end to end on one machine; a run between two machines over a real network and
the window’s pairing dialog are still to be checked.
- serve --pairThe host prints its address, key fingerprint and a 10-character code, valid for 5 minutes and one device.
- HandshakeThe window or device connects with the code: a Noise handshake combined with ML-KEM-1024.If not: A wrong code, three failed handshakes or 5 minutes close the pairing window.
- Six digitsBoth sides show six digits derived from the handshake. You compare them.If not: Different digits or a No on either side: nothing is stored.
- RightsThe host asks which rights the device gets; view is the default.
- Pinned keysEach side keeps the other's public key. Later connections need no code.
Start the backend on the host
Section titled “Start the backend on the host”The program on the host is ferris-idea or the headless ferris-idea-serve, which has no window
toolkit (both take the same arguments). A paired backend serves exactly one project folder:
ferris-idea serve ~/Projects/demo-shop --pairferris-idea-serve serve ~/Projects/demo-shop --pairTried with a debug build of v1.6.0 on macOS, 2026-12-04; loopback only.
It answers with three lines:
ferris-idea serve: listening on 127.0.0.1:47100; only paired devices can connectkey fingerprint ef7f4f90b4fa4c38 (key stored in …)Pair a device within 5 minutes: enter address 127.0.0.1:47100 and code <code> in the window- Loopback by default. Without options it listens on
127.0.0.1:47100, reachable only from the same machine (or through SSH, below). For another machine on your network give--listen 192.168.1.20:47100 --allow-network; the start line then says that the listener is reachable from the network. There is no discovery: the address is always typed or scanned. - Only paired devices. The listener accepts nothing but the pairing handshake while the pairing window is open, and handshakes from pinned keys. Plain HTTP, JSON or an SSH banner get no byte in reply.
--new-deviceopens a pairing window when devices are already paired.--grant edit,runsets the new device’s rights without asking.--qrshows a QR code and a pairing link instead of a short code.
Pair a window and open the project
Section titled “Pair a window and open the project”- In your window choose File › Remote Development… and type
paired://192.168.1.20:47100#<code> ~/Projects/demo-shop: the address,#and the code, a space, and the project folder on the host. The code is used for the handshake and never stored or shown in a title or the recent list. - The window shows six digits. The host’s console shows Device <name> (<fingerprint>) wants to pair. Digits: …. Confirm on both sides only if the digits are the same.
- On the host, answer which rights the device gets (below). The window pins the host only after the host has stored the device, so the project opens right away.
Later, open paired://192.168.1.20:47100 ~/Projects/demo-shop without a code. Ferris IDEA connects
only with the key pinned at pairing; a different key is reported as a changed host key.
Pair from a command line
Section titled “Pair from a command line”ferris-idea device is the device side without a window, for scripts and checks. It asks for the
digits on its terminal; with no terminal the pairing is declined.
$ ferris-idea device pair 127.0.0.1:47100 --code <code>Host key ef7f4f90b4fa4c38. Digits: 845377Do these digits match the ones on the host? [y/N] ypaired, host key ef7f4f90b4fa4c38$ ferris-idea device call 127.0.0.1:47100 ~/Projects/demo-shop device.whoami{"name":"Ada","fingerprint":"15d97a2ef3bb44c0","rights":["view","edit","run"]}ferris-idea device hosts lists the pinned hosts, forget <address> removes a pin, and
pair <link> takes the link of serve --qr, checking that the host’s key equals the one in the
link before it shows any digits. The device’s name comes from the HOSTNAME variable.
Reach a paired host through SSH
Section titled “Reach a paired host through SSH”When the host has SSH but the listener should stay on its loopback address, write
paired://<alias>:<port>@ssh, with the listener’s port (47100 by default). The window runs
ssh -W 127.0.0.1:<port> <alias> with all the rules of SSH connections
and opens no local port. The paired channel runs end to end inside the SSH pipe, so the SSH server
sees only ciphertext. ferris-idea device add-path
copies an existing pin to such a second path without new digits.
Choose what a device may do
Section titled “Choose what a device may do”A paired device gets only view unless you add rights at the prompt or with --grant. A session
on the paired channel has exactly its device’s rights; anything else is refused with
not_granted and logged.
| Right | Allows |
|---|---|
view |
read files, open buffers, problems, test results (always granted) |
edit |
change buffers and save |
run |
run configurations, terminals |
debug |
debug sessions |
vcs-write |
commit, branch, merge |
push |
push to a Git remote |
ports |
forward ports |
agents |
use the host project’s agent tools, within the host project’s own agent rights |
Change them on the host while it runs:
ferris-idea serve --devicesferris-idea serve --rights 15d97a2ef3bb44c0 view,editferris-idea serve --revoke 15d97a2ef3bb44c0ferris-idea serve --device-logferris-idea serve --access-offferris-idea-serve serve --devicesferris-idea-serve serve --rights 15d97a2ef3bb44c0 view,editferris-idea-serve serve --revoke 15d97a2ef3bb44c0ferris-idea-serve serve --device-logferris-idea-serve serve --access-offLists the devices, narrows one, revokes one, shows the newest access log lines, and switches remote access off.
- Narrowing a device’s rights ends its sessions within a second (its terminals, runs and debug sessions end with them); it reconnects with the new rights. Widening applies at once.
- Revoking removes the device’s key, puts its fingerprint on a revocation list and closes its sessions within a second. A revoked key cannot connect again, even if an old device list is restored.
--access-offcloses every device session and stops the listener; start--pairagain to switch it back on.- The access log
remote/audit.jsonlrecords every request of a device (time, device, method, target, outcome), refused ones included, never content.
Where the keys are kept
Section titled “Where the keys are kept”The host’s private key and the pinned keys of devices are in the system keychain: the Keychain on
macOS, the Credential Manager on Windows, the Secret Service on Linux with a desktop session. A
locked or unreachable keychain stops the start with what to do; there is no silent fallback to a
file. On a Linux or Unix server without a Secret Service the key is kept in a file like an OpenSSH
host key, ~/.config/ferris-idea/remote/serve-key, and the start line says so. serve checks that
file and its folder at every start (owner-only modes, owned by you, no symbolic link) and refuses
to start with status 78, naming the path and the fix, if anything is wrong. It never repairs
modes itself. On such a machine with a desktop session, --key-file chooses the file explicitly.
For a browser: the WebSocket endpoint
Section titled “For a browser: the WebSocket endpoint”In progress ferris-idea serve <folder> --wss --wss-cert <file> --wss-key <file>
serves the same backend over WebSocket with TLS 1.3 and the hybrid post-quantum group
X25519MLKEM768 only, for a browser client. There is no web client yet; the endpoint ships a
small connection check page and has not been run in a real browser.
When it does not work
Section titled “When it does not work”| Message | What it means |
|---|---|
| The pairing is declined: standard input is not a terminal | Only a person at a terminal can confirm the digits. Start serve --pair in a terminal, not from a service manager. |
| A changed host key | The host’s key differs from the pinned one: a new installation, a deleted key file, or someone in the middle. Find out which before you forget the pin and pair again. |
refusing to start: the key file … can be read by group or others |
Run the chmod the message names, or delete the file and pair your devices again if someone else may have read it. |
the system keychain cannot be read |
Unlock the keychain or log in to the desktop session. |
| A non-loopback address is refused | Add --allow-network when you mean it. |
not_granted for an action |
The device lacks the right; widen it with serve --rights. |
For agents
Section titled “For agents”An agent can list paired hosts, start a pairing in the window and forget a pin; the digits are
confirmed only by you in the window, so without a window remote_pair_start is refused. On the
host, agents can list, narrow and revoke devices and switch access off, but no tool can widen a
right or switch remote access on.
device_listList the devices paired with this machine (SPEC-0324, Experimental): name, fingerprint, rights, when paired.device_logRead the log of remote actions (SPEC-0324, Experimental): time, peer, method, target and outcome of what paired devices did, newest last.device_restrictNarrow the rights of a paired device (SPEC-0324, Experimental): only a subset of its rights; widening is the user's, withferris-idea serve --rights.device_revokeRevoke a paired device (SPEC-0324, Experimental): removes its key, keeps its fingerprint on the revocation list, and a running listener closes its sessions within a second.remote_access_offSwitch remote access off (SPEC-0324, Experimental): a running paired listener closes every device session within a second and ends.remote_access_statusWhether remote access of this machine is switched off and how many devices are paired (SPEC-0324, Experimental).remote_host_probeWhat opening a host would use, without changing anything (SPEC-0321, Experimental): the transport, the host's system and processor, and the backend build picked for it.remote_hosts_pairedThe hosts this window is paired with (SPEC-0321, Experimental): address, key fingerprint and when it was paired.remote_pair_add_pathAdd another path to a paired host (SPEC-0324, Experimental): copies the pin, for example fromhost:47100toalias:47100@ssh, so the next handshake proves the same key without new digits.remote_pair_forgetForget a paired host (SPEC-0321, Experimental): removes its pinned key from this window; pairing again needs a new code from the host.remote_pair_startStart pairing this window with a host runningferris-idea serve --pair(SPEC-0321, Experimental): runs the handshake with the host's short code and shows six digits in the window.
No tool matches. Try fewer words, or .