360 Secure SkillHub
360 安全技能中心

Migrator

为 OpenClaw Agent 提供状态迁移 CLI:把 config、memory、skills 及依赖清单打包成 AES-256-GCM 加密的 .oca 归档,用 manifest.json 还原工作区路径;导入需提供密码,按设计禁用未加密导出。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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.