Migrate from Claude Code
Section titled “Migrate from Claude Code”Import your Claude Code MCP servers, skills, slash commands, custom subagents, and CLAUDE.md instructions directly inside the Antigravity App—no CLI commands required. If you also have Claude Code plugins installed under ~/.claude/plugins/, you can optionally import those with a single CLI command.
Import in the Antigravity App
Section titled “Import in the Antigravity App”The fastest way to migrate is directly inside the Antigravity App—no terminal commands or manual file copying needed.
-
Start the import
Open the Antigravity App and trigger the built-in migration in any of three ways:
-
From the Home screen: If you chose Software Engineering during onboarding, click Bring over my setup from other Agentic Developer Tools above the composer.
-
Built-in skill: Type
/migrate-agent-settingsin any conversation to run the built-in migration skill. -
Natural language: Ask the agent directly:
Import my setup from Claude Code into Antigravity.
-
-
Confirm what to import
The agent scans your Claude Code paths (and your open workspace’s
.mcp.json, if a workspace is open) and presents a summary grouped by category, along with anything it will skip and why. It never prints secret values such as API keys, tokens, orAuthorizationheaders in chat.Before writing any files, confirm:
- Whether to import everything or leave specific items out (for example, workspace-only MCP servers that would otherwise apply globally inside the new plugin).
- The name for the new plugin (defaults to
migrated-settings).
-
Finish and configure MCP variables
Antigravity creates
~/.gemini/config/plugins/<plugin-name>/withplugin.json,mcp_config.json,skills/,agents/, andrules/, validates the JSON files, and gives you a direct link to the plugin in Customizations.- If no MCP server declares
variables, the plugin loads automatically and its skills, rules, agents, and MCP servers are ready on your next turn. - If any server declares
${VAR}placeholders in itsvariableslist, the plugin starts disabled. Open the plugin page, fill in the requested values, and toggle the plugin on.
- If no MCP server declares
What migrates automatically
Section titled “What migrates automatically”The Antigravity App’s built-in migrate-agent-settings skill imports everything below into ~/.gemini/config/plugins/<name>/ (except installed ~/.claude/plugins/, which use the CLI):
| Claude Code source | Destination in plugin | How it imports |
|---|---|---|
~/.claude.json (mcpServers) | mcp_config.json | Antigravity App (built-in skill) |
<workspace>/ | mcp_config.json | Antigravity App (built-in skill) |
~/ | skills/<skill>/SKILL.md | Antigravity App (built-in skill) |
~/ | skills/<cmd>/SKILL.md | Antigravity App (built-in skill) |
~/ | agents/<agent>.md | Antigravity App (built-in skill) |
~/ | rules/claude.md | Antigravity App (built-in skill) |
~/ (optional) | ~/.gemini/config/plugins/<plugin-name>/ | Antigravity CLI (agy plugin import claude) |
How Claude Code files are converted
Section titled “How Claude Code files are converted”-
Skills (
~/.claude/skills/*/SKILL.md): Copied whole, includingscripts/andreferences/. Because Antigravity requiresnameanddescriptionYAML frontmatter on everySKILL.md, the migration fills in missing frontmatter automatically. -
Slash commands (
~/.claude/commands/*.md): Converted to skills named after each file so you can still invoke them with/<name>. Placeholders such as$ARGUMENTSand$1are rewritten into natural-language instructions. -
Subagents (
~/.claude/agents/*.md): Preserves the system prompt body, setssubagent: trueandmainAgent: false, dropsmodelandcolor, and maps Claude Code tool grants to Antigravity’s native tools:Claude Code tool Antigravity tool Read,Glob,Grepread_fileEdit,MultiEdit edit_fileWritewrite_fileBashrun_command,manage_taskWeb,Search WebFetch search_web -
Global instructions (
~/.claude/CLAUDE.md): Converted intorules/claude.mdwithtrigger: always_on. Tool-specific lines that only apply to Claude Code are stripped and reported in the final summary. -
Name collisions: If an imported MCP server or subagent clashes with an existing Antigravity server or built-in agent (
self,browser,research,deepagent,review-agent), Antigravity prefixes it withclaude-(for example,claude-githuborclaude-reviewer).
Import plugins via CLI (optional)
Section titled “Import plugins via CLI (optional)”You only need this step if you also have Claude Code plugins installed under ~/.claude/plugins/ (including user-scope marketplace installs tracked in ~/.claude/plugins/installed_plugins.json). Everything else above is already handled inside the Antigravity App.
# Import all enabled user-scope Claude Code plugins
agy plugin import claude
# Verify imported plugins and component counts
agy plugin list
The walkthrough below imports a release-tools plugin from ~/.claude/plugins/, verifies its converted skills and MCP server with agy plugin list, and launches agy to invoke the imported /release-tools:deploy-check skill from the slash-command menu:
End-to-end CLI walkthrough: inspecting ~/.claude/plugins/release-tools, importing it with agy plugin import claude, checking agy plugin list, and invoking /release-tools:deploy-check inside agy.
CLI import options
Section titled “CLI import options”# Import a single local Claude Code plugin directory
agy plugin import /path/to/my-claude-plugin
# Re-import plugins that were already imported earlier
agy plugin import claude --force
# Import from both Claude Code and Gemini CLI in one command
agy plugin import
When importing a Claude Code plugin, agy plugin import claude automatically:
- Converts
.claude-plugin/plugin.jsoninto a nativeplugin.jsonmanifest. - Copies
skills/and any extra skill folders listed in the manifest’sskillsfield. - Converts
commands/*.mdinto Antigravity skills. - Migrates
.mcp.jsonserver definitions and resolves${CLAUDE_PLUGIN_ROOT}paths. - Translates supported hook events and tool matchers into
hooks.json.
What does not migrate automatically
Section titled “What does not migrate automatically”Some Claude Code settings differ enough from Antigravity’s model that they are intentionally skipped and reported in your migration summary:
- Hooks and permissions in
~/.claude/settings.json: Claude Code’s tool names and allow-list syntax differ from Antigravity’s. Configure these directly using Lifecycle hooks and Permissions. - Legacy SSE MCP servers: Servers using
"type": "sse"or a legacy/sseendpoint without Streamable HTTP are flagged rather than copied verbatim. Switch to the server’s Streamable HTTP URL, or wrap it with the stdio bridgenpx -y mcp-remote <url>. - Instruction files larger than 24 KB: Each Antigravity rule file has a 24 KB limit. If your
CLAUDE.mdexceeds 24 KB, the agent reports it instead of truncating it silently so you can split it into focused rules or skills.
Disable or revert a migration
Section titled “Disable or revert a migration”Because all migrated items live inside ~/.gemini/config/plugins/<plugin-name>/, reverting is a single action:
- Antigravity App: Open Customizations > Installed, select your migrated plugin (for example,
migrated-settings), and toggle it off or uninstall it. - Antigravity CLI: Run
agy plugin disable <plugin-name>to pause it, oragy plugin uninstall <plugin-name>to remove it completely.
Related documentation
Section titled “Related documentation”- Migrate from Codex: Bring over Codex
config.tomlMCP servers, skills, prompts, andAGENTS.md. - Migrate from Cursor: Convert Cursor
.mdcrules andmcp.jsonconfigurations. - Migrate from Gemini CLI: Import Gemini CLI extensions, skills, and MCP servers.
- Plugins: Install, inspect, enable, disable, and validate Antigravity plugins.
- Agent skills, MCP, and Rules: Learn how Antigravity discovers and loads customizations.