Let Claude Code sessions on different machines message each other, and work on remote hosts over SSH.
remote-ssh connects your Claude Code session to the machines you reach over SSH. From one session you
message the Claude sessions running on those hosts, use each host's project memory, run commands and
edit remote files. Connections and mounts end with the session.
Without it, a Claude Code session knows only its own machine. The session next to a training run
never hears from your laptop, and what Claude learned about a project on the server stays on the
server. remote-ssh closes both gaps over the SSH config you already have.
✨ Features
Messaging between machines: your session finds the Claude sessions on every connected host,
sends them questions or tasks and gets their replies in your conversation. A receiving session
shows each message to its user and asks before acting on a request they have not covered. Traffic
runs over your SSH connection, so servers never connect back.
Remote memory: Claude reads and writes the remote project's memory beside your local memory.
What a session learned on the server, such as where the data lives, how runs are started or what
failed last time, is there when you work on that server from your laptop, and new notes go back to
the server.
Remote commands:remote_exec runs one command on a host. Redirect mode sends every Bash
call there, and a local: prefix keeps a single command on your machine.
Quick file access: connecting a host mounts its project with sshfs automatically, so Claude
reads and edits remote files with its usual tools, as if they were local. The mount goes away when
the session ends.
📦 Install
Install on your machine, and on every server whose Claude sessions should exchange messages with
yours. Remote commands, mounts and memory need the plugin only on your machine.
claude plugin marketplace add LDenninger/claude-remote-ssh
claude plugin install remote-ssh@remote-ssh
For development:
git clone https://github.com/LDenninger/claude-remote-ssh.git
claude --plugin-dir ./claude-remote-ssh
Dependencies
Local: OpenSSH 8.0+, Python 3.9+, and sshfs with FUSE for mounts and remote memory.
install macFUSE, then brew install gromgit/fuse/sshfs-mac
Remote: bash and an SSH server. Linux and macOS are supported,
Windows is not. Unit and integration tests run on Ubuntu 22.04, 24.04 and 26.04 (Python 3.10, 3.12,
3.14), and macOS runs the unit tests only (Python 3.9, 3.12).
🚀 Usage
For messaging, start claude on the server as usual. Then connect the host from your machine:
Arguments are <alias> [host] [path], with host defaulting to the alias and path to the local
project path. The namespaced forms /remote-ssh:remote-ssh-connect and
/remote-ssh:remote-ssh-status work when another command already uses the short name. The result lists the Claude sessions running on that host. Then ask in plain
language:
Ask the session on gpu-a to rerun the eval on the new checkpoint and report the score.
Collect the final val loss from the training sessions on gpu-a and gpu-b into a table.
Run nvidia-smi on gpu-b.
Send Bash to gpu-a and run the tests there.