Skip to content
Migrate from Codex2-0Antigravity AppGet StartedMigrate from Codex Antigravity App Get StartedAntigravity App

Import your Codex config.toml MCP servers, skills, custom prompts, and global AGENTS.md instructions directly inside the Antigravity App—no CLI commands or manual conversion required.

  1. Start the import

    Open the Antigravity App and start the built-in migration in any of three ways:

    • From the Home screen: If you selected Software Engineering during onboarding, click Bring over my setup from other Agentic Developer Tools above the composer.

    • Built-in skill: Type /migrate-agent-settings in any conversation to run the built-in migration skill.

    • Natural language: Ask the agent directly:

      Import my setup from Codex into Antigravity.
  2. Confirm what to import

    The agent inspects ~/.codex/ and lists what it found by count and name (without printing secret values in chat), along with anything that will be skipped. Before writing any files, confirm:

    • Whether to import everything or leave specific items out.
    • What to name the generated plugin (defaults to migrated-settings).
  3. Finish and configure MCP variables

    Antigravity writes ~/.gemini/config/plugins/<plugin-name>/, validates plugin.json and mcp_config.json, and returns a direct link to the plugin in Customizations.

    • If no variables are needed, the plugin loads automatically and is ready on your next turn.
    • If any migrated MCP server uses bearer_token_env_var, env_http_headers, or ${VAR} placeholders, Antigravity declares those entries in variables and starts the plugin disabled. Open the plugin page, enter the values, and toggle the plugin on.

The Antigravity App’s built-in migrate-agent-settings skill imports everything below into ~/.gemini/config/plugins/<name>/:

Codex sourceDestination in pluginConversion details
~/.codex/config.toml ([mcp_servers.<name>])mcp_config.jsonMaps command, args, env, cwd, url, http_headers, env_http_headers, and bearer_token_env_var
~/.codex/skills/*/SKILL.mdskills/<skill>/SKILL.mdCopies each skill folder whole, including scripts/ and references/
~/.codex/prompts/*.mdskills/<prompt>/SKILL.mdConverts prompts to /<name> skills and rewrites $ARGUMENTS / $1
~/.codex/AGENTS.mdrules/codex.mdAdds trigger: always_on frontmatter (up to 24 KB per rule file)

Antigravity converts [mcp_servers.<name>] tables from ~/.codex/config.toml into mcp_config.json inside your migrated plugin:

  • Stdio servers: command, args, env, and cwd map directly. Relative or ~/$HOME cwd paths are resolved to absolute paths.
  • Remote HTTP servers: url maps to url, and http_headers maps to headers.
  • Environment-backed headers and bearer tokens: Because plugin MCP configs substitute ${VAR} values from declared variables rather than expanding arbitrary OS environment variables, Codex bearer_token_env_var = "API_TOKEN" becomes "Authorization": "Bearer ${API_TOKEN}" with an API_TOKEN entry in variables, and each env_http_headers entry Header = "X" becomes "Header": "${X}" plus an X entry in variables.

Before

[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
bearer_token_env_var = "GITHUB_MCP_TOKEN"

[mcp_servers.local_db]
command = "npx"
args = ["-y", "@acme/postgres-mcp"]
cwd = "~/projects/api"

After

{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer ${GITHUB_MCP_TOKEN}"
      },
      "variables": [
        {
          "name": "GITHUB_MCP_TOKEN",
          "title": "GitHub MCP Token",
          "description": "Bearer token for the GitHub MCP server"
        }
      ]
    },
    "local_db": {
      "command": "npx",
      "args": ["-y", "@acme/postgres-mcp"],
      "cwd": "/Users/alex/projects/api"
    }
  }
}

  • Legacy SSE MCP servers: Servers pointing to a legacy /sse endpoint without Streamable HTTP are flagged during discovery. Update them to Streamable HTTP or bridge them via npx -y mcp-remote <url>.
  • Instruction files larger than 24 KB: Antigravity caps each rule file at 24 KB. If ~/.codex/AGENTS.md exceeds 24 KB, the agent informs you rather than truncating it so you can split it into smaller rules or skills.
  • Name collisions: If a Codex MCP server has the same name as an existing Antigravity server, the migrated entry is prefixed (for example, codex-github).

Once created, your migrated plugin works in both the Antigravity App and the Antigravity CLI:

  • Antigravity App: Open Customizations > Installed to inspect, toggle, configure MCP variables, or uninstall migrated-settings.
  • Antigravity CLI: Run agy plugin list to view staged components, agy plugin disable migrated-settings to pause it, or agy plugin uninstall migrated-settings to remove it.