# Codex Machine Migration

> 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.

Codex Machine Migration is a free AI agent skill on Agensi by QINYI TAN, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [QINYI TAN](https://www.agensi.io/creators/qinyi-tan)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/codex-machine-migration
- Tags: devops, prompt-engineering, productivity, codex, migration, tailscale, ssh, developer-tools

## 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.

## Requires

- Codex Desktop or Codex CLI on source and target
- Access to source and target workstations
- Git
- Optional: Python 3

Tailscale and OpenSSH for the optional network transfer.

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Codex Machine Migration skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does this copy my Codex login or SSH keys?

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.

### Will it restore every Codex conversation and Sidebar project?

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.

### Is Tailscale + SSH the migration solution?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
