360 Secure SkillHub
360 安全技能中心

OpenClaw Migrator

将 OpenClaw Agent 的配置、记忆与技能导出为 AES-256-GCM 加密的 .oca 归档,并在新机器上导入恢复;通过 manifest.json 还原工作区路径,并携带 Brewfile 依赖清单。导出必须设置密码,未加密导出被设计性禁用。

wenjie2024
wenjie2024
热度 90.37
最近更新 2026-05-11 15:53:14
分类:自动化依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add openclaw-migrator
Metadata
name
migrator
description
Securely migrate OpenClaw Agent (config, memory, skills) to a new machine.

OpenClaw Migrator

A utility to package an Agent's state into a portable, encrypted archive (.oca) for migration.

Features

  • Encrypted Archive: Uses AES-256-GCM + auth tag for confidentiality and integrity.
  • Path Normalization: Restores workspace path using manifest.json metadata.
  • Dependency Manifest: Captures system dependencies (Brewfile) to ensure the new environment matches.

Usage

Export (On Old Machine)

migrator export --out my-agent.oca --password "secret"

Import (On New Machine)

migrator import --in my-agent.oca --password "secret"

Security

This skill handles sensitive data (openclaw.json, auth.token). The export process always requires a password to encrypt the archive. Unencrypted exports are disabled by design.