Cmd. /import
Import Codex, Gemini CLI, and Cursor configuration into Claude Code
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Import supported coding-agent configuration.
- Check the input surface and availability before using the examples below.
Purpose
Import supported coding-agent configuration.
/import [codex|gemini|cursor] [--dry-run] [--yes]Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Conditional |
| Aliases | — |
| Documented minimum | v2.1.213 |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
Requires v2.1.213+ (Cursor: v2.1.265+). Unavailable on Bedrock, Google Cloud's Agent Platform, Foundry, Claude Platform on AWS, Claude apps gateway, or with feature-flag fetching off.
Examples
/import cursor --dry-run/import cursor --dry-run
/import cursorPreview with --dry-run before importing instruction files, MCP servers, commands, subagents, and skills. --yes skips the picker; use it after checking the import. The terminal entry point also supports claude import cursor --dry-run.
Effects and persistence
Imports supported settings from another agent. Preview with --dry-run and inspect the resulting files after applying.
Availability and versions
The command requires v2.1.213+; Cursor import requires v2.1.265+. It is unavailable on Bedrock, Google Cloud Agent Platform, Foundry, Claude Platform on AWS, Claude apps gateways, or sessions with feature-flag fetching disabled. In -p, it lists discoveries and the command that confirms the import.
Cautions
Cursor import requires v2.1.265+. Check provider-specific import restrictions.