---
title: "Move a Claude Code session to another machine · Selan"
description: "selan teleport moves a Claude Code session, with the repository it works in, to another of your machines over ssh and picks it up there. In Herdr, drag the chat onto the machine."
url: https://selan.ai/blog/2026-11-23-teleport
updated: 2026-11-23T11:24:08+02:00
---

[← All posts](https://selan.ai/blog)

Blog

# Move a Claude Code session to another machine

selan teleport moves a Claude Code session, with the repository it works in, to another of your machines over ssh and picks it up there. In Herdr, drag the chat onto the machine.

23 November 2026FeatureIn the docs: [Teleport](https://selan.ai/docs/herdr#teleport)

You start a session on your laptop, and an hour in it is clear the work will run long. You would rather it ran on the machine at home or on a server, which stays on when you close the lid.

Until now, moving meant starting over. The new session on the other machine knew nothing about the last hour, and the repository there didn't have the changes you hadn't committed yet.

Now `selan teleport` moves the session itself.

![A Herdr dialog titled Move api to devbox?, saying the Claude Code session goes with its repository, the branch and the work not committed yet, that ignored files such as .env stay here, and that it opens on devbox and closes here. Cancel and Move buttons below.](https://selan.ai/img/blog/2026-11-23-teleport/move.webp)

Moving a chat in Herdr. The space and the machine are an example.

## What moves

The conversation moves whole. Its transcript goes into the other machine's Claude Code directory, for the same folder under that machine's home, so the session picks up where it stopped, with everything it has read and done so far.

The repository goes with it, by `git push` over ssh. On the other machine the same branch is checked out at the same commit, and the changes you hadn't committed are put back on top, still uncommitted. If that machine doesn't have the repository yet, it gets one.

Two things stay behind. Ignored files such as `.env` don't travel. And if the copy on the other machine has changes of its own, teleport refuses rather than mix them with yours.

A session Claude Code is still working in is never moved. Wait until it finishes, then move it.

## In the terminal

Quit Claude Code, and in the same folder run:

```sh
selan teleport devbox
```

`devbox` is anything ssh reaches by name: a host in `~/.ssh/config`, or `user@host`. The session picks up on that machine in the same terminal. If you started it with `seland`, it keeps its permission prompts off there too, after you confirm once.

## In Herdr

In [Herdr](https://herdr.dev) with the [Selan layout](https://selan.ai/docs/herdr), drag the chat in the sidebar onto another machine. The machine lights up while you hold it there. Let go and confirm, and the chat opens on that machine as a new space, picking up the conversation, and closes here.

Dragging needs the teleport mod. Ask the agent in your Herdr window to `add github.com/selan-ai/herdr-teleport`.

## Set it up

Update `selan` to 1.36 or later on both machines and sign in on each:

```sh
selan update
selan login
```

The other machine needs Claude Code and must run macOS or Linux. [Teleport](https://selan.ai/docs/herdr#teleport) in the docs has the details.

**How it works today.** A post says what changed on its day; the docs say how Selan works now.

[Teleport](https://selan.ai/docs/herdr#teleport)
