/install agent-migration
Agent Migration
Use this skill when the user wants to rename or migrate an OpenClaw agent safely.
Scope
This skill handles:
- agent id rename
- workspace rename
- config/path updates
- prior session content migration
- session display metadata updates
- restart and verification
- separate deletion confirmation for the old agent
Defaults and boundaries
- Confirm old id, new id, new workspace, and whether model also changes.
- Migrate prior session content by default unless the user explicitly says not to.
- Do not skip migration just because a session does not look active.
- Do not hard-edit active lock files or force-rewrite a live session shell.
- Restart is required after migration.
- Never delete the old agent without a separate user confirmation.
Files involved
- config:
~/.openclaw/openclaw.json - agent dirs:
~/.openclaw/agents/\x3Cid>/... - workspace:
/home/yln/claw-workspace/\x3Cname> - session metadata such as
sessions.json
Use the included files
references/checklist.mdreferences/cleanup.mdscripts/inspect_agent_migration.shscripts/copy_session_content.shscripts/verify_agent_migration.sh
Recommended commands
bash skills/agent-migration/scripts/inspect_agent_migration.sh \x3Cold-id> \x3Cnew-id>
bash skills/agent-migration/scripts/copy_session_content.sh \x3Cold-id> \x3Cnew-id>
bash skills/agent-migration/scripts/verify_agent_migration.sh \x3Cold-id> \x3Cnew-id>
Guardrails
- Keep config, workspace, and naming changes consistent.
- Update session display-layer metadata as part of the migration.
- Verify the new agent before offering deletion of the old one.
- Use
references/cleanup.mdonly after the user separately confirms deletion.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-migration - After installation, invoke the skill by name or use
/agent-migration - Provide required inputs per the skill's parameter spec and get structured output
What is Agent Migration?
Safely rename or migrate an OpenClaw agent by updating config and naming, migrating session content, fixing session metadata, restarting, verifying, and aski... It is an AI Agent Skill for Claude Code / OpenClaw, with 137 downloads so far.
How do I install Agent Migration?
Run "/install agent-migration" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agent Migration free?
Yes, Agent Migration is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agent Migration support?
Agent Migration is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agent Migration?
It is built and maintained by kid0114 (@kid0114); the current version is v1.0.1.