Remote kernels #
An agent can do their work on another machine while Albedo stays on yours. The kernel, which is where the agent runs commands, starts jobs, and reads and edits files, runs on that host over SSH. The conversation, memory, and everything else about the session stay with your daemon.
Nothing is installed on the host by hand, and it does not need Albedo.
Start a session on another machine #
- A new session: in the folder picker of the terminal or web client, type
host:/path, or@hostto browse that machine's folders. Hosts from your~/.ssh/configare offered as you type. - A session you already have: run
/cd host:/absolute/path. The terminal client asks "Copy memory and move the agent to this machine's daemon?". Answer no to run only the kernel there, which is what this page describes. Yes hands the whole session to an Albedo daemon running on that host.
A location is [user@]host:/absolute/path. host:~/project works too, and the
~ is resolved on the host. The host can be an alias from your SSH config.
Then talk to your agent the way you would on your own machine:
you're on the build box now, so the gpu is yours. can you run the benchmark there and tell me what you make of the numbers?
this checkout on staging is a bit behind. could you catch it up and see if the tests still pass over there?
What the host needs #
SSH must already work from the machine running Albedo. Albedo connects with your SSH config, keys, and agent.
On the first visit, Albedo stages its kernel under ~/.albedo-remote. The
daemon fetches the latest stable uv release for the remote platform and sends
it over SSH. This supports x86-64 and ARM64 hosts on Linux and macOS. The remote
uv creates the kernel environment and installs the locked dependencies.
Albedo uses the host's python3 (checking PATH, Nix system/profile paths, and
existing Nix store python3 paths on NixOS) if it is Python 3.11 or newer. On
NixOS hosts without a matching Python, Albedo tries realizing nixpkgs#python3
via nix before falling back to uv downloading Python 3.11. Later visits
reuse the prepared environment without looking up a new uv release. When a
daemon update changes the kernel code or its dependency lockfile, Albedo
prepares a separate environment for the replacement kernel. Reconnecting to a
running kernel or stopping it uses helpers already present on the host. If the
replacement cannot be prepared, the existing kernel and its jobs can continue.
Albedo never answers a passphrase, a second factor, or a host key question for
you. When a host needs one, Albedo says the host needs you to sign in. The
terminal client opens that sign-in in your terminal, and anywhere else Albedo
gives you the ssh command to run. One sign-in is enough: Albedo keeps a single
connection per host open and reuses it, and when your SSH config names a
ControlPath, your own ssh and git share it.
What runs where #
On the host:
- commands and background jobs
- reading, searching, and editing files
- the project's
AGENTS.mdand its skills - the changes and file listings the clients show you
On your machine:
- the conversation and the requests to your model provider
- memory and the journal
- the work ledger, agents, and mail
- your provider accounts
The agent is told which machine they are on, so paths in their answers are that machine's. Two things differ from a local session: you can attach images to a message but not other files, and worktrees cannot be created on a remote host.
When the connection drops #
The kernel runs on the host, not inside the SSH connection. If the network drops, your laptop sleeps, or the daemon restarts, the kernel and its jobs keep going, and the agent picks them up again when the host is reachable. What the kernel had in memory is still there.
i'm closing the laptop for the train. keep the training run going on the gpu box and tell me how it went when i'm back?
Visiting a machine without moving there #
An agent working on your machine can also reach out to another one for part of a task, without moving there. Ask for it in passing:
nginx on deploy@box keeps restarting and i can't work out why. can you hop on and have a look with me?
Use a remote kernel when the project itself lives on the other machine, and a visit when the agent only needs to look at or fix something there. See Remote, Colab, browser, and desktop for visits and for Google Colab runtimes, which work the same way.
See the Kernel and Workspaces references for implementation details.