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. - 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.
*
TIDB_HOST
*
TIDB_PORT
*
TIDB_USER
* INLINECODE4
Usage
1. Pack (Source Machine)
To save your current state and generate a restore code:
CODEBLOCK0
Output: A connection string (DSN) or a short code.
2. Restore (Destination Machine)
To load the state on a new machine:
CODEBLOCK1
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.
技能名称: agent-teleport
Agent Teleport(基于 TiDB Zero)
概述
Agent Teleport 是一款迁移工具,能让您的 AI Agent 将其完整状态(包括记忆、配置和工作区文件)从一台机器即时传输到另一台机器。
安全与配置
- 1. 自带数据库(推荐): 设置 TIDB_* 环境变量。
- 自动配置(备用方案): 如果未找到凭据,此技能将使用 TiDB Zero API 创建一个临时数据库用于传输。连接字符串将作为恢复码返回。
应用场景
- * 自由切换: 从办公室台式机切换到笔记本电脑,无需丢失上下文。
- 备份: 在执行高风险操作前,为 Agent 的大脑创建即时快照。
- 克隆: 将 Agent 的配置复制到新实例。
前提条件
此技能需要 TiDB Cloud 账户。Agent 将使用提供的凭据自动配置一个免费的无服务器集群。
* TIDB_HOST
* TIDB_PORT
* TIDB_USER
* TIDB_PASSWORD
使用方法
1. 打包(源机器)
保存当前状态并生成恢复码:
bash
python {baseDir}/run.py --action pack
输出: 一个连接字符串(DSN)或短码。
2. 恢复(目标机器)
在新机器上加载状态:
bash
python {baseDir}/run.py --action restore --dsn mysql+pymysql://...
安全说明
此技能创建的临时数据库是
临时的。如果其中包含敏感数据,建议在恢复后删除该集群。