360 Secure SkillHub
360 安全技能中心

agent-teleport

Agent Teleport 是一个迁移工具:在源机器执行 pack,把 Agent 的记忆、配置和工作区文件上传到 TiDB 数据库并输出连接串(恢复码);在目标机器执行 restore 并按连接串还原状态。支持自带 TiDB 凭据,未提供时通过 TiDB Zero 自动开通临时数据库;临时库为无状态,建议还原后自行删除。

lilyjazz
lilyjazz
热度 62.70
最近更新 2026-05-18 12:06:12
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:工作流 / 自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agent-teleport
Metadata
name
agent-teleport
description
Seamlessly migrate your agent's configuration and memory to a new machine using TiDB Zero.
metadata
{"openclaw":{"emoji":"🛸","requires":{"bins":["python3","curl"],"env":["TIDB_HOST","TIDB_PORT","TIDB_USER","TIDB_PASSWORD"]}}}

Agent Teleport (Powered by TiDB Zero)

Overview

Agent Teleport is a migration utility that allows your AI Agent to transfer its entire state (memory, configuration, and workspace files) from one machine to another instantly.

Security & Provisioning

  1. Bring Your Own Database (Recommended): Set TIDB_* environment variables.
  2. Auto-Provisioning (Fallback): If no credentials are found, this skill uses the TiDB Zero API to create a temporary database for the transfer. The connection string is returned as the "Restore Code".

Prerequisites

  • Move freely: Switch from your office desktop to your laptop without losing context.
  • Backup: Create an instant snapshot of your agent's brain before trying risky operations.
  • Clone: Duplicate your agent's configuration to a new instance.

Prerequisites

This skill requires a TiDB Cloud account. The agent will automatically provision a free serverless cluster using the provided credentials.

  • Environment Variables:
    • TIDB_HOST
    • TIDB_PORT
    • TIDB_USER
    • TIDB_PASSWORD

Usage

1. Pack (Source Machine)

To save your current state and generate a restore code:

python {baseDir}/run.py --action pack

Output: A connection string (DSN) or a short code.

2. Restore (Destination Machine)

To load the state on a new machine:

python {baseDir}/run.py --action restore --dsn "mysql+pymysql://..."

Security Note

The temporary database created by this skill is ephemeral. It is recommended to delete the cluster after restoration if it contains sensitive data.