Sledbot remote machines: run agents on your own servers
Add a VPS, VM or another Mac to Sledbot over SSH: sign-in options, host key checks, agent setup, port forwarding, execution policy and current limits.
Updated 8 min read
On this page
This page shows how to add a remote machine to Sledbot over SSH. The machine can be a VPS, a VM or another Mac. Once it's added, you can run terminals and agents on it, and those agents keep running while your Mac sleeps or the connection drops.
Read this first if your server runs Linux. The current Sledbot app doesn't include the Linux build of its engine (sled). Adding a Linux machine only works if ~/.sledbot/bin/sled is already on that machine. Adding another Mac works with the app as shipped. See Current limits.
What you can do on a remote machine
- Open terminals and start agents there, from New task (pick the machine in its machine chip) or with
sled run --on <machine>. - Browse and edit its files in Code mode. Reads, writes, language servers, search and git all run on that machine, and the status bar shows "Files on
<machine>". - Run routines on it. They run in that machine's engine, even while this Mac sleeps.
- Forward a remote port, such as a dev server, to this Mac's
localhost.
Remote terminals are addressed <machine>/t<N>, for example vps/t7. Each machine and its spaces appear under Machines in the sidebar.
Before you start
- Remote OS: Linux (x86_64 or aarch64) or macOS. Other systems are refused with "
<os><arch>is not supported yet (Linux x86_64/aarch64 and macOS only)". Windows remotes aren't supported. - Disk space: about 128 MB free in the remote home folder.
- SSH: Sledbot uses the system
/usr/bin/ssh,scp,ssh-keyscanandssh-keygen. The default sign-in method uses the same ssh-agent, keys and~/.ssh/configassshin Terminal, so it's the best choice whensshto the host already works there.
Add a machine
Open Add a machine in any of these ways: the + next to Machines in the sidebar ▸ Add machine…, ⌘K Add machine…, or the Machines screen ▸ Add machine.
1. Details
- In Host, enter an IP address, a hostname or a
~/.ssh/configalias. The ~/.ssh/config menu lists the hosts already in your config. - In User, enter the remote user. If you leave it empty, Sledbot takes the user from your SSH config or uses your Mac user name.
- In Port, change
22if your server uses another port. - In Name, enter the label shown in the sidebar (for example
vps). Use 1–32 characters of a–z, 0–9 and-. The namelocalis reserved. - Click Continue.
2. Sign-in
Pick one method:
| Option | How it works | Default |
|---|---|---|
| SSH agent / keys | Uses your ssh-agent, default keys and ~/.ssh/config, the same way ssh does in Terminal. | Selected |
| Key file | Point Private key at a key file with Choose…. Sledbot references the file by its path. If the key has a passphrase, you enter it once and it's kept in your Keychain. | — |
| Password | With Generate a key and install it with this password once on, Sledbot creates an ed25519 key, adds it to the server, then forgets the password. With it off, the password is stored in your Keychain and passed to ssh only when it asks. | Key generation on |
On the same step you can also set:
- Jump host (optional), for example a bastion server.
- Agents may run. See Choose what agents may run.
Click Connect.
3. Host key
Nothing is sent to the machine until you trust its key. Sledbot shows the key type and its SHA256:… fingerprint under "Confirm it's really <host>".
- First connection: compare the fingerprint with the one your hosting provider shows, or run
ssh-keygen -lf /etc/ssh/ssh_host_<type>_key.pubon the server. If it matches, click Trust and connect. - Changed key: Sledbot warns that the host key has changed. That happens when a server is reinstalled, but it can also mean someone is intercepting the connection. Only click Trust the new key if you know why it changed.
Sledbot checks host keys strictly against its own known_hosts file, not your ~/.ssh/known_hosts.
4. Connect
Sledbot shows "Connecting and checking the core on X…" with live progress while it installs and starts its engine:
- The engine goes to
~/.sledbot/bin/sled, and its log to~/.sledbot/logs/core.log. - When systemd is available, Sledbot starts the engine as a user unit,
sledbot-core.service(with linger). Otherwise it starts it withsetsid nohup. - Another Mac gets the app's own universal
sledbinary. A Linux machine needs the Linux build, which the app doesn't include (see Current limits).
If a password is needed, Sledbot asks for it ("Password for X"). If connecting fails, click Try again or Open an interactive login. An interactive login handles one-time codes and passphrases, and Sledbot reuses that connection for 10 minutes. If you cancel before the machine connects, Sledbot removes the half-added machine.
Set up agents on the remote machine
After it connects, Sledbot shows "Connected. Check which agents are ready on X:" with a checklist: Git, Node.js, Claude Code, Codex CLI, Gemini CLI, OpenCode, GitHub CLI and ripgrep. Each item has Install… or Log in…, and each action asks you to confirm first.
- Installs use the machine's package manager (apt, dnf, apk, pacman, zypper or brew). npm packages go to
~/.npm-global, so they don't need sudo. - Logins run each tool's own command in a terminal on that machine:
claude /login,codex login --device-auth,gemini,opencode auth loginandgh auth login. Because they run in a real terminal, device-code and browser login flows work.
To get back to the checklist later, open the machine card ▸ More actions ▸ Agent setup…. You can also install, update and log in to coding agents from Settings ▸ Agents after choosing the machine in Machine.
Forward a port
- On the Machines screen, open the machine's More actions ▸ Forward a port….
- Enter the Remote port (for example
3000). - Leave Local port set to Same, or enter a different port.
- Click Forward, then Open in browser.
The forward runs through the existing SSH connection. Click Stop forwarding when you're done.
Choose what agents may run
Agents may run is a per-machine policy. It applies to agents and to programs calling Sledbot from its terminals, not to a shell you open and type in yourself.
| Policy | Effect |
|---|---|
| Ask every time (default) | Commands wait in Needs you as a "Run on <machine>: …" card before they run. An allow is remembered for 30 minutes for that machine and terminal. A card with no answer times out after 10 minutes. |
| Always allow | Commands run on the machine without this check. |
| Never allow | Refuses starting programs, file writes, git operations that change things, and starting agents, teammates or jobs. |
API keys stay on this Mac
Keys you save in Sledbot's Providers settings are never copied to remote machines. If the native agent or a routine on the server needs to call a model API while your Mac is off, set the key on the server itself, for example ANTHROPIC_API_KEY in its shell profile. CLI agents on the server use their own logins.
Manage a machine
Open the Machines screen from Machines… in the sidebar or from Settings ▸ Machines. Each card shows user@host:port, the OS, the core version, the terminal count and a state, such as Connected, Reconnecting…, Offline, Needs password, Confirm host key or Host key changed.
If the connection drops, Sledbot shows "Connection lost" and retries after 1, 2, 4 seconds and so on, up to 60 seconds. Agents on the machine keep running in the meantime.
The card's More actions menu also has Open shell, Test connection, Log in interactively…, Update core, Show logs and Remove….
Remove a machine and reattach later
Choose More actions ▸ Remove…. Sledbot forgets the machine and its saved password or key. Two options control what happens on the machine itself:
- Stop the agents running there
- Delete ~/.sledbot on the machine (core, logs, stored secrets)
If you leave the agents running, they keep working on the machine. Add it again later to reattach to them.
From the command line
| Command | What it does |
|---|---|
sled machine add me@vps.example.com | Adds a machine. Takes --name, --key, --jump, --policy ask|allow|never and --generate-key. |
sled machine ls | Lists the machines added here. |
sled machine login <name> | Logs in with ssh in this terminal (password, one-time code or host key), then reconnects. |
sled machine update <name> | Copies this Mac's sled to the machine and restarts its core. Its terminals keep running. |
sled machine rename <name> <new> | Renames a machine. The app has no rename option. |
sled machine rm <name> | Forgets a machine. Takes --stop-agents and --delete-remote-data. |
sled doctor --on <name> | Checks the machine's core, socket, PATH, agent CLIs and logins, git/gh/rg, language servers, disk and clock. |
When a machine can't be reached, sled doctor suggests sled machine connect <m>. That command doesn't exist; use sled machine login <m> instead. The sled command line lists every flag.
Current limits
- No Linux engine in the app. Adding a Linux machine fails with "This build has no sled-linux-
<arch>…" unless~/.sledbot/bin/sledis already on that machine. Another Mac works. - Tested in containers only. Remote machines have been tested locally and in containers, not yet on a real VPS.
- Images pasted into the agent composer reach only agents on this Mac.
- GitHub features (the pull request, issue and CI panel, and review threads) don't work for folders on remote machines.
- Deleting files on a remote machine in Code mode is permanent. Remote files don't go to the Trash.
- Remote files over 10 MB don't open in Code mode.
- Show logs first tries a command that doesn't exist, then falls back to reading the log files with
tail.
Troubleshooting
- "ssh refused the login" or "ssh needs a password, key or one-time code": use Log in interactively… (or
sled machine login <name>), or save a password for the machine. - "Cannot reach
<host>to read its host key" or "Couldn't reach<host>": check the host, port and jump host, then use Test connection. - "This build has no sled-linux-
<arch>": the Linux engine isn't bundled; see Current limits. - "Only N MB free in the home folder": free about 128 MB in the remote home folder and try again.
- "Host key changed": check with the server's owner or hosting provider before trusting the new key.
- "Port forward failed: …": make sure something is listening on the remote port and the local port isn't already in use on this Mac.
- "Could not clean up X" when removing: reconnect first, or remove the machine without cleanup.