SSH Air-gap
Run agentty on a host with no direct internet, relaying bytes over SSH.
on this page
Run this on the laptop that has internet:
agentty airgap --setup user@airgapped-host # first time: also copies your credentials
agentty airgap user@airgapped-host # every time afteragentty then runs on the remote box, which can't reach the internet itself. Your laptop relays the bytes. TLS is checked against the real upstream servers, so the network in between can't read or alter the traffic.
What --setup does
--setup copies your local credentials.json (from AGENTTY_CREDENTIALS_DIR, default ~/.agentty/credentials/) to ~/.agentty/credentials/ on the remote, with mode 0600.
How it works
ssh -R 1080 opens a SOCKS5 proxy on the remote at localhost:1080. Connections to it travel back over SSH and your laptop dials them. The remote agentty gets AGENTTY_SOCKS_PROXY=localhost:1080 and sends every TCP connection through it: chat, OAuth refresh, web_fetch, web_search. You set one env var and don't list hosts.
Without the wrapper
You can run the same thing with plain ssh:
ssh -t -R 1080 user@airgapped-host \
'AGENTTY_SOCKS_PROXY=localhost:1080 agentty'Both ends need OpenSSH 7.6 or newer (October 2017; every current distro has it).
Options for agentty airgap:
AGENTTY_AIRGAP_SSHpasses extra flags tossh(for example-i,-p,-J).--remote-agentty PATHsets where agentty lives on the remote, if it isn't on the remotePATH.
Run it inside Zed (ACP over airgap)
The same tunnel can run agentty as an editor agent. agentty airgap user@remote --acp [flags…] prints a Zed agent_servers block you can paste. Its command is ssh itself. That one process is the SOCKS tunnel, the remote agentty acp, and the JSON-RPC transport, and Zed owns it. For roles, prerequisites and troubleshooting, see Use agentty inside Zed → air-gapped remote.
Pasting images on the remote
If you ran agentty paste setup on this laptop, every ssh session already carries your clipboard, air-gap included. Ctrl+V on the remote pastes screenshots and files.
If you didn't, add --clipboard-relay for one session:
agentty airgap --clipboard-relay user@airgapped-hostThis starts the clipboard agent on the laptop if it isn't running. It also adds one -R forward from a new /tmp/richpaste-<user>-<random>.sock on the remote to that agent. Paste on the remote finds the socket by itself. Nothing is installed on the remote, and the laptop doesn't need sshd. See Clipboard & Images.