openclaw migrate
Plugin-स्वामित्व वाले माइग्रेशन प्रदाता के माध्यम से किसी दूसरे एजेंट सिस्टम से स्थिति आयात करें। बंडल किए गए प्रदाता Codex CLI स्थिति, Claude, और Hermes को कवर करते हैं; तृतीय-पक्ष plugins अतिरिक्त प्रदाता पंजीकृत कर सकते हैं।
कमांड
किसी पंजीकृत माइग्रेशन प्रदाता का नाम, उदाहरण के लिए
hermes। इंस्टॉल किए गए प्रदाता देखने के लिए openclaw migrate list चलाएँ।योजना बनाएँ और स्थिति बदले बिना बाहर निकलें।
स्रोत स्थिति निर्देशिका को ओवरराइड करें। Hermes डिफ़ॉल्ट रूप से
~/.hermes का उपयोग करता है।समर्थित क्रेडेंशियल बिना संकेत दिए आयात करें। इंटरैक्टिव apply, पहचाने गए auth क्रेडेंशियल आयात करने से पहले पूछता है, जहाँ डिफ़ॉल्ट रूप से हाँ चयनित होता है; गैर-इंटरैक्टिव
--yes में इन्हें आयात करने के लिए --include-secrets आवश्यक है।इंटरैक्टिव संकेत सहित auth क्रेडेंशियल आयात छोड़ें।
जब योजना conflicts रिपोर्ट करे, तब apply को मौजूदा targets बदलने की अनुमति दें।
पुष्टिकरण संकेत छोड़ें। गैर-इंटरैक्टिव मोड में आवश्यक।
skill नाम या item id द्वारा एक skill copy item चुनें। कई skills माइग्रेट करने के लिए flag दोहराएँ। छोड़े जाने पर, इंटरैक्टिव Codex माइग्रेशन checkbox selector दिखाते हैं और गैर-इंटरैक्टिव माइग्रेशन सभी planned skills रखते हैं।
Plugin नाम या item id द्वारा एक Codex Plugin install item चुनें। कई Codex plugins माइग्रेट करने के लिए flag दोहराएँ। छोड़े जाने पर, इंटरैक्टिव Codex माइग्रेशन native Codex Plugin checkbox selector दिखाते हैं और गैर-इंटरैक्टिव माइग्रेशन सभी planned plugins रखते हैं। यह केवल Codex app-server inventory द्वारा खोजे गए source-installed
openai-curated Codex plugins पर लागू होता है।केवल Codex। native Plugin activation की योजना बनाने से पहले ताज़ा source Codex app-server
app/list traversal बाध्य करें। माइग्रेशन planning तेज़ रखने के लिए डिफ़ॉल्ट रूप से बंद।pre-apply backup छोड़ें। local OpenClaw state मौजूद होने पर
--force आवश्यक है।जब apply अन्यथा backup छोड़ने से मना कर देता, तब
--no-backup के साथ आवश्यक।योजना या apply परिणाम को JSON के रूप में प्रिंट करें।
--json और बिना --yes के, apply योजना प्रिंट करता है और state को mutate नहीं करता।सुरक्षा मॉडल
openclaw migrate पहले preview करता है।
Apply से पहले preview
Apply से पहले preview
प्रदाता कुछ भी बदलने से पहले itemized योजना लौटाता है, जिसमें conflicts, छोड़े गए items, और sensitive items शामिल होते हैं। JSON plans, apply output, और migration reports nested secret-looking keys जैसे API keys, tokens, authorization headers, cookies, और passwords को redact करते हैं।
openclaw migrate apply <provider> योजना का preview करता है और state बदलने से पहले संकेत देता है, जब तक --yes सेट न हो। गैर-इंटरैक्टिव मोड में, apply के लिए --yes आवश्यक है।Backups
Backups
Apply माइग्रेशन लागू करने से पहले OpenClaw backup बनाता और verify करता है। अगर अभी तक कोई local OpenClaw state मौजूद नहीं है, तो backup step छोड़ा जाता है और माइग्रेशन जारी रह सकता है। state मौजूद होने पर backup छोड़ने के लिए,
--no-backup और --force दोनों पास करें।Conflicts
Conflicts
जब योजना में conflicts हों तो apply जारी रखने से मना कर देता है। योजना की समीक्षा करें, फिर अगर मौजूदा targets बदलना जानबूझकर है तो
--overwrite के साथ फिर चलाएँ। Providers अभी भी migration report directory में overwritten files के लिए item-level backups लिख सकते हैं।Secrets
Secrets
इंटरैक्टिव apply पूछता है कि पहचाने गए auth credentials आयात करने हैं या नहीं, जहाँ डिफ़ॉल्ट रूप से हाँ चयनित होता है। उन्हें छोड़ने के लिए
--no-auth-credentials का उपयोग करें, या --yes के साथ unattended credential import के लिए --include-secrets का उपयोग करें।Claude प्रदाता
बंडल किया गया Claude प्रदाता डिफ़ॉल्ट रूप से~/.claude पर Claude Code state पहचानता है। किसी विशिष्ट Claude Code home या project root को आयात करने के लिए --from <path> का उपयोग करें।
Claude क्या आयात करता है
- Project
CLAUDE.mdऔर.claude/CLAUDE.mdको OpenClaw एजेंट workspace में। - User
~/.claude/CLAUDE.mdको workspaceUSER.mdमें append किया गया। - project
.mcp.json, Claude Code~/.claude.json, और Claude Desktopclaude_desktop_config.jsonसे MCP server definitions। - Claude skill directories जिनमें
SKILL.mdशामिल है। - Claude command Markdown files को केवल manual invocation वाले OpenClaw skills में परिवर्तित किया गया।
Archive और manual-review state
Claude hooks, permissions, environment defaults, local memory, path-scoped rules, subagents, caches, plans, और project history को migration report में सुरक्षित रखा जाता है या manual-review items के रूप में रिपोर्ट किया जाता है। OpenClaw hooks execute नहीं करता, broad allowlists copy नहीं करता, या OAuth/Desktop credential state को अपने-आप import नहीं करता।Codex प्रदाता
बंडल किया गया Codex प्रदाता डिफ़ॉल्ट रूप से~/.codex पर Codex CLI state पहचानता है, या
जब वह environment variable set हो तो CODEX_HOME पर। किसी विशिष्ट Codex home का
inventory लेने के लिए --from <path> का उपयोग करें।
इस प्रदाता का उपयोग तब करें जब आप OpenClaw Codex harness पर जा रहे हों और
उपयोगी personal Codex CLI assets को सोच-समझकर promote करना चाहते हों। Local Codex app-server
launches per-agent CODEX_HOME का उपयोग करते हैं, इसलिए वे डिफ़ॉल्ट रूप से आपके personal
~/.codex को नहीं पढ़ते। सामान्य process HOME अब भी inherited होता है, इसलिए Codex
shared $HOME/.agents/* skills/plugin marketplace entries देख सकता है और
subprocesses user-home config और tokens खोज सकते हैं।
Interactive terminal में openclaw migrate codex चलाने पर full
plan का preview होता है, फिर final apply confirmation से पहले checkbox selectors खुलते हैं। Skill
copy items पहले prompt किए जाते हैं। Bulk selection के लिए Toggle all on या Toggle all off का उपयोग करें।
Rows toggle करने के लिए Space दबाएँ, या highlighted
row activate करके जारी रखने के लिए Enter दबाएँ। Planned skills checked शुरू होते हैं, conflict skills unchecked शुरू होते हैं, और
Skip for now इस run के लिए skill copies छोड़ देता है, जबकि plugin
selection जारी रहता है। जब source-installed curated Codex plugins migratable हों और
--plugin supplied न हो, तो migration फिर Plugin name द्वारा native Codex Plugin
activation के लिए prompt करता है। Plugin items
checked शुरू होते हैं जब तक target OpenClaw Codex Plugin config में वह
Plugin पहले से न हो। मौजूदा target plugins unchecked शुरू होते हैं और
conflict: plugin exists जैसा conflict hint दिखाते हैं; उस run में कोई native Codex
plugins migrate न करने के लिए Toggle all off चुनें, या applying से पहले रुकने के लिए Skip for now चुनें। Scripted या
exact runs के लिए, प्रति skill एक बार --skill <name> पास करें, उदाहरण के लिए:
--plugin <name> का उपयोग करें:
Codex क्या आयात करता है
$CODEX_HOME/skillsके अंतर्गत Codex CLI skill directories, Codex के.systemcache को छोड़कर।$HOME/.agents/skillsके अंतर्गत personal AgentSkills, जब आप per-agent ownership चाहते हैं तो current OpenClaw agent workspace में copy किए जाते हैं।- Codex app-server
plugin/listके माध्यम से खोजे गए source-installedopenai-curatedCodex plugins। Planning हर enabled installed Plugin के लिएplugin/readपढ़ता है। App-backed plugins के लिए source Codex app-server account response का ChatGPT subscription account होना आवश्यक है; non-ChatGPT या missing account responses कोcodex_subscription_requiredके साथ skip किया जाता है। डिफ़ॉल्ट रूप से, migration sourceapp/listcall नहीं करता, इसलिए account gate पास करने वाले app-backed plugins source app accessibility verification के बिना planned होते हैं, और account lookup transport failurescodex_account_unavailableके साथ skip होते हैं। जब आप migration से ताज़ा sourceapp/listsnapshot force कराना चाहते हों और native activation plan करने से पहले हर owned app का present, enabled, और accessible होना require करना चाहते हों, तब--verify-plugin-appsपास करें। उस mode में, account lookup transport failures source app inventory verification में fall through करते हैं। Current process के लिए source app inventory snapshot memory में रखा जाता है; इसे migration output या target config में नहीं लिखा जाता। Disabled plugins, unreadable Plugin details, subscription-gated source accounts, और, जब verification requested हो, missing apps, disabled apps, inaccessible apps, या source app inventory failures target config entries के बजाय typed reasons वाले manual skipped items बनते हैं। Apply हर selected eligible Plugin के लिए app-serverplugin/installcall करता है, भले ही target app-server पहले से उस Plugin को installed और enabled रिपोर्ट करे। Migrated Codex plugins केवल उन sessions में usable होते हैं जो native Codex harness चुनते हैं; उन्हें OpenClaw provider runs, ACP conversation bindings, या अन्य harnesses के लिए expose नहीं किया जाता।
Manual-review Codex state
Codexconfig.toml, native hooks/hooks.json, non-curated marketplaces, cached
Plugin bundles जो source-installed curated plugins नहीं हैं, और source-installed
plugins जो source subscription gate fail करते हैं, automatically activated नहीं होते।
जब --verify-plugin-apps set हो, तो source app-inventory
gate fail करने वाले plugins भी skip किए जाते हैं। उन्हें manual review के लिए
migration report में copy या report किया जाता है।
Migrated source-installed curated plugins के लिए, apply लिखता है:
plugins.entries.codex.enabled: trueplugins.entries.codex.config.codexPlugins.enabled: trueplugins.entries.codex.config.codexPlugins.allow_destructive_actions: true- हर selected Plugin के लिए
marketplaceName: "openai-curated"औरpluginNameवाली एक explicit Plugin entry
plugins["*"] नहीं लिखता और स्थानीय marketplace cache
paths कभी संग्रहित नहीं करता। स्रोत-पक्ष subscription विफलताएं manual items पर typed
reasons जैसे codex_subscription_required, codex_account_unavailable,
plugin_disabled, या plugin_read_unavailable के साथ रिपोर्ट की जाती हैं। --verify-plugin-apps के साथ,
source app-inventory विफलताएं app_inaccessible,
app_disabled, app_missing, या app_inventory_unavailable के रूप में भी दिखाई दे सकती हैं। छोड़े गए plugins
target config में नहीं लिखे जाते।
Target-पक्ष auth-required installs प्रभावित plugin item पर
status: "skipped", reason: "auth_required", और sanitized app identifiers के साथ रिपोर्ट किए जाते हैं।
उनकी explicit config entries तब तक disabled लिखी जाती हैं जब तक आप उन्हें फिर से authorize और
enable नहीं करते। अन्य install विफलताएं item-scoped error results होती हैं।
यदि planning के दौरान Codex app-server plugin inventory अनुपलब्ध है, तो migration
पूरे migration को विफल करने के बजाय cached bundle advisory items पर fallback करता है।
Hermes प्रदाता
Bundled Hermes प्रदाता default रूप से~/.hermes पर state detect करता है। जब Hermes कहीं और हो, तो --from <path> का उपयोग करें।
Hermes क्या import करता है
config.yamlसे default model configuration।providersऔरcustom_providersसे configured model providers और custom OpenAI-compatible endpoints।mcp_serversयाmcp.serversसे MCP server definitions।- OpenClaw agent workspace में
SOUL.mdऔरAGENTS.md। - Workspace memory files में append किए गए
memories/MEMORY.mdऔरmemories/USER.md। - OpenClaw file memory के लिए memory config defaults, साथ ही Honcho जैसे external memory providers के लिए archive या manual-review items।
- वे Skills जिनमें
skills/<name>/के अंतर्गतSKILL.mdfile शामिल है। skills.configसे per-skill config values।- OpenCode
auth.jsonसे OpenCode OpenAI OAuth credentials, जब interactive credential migration स्वीकार किया जाता है, या जब--include-secretsset होता है। Hermesauth.jsonOAuth entries legacy state हैं जिन्हें manual OpenAI reauth या doctor repair के लिए report किया जाता है। - Hermes
.envऔर OpenCodeauth.jsonसे supported API keys और tokens, जब interactive credential migration स्वीकार किया जाता है, या जब--include-secretsset होता है।
Supported .env keys
AI_GATEWAY_API_KEYALIBABA_API_KEYANTHROPIC_API_KEYARCEEAI_API_KEYCEREBRAS_API_KEYCHUTES_API_KEYCLOUDFLARE_AI_GATEWAY_API_KEYCOPILOT_GITHUB_TOKENDASHSCOPE_API_KEYDEEPINFRA_API_KEYDEEPSEEK_API_KEYFIREWORKS_API_KEYGEMINI_API_KEYGH_TOKENGITHUB_TOKENGLM_API_KEYGOOGLE_API_KEYGROQ_API_KEYHF_TOKENHUGGINGFACE_HUB_TOKENKILOCODE_API_KEYKIMICODE_API_KEYKIMI_API_KEYMINIMAX_API_KEYMINIMAX_CODING_API_KEYMISTRAL_API_KEYMODELSTUDIO_API_KEYMOONSHOT_API_KEYNVIDIA_API_KEYOPENAI_API_KEYOPENCODE_API_KEYOPENCODE_GO_API_KEYOPENCODE_ZEN_API_KEYOPENROUTER_API_KEYQIANFAN_API_KEYQWEN_API_KEYTOGETHER_API_KEYVENICE_API_KEYXAI_API_KEYXIAOMI_API_KEYZAI_API_KEYZ_AI_API_KEY
Archive-only state
Hermes state जिसे OpenClaw सुरक्षित रूप से interpret नहीं कर सकता, manual review के लिए migration report में copy किया जाता है, लेकिन इसे live OpenClaw config या credentials में load नहीं किया जाता। यह opaque या unsafe state को सुरक्षित रखता है, बिना यह दिखावा किए कि OpenClaw उसे automatically execute या trust कर सकता है:plugins/sessions/logs/cron/mcp-tokens/state.db
Apply करने के बाद
Plugin contract
Migration sources plugins हैं। कोई pluginopenclaw.plugin.json में अपने provider ids declare करता है:
api.registerMigrationProvider(...) call करता है। Provider detect, plan, और apply implement करता है। Core CLI orchestration, backup policy, prompts, JSON output, और conflict preflight का owner है। Core reviewed plan को apply(ctx, plan) में pass करता है, और providers compatibility के लिए plan को केवल तभी rebuild कर सकते हैं जब वह argument absent हो।
Provider plugins item construction और summary counts के लिए openclaw/plugin-sdk/migration, साथ ही conflict-aware file copies, archive-only report copies, cached config-runtime wrappers, और migration reports के लिए openclaw/plugin-sdk/migration-runtime का उपयोग कर सकते हैं।
Onboarding integration
जब कोई provider known source detect करता है, तो onboarding migration offer कर सकती है।openclaw onboard --flow import और openclaw setup --wizard --import-from hermes दोनों वही plugin migration provider उपयोग करते हैं और apply करने से पहले अभी भी preview दिखाते हैं।
Onboarding imports के लिए fresh OpenClaw setup आवश्यक है। यदि आपके पास पहले से local state है, तो पहले config, credentials, sessions, और workspace reset करें। Backup-plus-overwrite या merge imports existing setups के लिए feature-gated हैं।
Related
- Hermes से migration: user-facing walkthrough।
- Claude से migration: user-facing walkthrough।
- Migrating: OpenClaw को नई machine पर move करें।
- Doctor: migration apply करने के बाद health check।
- Plugins: plugin install और registration।