<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au" -->

---
title: Stop Copy-Pasting Your Code to Claude (Do This Instead)
description: Claude Code's Session Teleportation feature enables developers to move entire AI coding sessions between devices while preserving conversation history and code...
canonical: https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop Copy-Pasting Your Code to Claude (Do This Instead) | daily.dev
og:description: Claude Code's Session Teleportation feature enables developers to move entire AI coding sessions between devices while preserving conversation history and code...
og:url: https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au
og:image: https://api.daily.dev/og/posts/7AvYdU3Au.png
og:image:alt: Stop Copy-Pasting Your Code to Claude (Do This Instead)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop Copy-Pasting Your Code to Claude (Do This Instead)

**[proflead](https://daily.dev/sources/proflead)** · [@proflead](https://daily.dev/proflead) · 5 min read · 1 upvotes · 0 comments

## Summary

Claude Code's Session Teleportation feature enables developers to move entire AI coding sessions between devices while preserving conversation history and code context. The workflow involves starting tasks with the '&' prefix to create cloud sessions, then using the '/teleport' command to resume work locally. Setup requires installing Claude Code CLI, connecting a GitHub account, and maintaining a clean Git state. The feature supports cross-device development, parallel task execution, and team collaboration through shared session IDs.

## Content

Modern software development rarely happens in one place. You might start a coding session at the office, but later need to finish the job from a different computer.

There is a way. You have to push code to GitHub, pull it down on your other machine, and-worst of all-you lose your entire conversation history with your AI assistant.

Recently, I started using Session Teleportation in Claude Code. It allows you to move an entire conversation, including context, history, and the working branch, between the web and your local terminal.

In this tutorial, I show you how it works and how to use it to make your workflow seamless.

## First-Time Setup (Do This First)

Before you can teleport anything, you need to connect your local environment to Claude’s cloud.

**Install and Update** First, make sure you have the latest version of Claude Code.

```bash
npm install -g @anthropic-ai/claude-code
```

or use this comand:
```bash
claude update
```

### **Turn on Claude Code on Web**

![Turn on Claude Code on Web](https://miro.medium.com/v2/resize:fit:700/1*n74G1nZ3uTZNkh4_Ks_WrA.png)

Open the website [https://claude.ai/code](https://claude.ai/code) and finish the onboarding.

You **must** connect your GitHub account. This is critical because Claude needs access to your repositories to “teleport” the code changes between devices.

_Note: If you use an organization’s repository (like at work), you might need to click “Grant” next to your organization’s name in the GitHub permissions screen._

Then set up cloud environments. Give it a name and network access.

![Set up cloud environments](https://miro.medium.com/v2/resize:fit:700/1*BCoVR1GHciIk8dIp3yR5uA.png)

## How Session Teleportation Works

Navigate to your project folder in the terminal and run `claude`. Claude will detect your git repository and make sure it has permission to access it.

The teleportation is built around two simple commands.

**1. The** `**&**` **Prefix (Send to Web)** This is how you start a "background session." If I type `&` before my prompt in the CLI or VS Code, Claude runs the task on its cloud infrastructure. Example:

```bash
& Refactor the authentication module to use JWT tokens
```
**2. The** `**/teleport**` **Command (Bring to Local):** This is how you resume work. You can pull that web session into your local terminal or VS Code using `claude --teleport <session-id>`.

**Important Note:** This process is **one-way**. You can pull a web session down to your terminal, but you cannot “push” an existing local session up to the web. If you think you might need to switch devices later, always start your task with the `&` prefix!

## Moving Tasks from VS Code to the Web

Install the Claude Code extension in VS Code or Cursor (via the Extensions panel). Once installed, you can send tasks to the web directly from within your editor.

Compose your prompt. For example, if you want Claude to refactor authentication logic, start your prompt with &:

```bash
& Refactor the authentication module to use JWT tokens instead of sessions
```

This creates a background web session and returns a session ID. The task continues even if you close VS Code or shut down your laptop.

![creates a background web session](https://miro.medium.com/v2/resize:fit:700/1*31QPWfrS0NA2ilXRTiRXRA.png)

Monitor the session. Use **_/tasks_** in the CLI or click on the task in the web interface to see status.

![Monitor the session](https://miro.medium.com/v2/resize:fit:700/1*K1MotgAWtaYtMNPmBfa_Jg.png)

You can also run **_claude — status <session‑id>_** from any device.

## Pulling Web Sessions Back to Your Terminal (VS Code or Cursor)

Locate your session. In the Claude chat, run **_/teleport (or /tp)_** to see all active web sessions. From the command line, run claude — teleport for an interactive picker or **_claude — teleport <session‑id>_** to resume a specific session.

```bash
claude --teleport session_01RyZ89nysBFFZnqFMZ4KpkZ
```

Meet the requirements. Before teleporting, Claude checks several conditions:

- **Clean Git state:** You must have no uncommitted changes. Teleport will prompt you to stash them if necessary.
- **Correct repository:** You must be in a checkout of the same repository used on the web.
- **Branch availability:** The branch created during the web session must be pushed to the remote; teleport will fetch and check it out.
- **Same account:** You must be authenticated as the same Claude.ai user.

![Teleport the session](https://miro.medium.com/v2/resize:fit:700/1*mKbNHhr2GCreExcHRxn7IQ.png)

Teleport the session. Once these conditions are satisfied, Claude will fetch the branch, load the conversation history, and attach the session to your local environment. You can then continue the conversation and review code in Cursor or the terminal as if you never left.

## Pro Tips for Getting the Most Out of Claude Code Teleport

- **Parallel Work Streams:** Sometimes I run multiple & commands at once to start several tasks simultaneously.
- **Team Collaboration:** This is a hidden gem. I can share a Session ID with a teammate, and they can teleport into my session on their machine. It is perfect for async pair programming.
- **One-Way Only:** Remember, you can pull a web session down to your terminal, but you cannot “push” an existing local session up to the web. Always start with & if you think you might need to move!
- **Maintain a clean Git state.** Teleportation requires a clean working directory. Use Git stashes or commit your changes before pulling sessions

## Claude Code Teleportation Tutorial

I also have a video with step-by-step instructions on how to use Claude Code teleportation. Please make sure to check it out.

**_Watch on YouTube:_** [**_Claude Code Tutorial: Teleportation_**](https://youtu.be/2j93xjmtI9U?si=KFnRJUOtp_K7aNJW)

## Conclusion

Session teleportation blurs the line between local and remote development. It allows you to offload compute‑heavy tasks to the cloud, then seamlessly resume work locally without losing context. This cross‑device mobility is valuable for distributed teams and individuals who switch machines throughout the day.

I hope you found this tutorial helpful. If so, please leave your comments and subscribe to [**my YouTube channel**](https://www.youtube.com/@proflead/videos?sub_confirmation=1), where I share a lot of useful tutorials for devs ;).

## Similar posts on daily.dev

- [Remote control: steering your AI coding session from your phone](https://daily.dev/posts/remote-control-steering-your-ai-coding-session-from-your-phone-qg1zfljtc) · The Art of Simplicity · 0 upvotes · 0 comments
- [Continue local sessions from any device with Remote Control](https://daily.dev/posts/continue-local-sessions-from-any-device-with-remote-control-zhad4uefv) · Hacker News · 0 upvotes · 0 comments
- [I Built a Claude Code Skill That Turns Any Existing Web App Into a Local Vibe Coding Environment](https://daily.dev/posts/i-built-a-claude-code-skill-that-turns-any-existing-web-app-into-a-local-vibe-coding-environment-gs4kx8e7g) · Medium · 2 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#claude](https://daily.dev/tags/claude), [#devtools](https://daily.dev/tags/devtools), [#git](https://daily.dev/tags/git), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au","headline":"Stop Copy-Pasting Your Code to Claude (Do This Instead)","text":"Claude Code's Session Teleportation feature enables developers to move entire AI coding sessions between devices while preserving conversation history and code context. The workflow involves starting tasks with the '\u0026' prefix to create cloud sessions, then using the '/teleport' command to resume work locally. Setup requires installing Claude Code CLI, connecting a GitHub account, and maintaining a clean Git state. The feature supports cross-device development, parallel task execution, and team collaboration through shared session IDs.","url":"https://daily.dev/posts/stop-copy-pasting-your-code-to-claude-do-this-instead--7avydu3au","datePublished":"2026-01-19T10:46:05.394Z","dateModified":"2026-03-15T03:55:42.544Z","author":{"@type":"Person","name":"Vladislav Guzey","url":"https://daily.dev/proflead","image":"https://media.daily.dev/image/upload/s--4L7ELKjK--/f_auto/v1783678559/avatars/avatar_mynD5jCcrzlhTMlFarmBA?_a=BAMAMicg0","description":"Developer \u0026 PhD Researcher in AI · 20+ Years in Web, Data \u0026 Growth · Helping Developers Work Smarter","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":590}},"image":"https://media.daily.dev/image/upload/s--AKHRjKO9--/f_auto/v1768819566/posts/7AvYdU3Au?_a=BAMAMiiu0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/proflead","name":"proflead"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"proflead","item":"https://daily.dev/squads/proflead"},{"@type":"ListItem","position":3,"name":"Stop Copy-Pasting Your Code to Claude (Do This Instead)"}]}
```

