Cmd. /import
Import Codex, Gemini CLI, and Cursor configuration into Claude Code
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 | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
Cursor import requires v2.1.265+. Check provider-specific import restrictions.
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.