Import and Migration
Autohand can import sessions, settings, skills, memory, MCP server configuration, and hooks from other AI coding tools. If you are switching from Claude Code, Codex, Gemini, Cursor, Cline, Continue, Augment, OpenCode, Kimi CLI, or Grok CLI, you can bring your existing setup with you.
Overview
When you switch to Autohand from another AI coding tool, you do not have to start from scratch. The import system scans your previous tool’s data directory, reports what it found, and copies the selected data into your Autohand home directory (~/.autohand/).
Imports work in six categories: sessions, settings, skills, memory, mcp, and hooks. Each source tool stores its data differently, so Autohand includes a dedicated importer for each one. Imported files are kept separate from your own configuration and labelled with the source they came from.
Supported sources
Autohand supports importing from ten AI coding tools. Each source provides different categories of data:
| Source | Argument | Data directory | Categories |
|---|---|---|---|
| Claude Code | claude |
~/.claude (or CLAUDE_CONFIG_DIR) |
sessions, settings, skills, memory, hooks |
| OpenAI Codex | codex |
~/.codex (or CODEX_HOME) |
sessions, settings, skills, hooks |
| Google Gemini | gemini |
~/.gemini |
settings, memory, mcp, hooks |
| Cursor | cursor |
~/.cursor |
sessions, settings, skills, mcp, hooks |
| Cline | cline |
~/.cline |
settings |
| Continue.dev | continue |
~/.continue |
settings |
| Augment | augment |
~/.augment |
settings, mcp |
| OpenCode | opencode |
~/.config/opencode |
sessions, settings, skills, memory, mcp |
| Kimi CLI | kimi |
~/.kimi |
sessions, settings, skills, memory, mcp, hooks |
| Grok CLI | grok |
~/.grok |
hooks |
A category only appears for a source when matching data exists on your machine. Sessions are past conversations. Settings are the source tool’s configuration file. Skills are reusable skill files. Memory covers instruction and memory files such as CLAUDE.md, GEMINI.md, or a global AGENTS.md. MCP is MCP server configuration. Hooks are hook definitions.
How to import
You can import using the interactive wizard or run it headlessly from the command line.
Interactive wizard
The easiest way to import is the built-in wizard. Start an Autohand session and run:
/import
Autohand scans your system for installed AI coding tools and shows you what it found. You then choose which source to import from and which categories to include. The slash command accepts the same source names plus --categories, --all, and --dry-run, for example /import claude --categories memory --dry-run.
Headless import
For scripting or quick migration, run the import subcommand directly from the command line:
# Import from Claude Code (opens the category picker in a terminal)
autohand import claude
# Import every available category from Cursor without prompting
autohand import cursor --all
# Import from Codex
autohand import codex
# Import all available categories from every detected source
autohand import --all
In a terminal, autohand import <source> without --all or --categories opens the wizard so you can pick categories. When output is not a terminal (CI, pipes), it imports every available category. Running autohand import with no source outside a terminal and without --all exits with an error asking you to name a source.
| Flag | Description |
|---|---|
--all |
Import all available categories without prompting |
--categories <list> |
Comma-separated categories to import: sessions,settings,skills,memory,mcp,hooks |
--dry-run |
Preview what would be imported without making changes |
--retry-failed |
Accepted by the CLI and suggested after failed items; in CLI 0.9.8 it does not change import behaviour, so re-run the import instead |
Auto-detection
When you run /import without specifying a source, Autohand checks the data directory of each supported tool, such as ~/.claude/, ~/.cursor/, ~/.continue/, and ~/.config/opencode/. If it finds multiple tools, you can choose which one to import from. If none are found, it prints the list of locations it checked.
What gets imported
Here is what Autohand does with each category and where it places the imported data.
Sessions
Conversation history is converted into Autohand sessions under ~/.autohand/sessions/ and added to the session index, so you can browse imported sessions with /sessions and continue them with /resume. Sessions that were already imported are skipped, so running the import again does not create duplicates.
Settings and MCP servers
The source tool’s settings and MCP server configuration are copied into side files in ~/.autohand/, named after the source, for example imported-claude-settings.json or imported-cursor-mcp.json. Each file records importedFrom and importedAt. Your existing Autohand config.json is not overwritten; review the imported file and copy the values you want to keep.
Skills
Skill files are copied into ~/.autohand/skills/imported-<source>/, for example ~/.autohand/skills/imported-claude/.
Memory entries
Claude Code project memory directories and CLAUDE.md files from ~/.claude/projects/ are copied into ~/.autohand/projects/<project>/imported-claude/. Gemini, Kimi CLI, and OpenCode instruction files (GEMINI.md or a global AGENTS.md) are copied into ~/.autohand/memory/imported-<source>/.
Hooks
Hooks from Claude Code, Codex, Cursor, and Grok CLI are converted into Autohand hooks in your config file and saved disabled, with importedFrom metadata. Run /hooks manage to review and enable them. Gemini and Kimi CLI hooks are copied to ~/.autohand/imported-gemini-hooks.json and ~/.autohand/imported-kimi-hooks.json for manual review.
Dry-run mode
Before committing any changes, you can preview what would be imported. The dry-run flag lists each selected category and how many items it contains without writing anything:
# Preview what Claude Code import would do
autohand import claude --dry-run
Example output:
Dry run: Claude Code
sessions: 42 items (42 session files across project directories)
settings: 1 items (Claude Code settings.json)
skills: 3 items (3 skill files)
memory: 2 items (2 projects with memory data)
This is especially useful when importing from a tool you have used for a long time and are not sure how much data has accumulated.
Category-based import
If you only want to bring over specific parts of your setup, use the --categories flag to pick what to import:
# Import only Cursor MCP servers
autohand import cursor --categories mcp
# Import Claude Code sessions and settings, skip memory and skills
autohand import claude --categories sessions,settings
# Import only Gemini memory (GEMINI.md)
autohand import gemini --categories memory
# Import skills from Claude Code
autohand import claude --categories skills
Available categories:
sessions- Past conversations, resumable with/resumesettings- The source tool’s configuration fileskills- Reusable skill filesmemory- Instruction and memory filesmcp- MCP server configurationhooks- Hook definitions, saved disabled for review
Categories that are not available for the chosen source are ignored. If none of the requested categories are available, Autohand lists the ones it did find.
After importing
Once the import finishes, Autohand prints a summary per category (imported, failed, skipped, with skip reasons) and the next steps. Take a few minutes to verify and adjust your setup.
Review imported sessions
Browse and resume the sessions you brought over:
# Browse imported sessions
/sessions
# Resume an imported session
/resume
Check configuration
Imported settings and MCP servers live in ~/.autohand/imported-<source>-*.json files. Compare them with your current configuration:
/config
Copy any model preferences, permission rules, or MCP servers you want to keep into your Autohand configuration. Values are not merged automatically.
Enable imported hooks
If hooks were imported, they are disabled until you review them:
/hooks manage
Test your setup
Run a few typical tasks to make sure everything works as expected. If an imported skill or setting does not behave the way it did in your previous tool, you can edit the imported files directly.
Migration guides
Below are step-by-step instructions for the three most common migration paths.
From Claude Code
Claude Code stores its data in ~/.claude/ (or CLAUDE_CONFIG_DIR). Hooks are also read from a project’s .claude/settings.json and .claude/settings.local.json:
# 1. Preview the import
autohand import claude --dry-run
# 2. Run the full import
autohand import claude --all
# 3. Browse imported sessions
/sessions
# 4. Review and enable imported hooks
/hooks manage
Session transcripts under ~/.claude/projects/ become Autohand sessions. Per-project CLAUDE.md files and memory directories are copied to ~/.autohand/projects/. settings.json is saved as ~/.autohand/imported-claude-settings.json, and skills are copied to ~/.autohand/skills/imported-claude/.
The Claude Code importer does not import MCP servers or subagents. Add MCP servers again with autohand mcp add. Subagents in ~/.claude/agents/ are not imported or read by default; to try them, list the directory in externalAgents.paths with "enabled": true as described in External Agents, then confirm what loaded with /agents definitions. Claude Code skills in ~/.claude/skills/ and a project’s .claude/skills/ load natively without an import.
From Cursor
Cursor keeps its local data in ~/.cursor/. Autohand can import detected sessions, settings, skills, hooks, and MCP server configuration:
# 1. Preview the import
autohand import cursor --dry-run
# 2. Import the supported Cursor categories
autohand import cursor --categories sessions,settings,skills,mcp,hooks
# 3. Review imported settings
/config
The importer reads available session databases, cli-config.json or hooks-backed settings, hooks.json, mcp.json, and skill directories. Cursor memory is not currently imported. Only categories detected on your machine are written.
From Codex
Codex stores its data in ~/.codex/ (or CODEX_HOME). Autohand imports its sessions, config.toml settings, skills, and hooks:
# 1. Preview the import
autohand import codex --dry-run
# 2. Run the full import
autohand import codex --all
# 3. Resume an imported session
/resume
Codex rule files in ~/.codex/rules/ show up as memory in the scan, but CLI 0.9.8 does not copy them yet. Copy any rules you want to keep into your project’s AGENTS.md by hand.
Troubleshooting
- Source not detected - Make sure the source tool’s data directory exists. For example, Claude Code needs
~/.claude/to be present. For Claude Code and Codex, setCLAUDE_CONFIG_DIRorCODEX_HOMEif you use a non-standard location. - Unknown import source - The source must be one of
claude,codex,gemini,cursor,cline,continue,augment,opencode,kimi, orgrok. - Settings conflicts - Imported settings never overwrite your Autohand configuration. They are written to
~/.autohand/imported-<source>-settings.jsonfor you to review and copy over. - Skipped items - The summary lists skip reasons. Sessions that were already imported are skipped on later runs, so re-running an import after a partial failure is safe.
Frequently asked questions
What tools can I import from into Autohand?
Autohand can import data from ten coding tools: Claude Code, Codex, Gemini, Cursor, Cline, Continue, Augment, OpenCode, Kimi CLI, and Grok CLI. The import wizard auto-detects installed tools and shows the categories available for each, drawn from sessions, settings, skills, memory, MCP servers, and hooks. Not every tool supports every category; for example, the Claude Code importer has no MCP category.
How do I import settings from Claude Code to Autohand?
Run /import claude inside an Autohand session or autohand import claude from the command line. Autohand scans ~/.claude/ for sessions, settings.json, skills, hooks, and the CLAUDE.md files and memory directories under ~/.claude/projects/. Select the categories you want to import. Use –dry-run to preview first. The import does not bring over MCP servers or subagents from ~/.claude/agents/; add MCP servers with autohand mcp add, and see External Agents to load agent directories.
Does Autohand import from Cursor?
Autohand imports sessions, settings, hooks, MCP servers, and skills from Cursor. Memory import from Cursor is not yet supported because Cursor does not expose memory data in a format Autohand can read. Other categories like settings and MCP configuration work fully.