Painless migration from OpenClaw / Hermes / paperclip
duduclaw migrate from moves an existing OpenClaw, Hermes, or paperclip setup into
DuDuClaw with one command. It defaults to preview mode: it only prints what would
be imported, what would be skipped, and why. Once the plan looks right, add --apply
to actually write anything.
The older spelling duduclaw migrate-from was removed in v1.69.0. It prints the new spelling and exits with code 2.
# Preview (writes nothing)duduclaw migrate from openclaw
# Apply after reviewing the planduduclaw migrate from openclaw --apply --confirm-profile <preview-digest>Command
Section titled “Command”duduclaw migrate from <openclaw|hermes|paperclip|claude-code> [--source <path>] [--apply] [--confirm-profile <digest>] [--rename] [--agent <id>] [--no-redact] [--json]| Flag | Effect |
|---|---|
| (none) | Preview the migration plan; writes nothing. |
--source <path> |
Source directory. openclaw/hermes have defaults; paperclip requires it. |
--apply |
Actually perform the write. |
--rename |
On an agent-id collision, import under an -imported suffix instead of skipping. |
--confirm-profile <digest> |
Required with --apply for OpenClaw, Hermes and paperclip; use the digest from the profile preview. Not required for claude-code. |
--agent <id> |
Existing target employee; required for claude-code. |
--no-redact |
Disable the default PII redaction of claude-code session transcripts. |
--json |
Emit one machine-readable JSON result instead of the human-readable plan. |
Every item is tagged with a status:
IMPORTED— imported (or will be).PARTIAL— partially imported, or needs manual confirmation (e.g. a non-Claude model).SKIPPED(reason)— skipped, with a reason (source file missing, parse failure, security block, etc.).CONFLICT(reason)— the target already has a value; the existing setting is left untouched.
The overall result rolls up to COMPLETE / DEGRADED / PARTIAL. After an apply run,
a full report is written to ~/.duduclaw/imported/<platform>/migration-report.md. Every
token value is shown masked as “first 4, last 4” — never in plaintext on screen or in
the report.
Per platform
Section titled “Per platform”OpenClaw (~/.openclaw)
Section titled “OpenClaw (~/.openclaw)”duduclaw migrate from openclaw # defaults to ~/.openclawduduclaw migrate from openclaw --source /path/to/.openclaw --apply --confirm-profile <preview-digest>Reads openclaw.json (JSON5) and imports:
- Agents:
agents.list[](or a single defaultmain), each with its workspace files placed as in agent-config import:SOUL.md→ SOUL,IDENTITY.md→ IDENTITY (+ name and emoji),AGENTS.md→INSTRUCTIONS.md,USER.md→ native user data;TOOLS.md/HEARTBEAT.md→ knowledge pages,MEMORY.md+memory/*.md→ memory facts with their source recorded. Before 1.76 the persona files were copied intoagents/<id>/memory/, where nothing reads them. - Channel tokens:
channels.telegram.botToken,channels.discord.token,channels.slack.botToken+appToken(written encrypted into config.toml). WhatsApp is a linked device and technically cannot be transferred, so it isSKIPPED. - Model:
agents.defaults.model.primary(with theanthropic/prefix stripped). - Anthropic API key: read from the
envsection and~/.openclaw/.env. Keys for other providers areSKIPPED. - Cron: the legacy
cron/jobs.json(parsed defensively). The newer SQLite cron schema is unvalidated andSKIPPED. - Skills:
SKILL.mdfolders located by OpenClaw’s own precedence order (scanned before install).
The legacy directory names ~/.moltbot and ~/.clawdbot are also supported.
Hermes (~/.hermes)
Section titled “Hermes (~/.hermes)”duduclaw migrate from hermes --apply --confirm-profile <preview-digest># migrate a non-active profile:duduclaw migrate from hermes --source ~/.hermes/profiles/<name> --apply --confirm-profile <preview-digest>Hermes is a single-agent platform, so this produces one DuDuClaw agent (id hermes).
Imports:
- Model:
model.defaultfromconfig.yaml. - Channel tokens (from
.env):TELEGRAM_BOT_TOKEN,DISCORD_BOT_TOKEN,SLACK_BOT_TOKEN+SLACK_APP_TOKEN.EMAIL_*channels are not yet supported in v1 and areSKIPPED. - Persona / memory:
SOUL.md,memories/MEMORY.md(memory facts, entries split on§),memories/USER.md(nativeUSER.md). - Cron:
cron/jobs.json(parsed defensively). - Only the active profile is migrated; other profiles are listed as
SKIPPED, with a prompt to migrate each one individually via--source.
paperclip: via the official export
Section titled “paperclip: via the official export”paperclip’s data lives in an embedded PostgreSQL instance, and DuDuClaw does not connect to that database directly. Export from the paperclip side first:
paperclipai company export <company-id> --out ./export \ --include company,agents,projects,issues,tasks,skills
duduclaw migrate from paperclip --source ./export --apply --confirm-profile <preview-digest>--source is required (omitting it prints the instructions above). Imports:
- Agents: frontmatter (
name/title/reportsTo/skills) fromagents/<slug>/AGENTS.mdbecomes a DuDuClaw agent, and the body becomesSOUL.md.reportsTomaps directly toreports_to(agents are created in topological order by hierarchy; a detected cycle falls back to no superior for every agent involved and is markedPARTIAL). - Tasks:
tasks/<slug>/TASK.mdbecomes a Task Board entry;recurringbecomes cron. - Skills:
skills/<slug>/SKILL.mdgoes into the agent’s SKILLS/ (scanned first). - COMPANY.md becomes a shared wiki page at
shared/wiki/imported/paperclip-company.md. - The official paperclip export format contains no secrets (channel tokens, API
keys, DB ids), so channels and keys are always
SKIPPED.
Security and data preservation
Section titled “Security and data preservation”- Skills are scanned before install: every
SKILL.mdfirst passes through duduclaw-security’s prompt-injection scanner (6 rule categories). A hit fails closed: nothing is installed, and it is markedSKIPPED(security). Imported skills keepskill_auto_activateatfalse(the safe default). - Never overwritten: an existing agent with the same id is
SKIPPED(or use--rename); a channel token / API key already present in config.toml is aCONFLICT, and the original value is left untouched. - Tokens land encrypted: channel tokens and API keys are encrypted with AES-256-GCM before being written into config.toml — never in plaintext.
- No data loss: v1 does not parse conversation history into
sessions.db, but--applyarchives the original session / conversation files verbatim to~/.duduclaw/imported/<platform>/raw/for later reference.
v1 non-goals (honest boundaries)
Section titled “v1 non-goals (honest boundaries)”- Ingesting conversation history into the database (verbatim archiving only).
- OpenClaw’s newer SQLite cron / auth-profiles (schema unvalidated).
- WhatsApp linked-device credentials (bound to the device, cannot be transferred).
- Hermes profiles other than the active one (migrate each individually via
--source). - Reading paperclip’s Postgres directly (use the official export instead).
- External memory backends (Honcho / Mem0 / QMD / LanceDB).
Q: Does preview mode change anything?
No. Without --apply nothing is written and no channel is started.
Q: I hit a CONFLICT partway through — what do I do?
CONFLICT means the target already has a value, and it was left alone to protect your
existing configuration. To replace it with the imported value, manually remove the old
value from config.toml first and rerun, or import as a separate agent with --rename.
Q: What happens with a non-Claude model?
It is kept as-is in [model] preferred and marked PARTIAL, prompting you to manually
confirm which runtime it maps to (codex / openai_compat). DuDuClaw will not
guess on your behalf.
Profile review and Claude Code
Section titled “Profile review and Claude Code”OpenClaw, Hermes and paperclip migrations show Persona, User, Rules and Contract with input-guard results in preview mode. Apply requires the corresponding --confirm-profile <digest>; changed section content requires another review. This migration digest covers the Persona, User, Rules and Contract sections only; it does not bind every migration output file. In contrast, pack install requires --confirm-profile <digest> from its preview and binds all files it will write. AI sessions cannot run migration. USER.md is limited to 4,000 characters and injected as data, not instructions.
Claude Code migration is also supported: duduclaw migrate from claude-code --source ~/.claude --agent <existing-id>. Add --apply after inspecting the preview; --confirm-profile is not required for this path. It imports curated memory, low-trust knowledge pages and filtered session transcripts into that existing employee; it does not create a new employee. Redaction is enabled by default; --no-redact disables the transcript redaction pass.