Skip to content

Teleporting Claude Code sessions between CLI and web

Published:

Learned about the --teleport flag in Claude Code CLI (v2.0.45+). It moves sessions between your terminal and claude.ai/code.

Came from this thread with Boris Cherny (@bcherny) who built Claude Code:

Arach Tchoupani@arach𝕏
β†’ @bcherny
> As I code in my terminal, I will often hand off local sessions to web (using &) Can you elaborate on this? I haven't been using the web app and super interested in learning more about how it can map to on device (CLI) sessions

Web to Local

When working on claude.ai/code, click β€œOpen in CLI” to get:

claude --teleport session_abc123xyz

Run it in your project directory. It pulls the conversation, syncs files, and preserves git state.

Why bother

Boris mentioned he runs 5 CLI instances + 5-10 web sessions in parallel. Teleport lets you start on phone, finish on desktop, run multiple sessions, keep context intact.

Notes

Be in the right repo directory before teleporting. Pull latest if repo changed remotely. Requires Claude Pro/Max.

More from the community:

bitcelium β‚Ώ/⚑@ovitrif𝕏
β†’ @arach
this.