teleporting-between-environments
GitHub实现会话在本地与云端环境间的无缝迁移,处理文件上传下载及环境状态同步。适用于用户要求切换运行环境或进行跨设备任务交接的场景。
Trigger Scenarios
Install
npx skills add letta-ai/letta-code --skill teleporting-between-environments -g -y
SKILL.md
Frontmatter
{
"name": "teleporting-between-environments",
"description": "Moves the current agent conversation to Cloud or a Cloud-registered remote environment while coordinating machine-local files and setup. Use when the user says \"let's continue this task on cloud\", asks to continue or move work on another connected computer, wants to teleport between environments, or needs to upload or download artifacts before a handoff."
}
Teleporting Between Environments
Teleport the current agent and conversation without losing conversational memory. Prepare machine-local state first, then let the destination continue the same task.
Mental model
- Memory follows the agent; filesystem access does not. Files, working directories, credentials, running processes, and local services belong to the computer currently executing the conversation.
- Upload and download paths are relative to the current computer. Cloud cannot read a laptop path until the conversation teleports to that laptop.
- The conversation’s managed Cloud sandbox remains alive while the conversation runs elsewhere.
- Filesystem paths and cwd do not transfer between computers. Re-establish the destination’s repository, working directory, dependencies, credentials, and services after arrival.
Commands
letta teleport list
letta teleport cloud
letta teleport <environment>
list: show accessible online remote targets. Desktop Local is excluded.cloud: create or resume this conversation’s managed Cloud sandbox.<environment>: target a listed remote environment by its friendly selector.
Teleport cannot target Desktop Local yet. Once the conversation runs in Cloud,
the agent cannot programmatically return to Desktop Local. The user can still
switch manually with Desktop's environment picker. Do not run or recommend
letta teleport back.
Transfer files with the existing sandbox commands:
letta sandbox upload <local-path>
letta sandbox download <sandbox-path> [--to <local-path>]
Do not invent letta teleport push, pull, or remote file-listing commands. No sandbox ID or wake command is needed.
Prepare the handoff
Before teleporting:
- Identify the target and every file, repository state, credential, service, or setup step the task needs there.
- Finish work that requires the current computer. Verify relevant files exist before transferring them.
- Upload current-computer artifacts needed in Cloud and retain the returned
/root/downloads/...paths in context. - Retain enough context to recreate destination-local setup, including the repository, branch or revision, working directory, dependency commands, and next action.
- Run teleport only after all source-side preparation is complete.
Teleport is the final action
Run the teleport command as the only command in the final Bash tool call. Do not chain later commands, poll the teleport operation, or invoke another source-side tool after it.
The CLI intentionally returns after the server accepts the handoff. Once the Bash result is persisted, the source yields at a clean turn or tool boundary and the destination resumes with no synthetic user message.
If the command reports an offline, stale, unsupported, same-source, or startup error, the conversation remains on the source. Surface the concrete error, correct it if possible, and retry only after the target is available.
Common workflows
Continue local work in Cloud
-
Inspect the local task state and identify local-only artifacts or setup.
-
Upload each artifact Cloud needs:
letta sandbox upload <local-path> -
Retain each returned sandbox path.
-
As the final action, run:
letta teleport cloud -
After continuation in Cloud, establish the Cloud-local cwd and repository setup before using the uploaded paths.
Return to Desktop Local
The agent cannot initiate this transition. Retain the next local action and ask the user to select Local from Desktop's environment picker. After continuation locally, resume the task from the retained context.
Continue on another connected computer
-
Discover available targets if needed:
letta teleport list -
Prepare or upload everything the current computer owns.
-
As the final action, run:
letta teleport <environment>
Version History
- c0a387c Current 2026-08-13 16:15


