Codex Machine Migration

    by QINYI TAN

    1

    Plan and verify a complete Codex workstation move: projects, skills, context, eligible session history, target setup, and real UI readback. Tailscale + SSH can carry an audited transfer package.

    Free

    Security scanned

    Works with the AI Agents you already use

    Codex Machine Migration

    Example session with this skill installed

    I am moving my Codex workstation from an old Mac to a new Mac. The projects are on both machines, but I need the skills, project context, eligible Codex history, and Sidebar registration to work on the new one. Please start with a read-only inventory, propose a Tailscale + SSH transfer plan, and tell me exactly what I need to do for login and secrets. Do not copy credentials or enable automations. Show a verification ledger before calling the migration complete.

    • Read your context and instructions
    • Compiled the codex machine migration

    Migration contract (illustrative result)

    Goal: Move explicitly selected projects, user-owned skills, handoff documents, and recoverable project-linked Codex history to the new Mac. Preserve the old Mac and existing target data.

    Acceptance: Each project opens from its mapped target path; Git commit/status and selected files match the manifest; project rules and handoff are readable; CLI/scripts pass read-only smoke checks; eligible history and Sidebar entries appear in target Codex UI; a new Codex session reports Git status without writing.

    Evidence: Redacted manifest, SHA-256 list, path map, backup/dry-run result for any history adapter, target bootstrap checklist, and UI readback.

    Red lines: No raw auth.json, cookies, SSH private keys, complete .env, browser profile, or Codex state database in the transfer package. Do not delete old machine data or resume scheduled jobs.

    LayerTarget actionVerificationStatus
    Projects and scriptsClone pinned commits; stage approved local filesCommit/status, checksums, script smokePending
    Skills and contextInstall selected skills, AGENTS.md and handoffSkill validation and new-session readbackPending
    History and SidebarVersion-match recovery adapter; backup and dry-run firstTarget Codex UI and selected-session readbackBLOCKED until adapter is verified
    Identity and secretsSign in again; inject values from approved secret sourceMasked presence and harmless canaryOwner action needed
    Runtime and dataReinstall dependencies; logical restore of approved project DBVersion checks, schema/data readbackPending
    AutomationRestore recipes in PAUSED stateDefinition and paused-status readbackPending

    Next steps: Confirm exact source and target paths and Codex versions, then run the read-only inventory. Build an allowlisted staging package and audit it before transferring over Tailscale + SSH. Keep the migration BLOCKED until target login, history/Sidebar readback, and a read-only Codex task pass.

    No raw auth.json

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Moving Codex to a new computer is more than copying ~/.codex. This skill guides a complete, verifiable move of a Codex workstation while keeping the old machine intact until the new one passes acceptance.

    It inventories project code, scripts, README and AGENTS.md files, user-owned skills, generated assets, task context, handoffs, path mappings, and project-linked Codex history. It separates files that can be transferred from state that must be rebuilt on the target. For the history and Sidebar layer, it requires a version-matched recovery adapter, backup, dry run, rollback plan, and actual Codex UI readback. If that recovery is unavailable, it reports the migration as blocked instead of claiming success.

    Tailscale + SSH/SFTP is an optional transport for an explicit, audited staging package. It is not the migration strategy. The skill includes a read-only Python transfer-tree audit script, a transfer contract, and manifest/handoff examples.

    On the new computer, it directs the operator to sign in to Codex again, reinject secrets through a secret manager or manual entry, generate new SSH keys, reinstall Python/Node/system dependencies, logically restore approved project databases, sign in to browser and external services again, and restore automations in a paused state. It never recommends raw copying auth.json, cookies, private keys, a full .env, or Codex's internal database.

    Completion requires project, path, runtime, selected history, Sidebar, and a read-only Codex task to be checked on the target. Platform and version differences can prevent full history recovery. The source machine and backups remain available until acceptance passes.

    Community-maintained, MIT-licensed skill; not an official OpenAI product. The files are also published on GitHub.

    Codex history and Sidebar recovery are version/schema dependent and may be impossible on some releases or across OSes. The skill provides a guarded process and audit script, not an automatic one-click migration. Target login, secrets, SSH keys, dependencies, databases, external accounts, and UI acceptance require operator action. Preserve backups and the old machine until readback passes.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Software
    Codex Desktop
    orCodex CLI on source and target
    Access to source and target workstationsGit
    Optional
    Python 3

    Tailscale and OpenSSH for the optional network transfer.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Browser
    Network Access
    Environment Variables

    User-approved project and Codex paths only. Network access is for an explicit Tailscale + SSH transfer; browser access is for target sign-in and UI acceptance. Never copy raw credentials, cookies, private keys, full .env files, or internal state databases.

    Listed12 days ago

    What's inside

    Creator

    QINYI TAN

    QINYI TAN

    Frequently Asked Questions

    No. Sign in on the target and create or inject secrets through an approved secret manager, Keychain, or manual process. Generate fresh SSH keys. The transfer package must exclude raw auth.json, cookies, private keys, complete .env files, and internal databases.

    No universal guarantee. Match Codex versions and use only an audited recovery method after backup and dry-run. Confirm selected history, parent/fork relationships, and Sidebar projects in the target Codex UI. If any required layer cannot be read back, report the migration as incomplete.

    It is an optional transport channel for an allowlisted package. The plan also covers projects, context, recoverable history, target login and secrets, runtime dependencies, logical database restore, paused automations, and real UI acceptance.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free