Cmd. /import
Import Claude Code or Cursor setup, project files, and recent chats into Codex.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Import Claude Code or Cursor setup, project files, and recent chats into Codex.
- It can bring in settings, MCP servers, plugins, sessions, commands, and project memories; check changed files and config with
/diffand/debug-configafterward.
Purpose
Import Claude Code or Cursor setup, project files, and recent chats into Codex.
/importAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Conditional |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Codex CLI 0.163.0 |
Run it from a local TUI when no task is running. Release 0.157.0 enabled it in remote and local background-server sessions, while the official command page still lists those as unavailable.
Examples
/importWhen to use it
- Inspect Claude Code project instructions before moving them into Codex
AGENTS.mdand config. - Select recent Claude Code chats that should continue in Codex.
- After import, run
/diff,/status, and/debug-configbefore committing any changed files.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/import | Migrates supported external-agent artifacts | You are moving Claude Code workflow into Codex |
/init | Creates a new AGENTS.md scaffold | You are starting Codex instructions from scratch |
/debug-config | Explains active config layers | You need to inspect imported settings |
Effects and persistence
Imports supported external configuration into Codex. Inspect the configuration before and after applying it.
/import is an official slash command for importing supported Cursor and Claude Code configuration,
MCP servers, plugins, sessions, commands, and project memories into Codex.
Changes
/importwas added to the official slash command table.- The import picker can bring supported Claude Code setup, project files, and recent chats into Codex.
- The command is limited to local TUI sessions and is unavailable during running tasks, remote sessions, or local app-server daemon connections.
Cautions
Before applying, check for conflicts with AGENTS.md, .codex/config.toml, and skill or plugin rules; inspect the resulting diff.
In 0.145.0 the picker expanded across Cursor and Claude Code artifacts. After import, inspect not only
the file diff but /plugins, /mcp, /skills, and thread history metadata.
- Always inspect
/diffand/debug-configafter import. - Imported instructions, hooks, MCP servers, plugins, or skills may conflict with team policy.
- From 0.157.0,
/importalso works in remote sessions and local background-server sessions. The official command page still lists those sessions as unavailable; if the command is blocked, import from a local TUI and review the diff. /importis unavailable while a task is running. Session discovery covers up to 50 chats from the last 30 days.
Official sources
Complete command list · Verification scope · History for this command