Switching coding tools usually means rebuilding your setup by hand: the instruction file, the MCP servers, the saved prompts. Claude Code has a command that reads the other tool’s configuration on your machine and brings it over.
/import cursor --dry-run
The sources it knows are codex (OpenAI Codex), gemini (Google Gemini CLI) and cursor. It brings over instruction files, MCP servers, commands, subagents and skills. --dry-run previews what it found without writing anything, and --yes skips the interactive picker.
From the shell, claude import [source] starts an interactive session that runs /import for you.
claude import cursor
In non-interactive mode with -p, the command only lists what it found and gives you the command that confirms the import. That’s a safe default for scripts, since nothing is written by surprise.
Caveats from the commands reference: importing from Cursor needs v2.1.265 or later. The command isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry or Claude Platform on AWS, or through a Claude apps gateway. It’s also unavailable when you turn off feature-flag fetching.
I’d run the dry run first, read the list, and then pick what you actually want. Old tool configs tend to carry rules nobody remembers writing.
Further reading: Claude Code docs: commands, Claude Code docs: CLI reference
Going deeper: Guide: advanced tmux, a config that grows with you, formats, layouts and more