Skip to content

How to Connect Gemini (Antigravity CLI) to Instagram Edits on Mac

Instagram Edits is finally available on macOS at the time of writing this article, and it comes with support for MCP tools, so you can pick any AI assistant to edit your Reels.

I've already shared a detailed guide on how to edit Instagram Reels using Claude and Edits on Mac, which covers connecting Edits and using MCP to create Reels with AI. This one specifically covers using Google's Antigravity CLI to edit your Instagram Reels.

Since the Google AI Pro offer is now available to more users, this guide covers everything you need to use Edits' MCP server with Google Antigravity.

5 steps · About 15 minutes · Mac only

Gemini connected to Instagram Edits on a Mac

Before you begin

Have these ready and the steps go smoothly.

  • A Mac with an Apple chip (M1 or newer) on macOS 15.1 or later
  • The Edits app for Mac, signed in with your Instagram account (free from edits.instagram.com/desktop)
  • A Google account; a personal Gmail account works
  • About 15 minutes

Step 1: Install Antigravity CLI

  1. 1

    Open Terminal and check for Antigravity

    Press Command + Space, type Terminal and press Return. Click inside the window, paste this command and press Return.

    agy --version
    Terminal with agy --version typed
  2. 2

    Check the result

    A version number such as 1.5.3 means it's already installed: skip to Step 2. If you see command not found: agy, do actions 3 to 5.

    Terminal saying command not found: agy
  3. 3

    Install it with Google's install command

    It downloads Antigravity CLI from Google and installs it.

    curl -fsSL https://antigravity.google/cli/install.sh | bash
    Terminal with the Antigravity CLI install command typed
  4. 4

    Wait for it to finish

    It takes a few seconds. Lines that start with ERROR: logging before google.Init are normal; ignore them.

    Terminal showing Antigravity CLI binary placed successfully
  5. 5

    Let Terminal find Antigravity

    Nothing appears when it works.

    source ~/.zshrc
    Terminal after running source ~/.zshrc
  6. 6

    Check that it works

    agy --version

    You should see a version number such as 1.5.3

    Terminal showing the Antigravity CLI version number

Rather use Claude? See how to install Claude Code on Mac.

Step 2: Turn on the automation server in Edits

  1. 1

    Open the Edits app

    Sign in with Instagram if it asks. You'll see your Projects.

    The Edits app for Mac showing Projects
  2. 2

    Click Edits in the menu bar, then Settings

    Or press Command + , (comma).

    The Edits menu with Settings highlighted
  3. 3

    Click Automation on the left

    Edits Settings with Automation in the sidebar
  4. 4

    Turn on Enable Automation Server

    Leave Edits open while you use Antigravity. If Edits is closed, Antigravity can't reach it.

    Edits Automation settings with the Enable Automation Server switch

Step 3: Connect Antigravity CLI to Edits

  1. 1

    In Terminal, paste this command but don't press Return yet

    Press Command + Tab to switch back to Terminal.

    agy mcp add --header "Authorization: Bearer $(pbpaste)" edits http://127.0.0.1:19501/mcp
    Terminal with the agy mcp add command typed
  2. 2

    In Edits, click Copy under Access token

    Never share this token: anyone who has it can edit your projects while the switch is on.

    Edits Automation settings with the Copy button under Access token highlighted
  3. 3

    Go back to Terminal and press Return

    Terminal confirming the edits MCP server was added
  4. 4

    Check that the connection is saved

    Missing? Repeat actions 1 to 3.

    agy mcp list

    You should see a line for edits that says enabled

    Terminal listing the edits MCP server as enabled

Step 4: Start Antigravity CLI and sign in

  1. 1

    Go to your Movies folder

    Antigravity only sees files in the folder you start it from. Videos in Downloads? Use cd ~/Downloads instead.

    cd ~/Movies
    Terminal in the Movies folder
  2. 2

    Start Antigravity CLI

    agy
    Terminal with agy typed
  3. 3

    Press Return to choose Google OAuth

    Only the first time you start Antigravity CLI.

    Antigravity CLI welcome screen with Google OAuth selected
  4. 4

    Sign in with your Google account in the browser window that opens

    Only the first time.

    Antigravity CLI asking you to sign in with Google in the browser
  5. 5

    Trust the folder

    Only the first time.

    Antigravity CLI asking whether to trust the Movies folder
  6. 6

    Find the message box

    It's the line at the bottom that starts with >. Type your requests there and press Return.

    Antigravity CLI ready, with the message box at the bottom
  7. 7

    Check that Antigravity can see Edits

    edits with a green dot and Connected means it works. Press Esc to close the list.

    Paste into Antigravity

    /mcp

    Antigravity CLI showing the edits server as Connected

Step 5: Edit a Reel with Antigravity CLI

  1. 1

    Put your clips in one folder inside Movies

    Here it's a folder called Coffee clips with five short videos. Keep Edits open to watch the changes.

  2. 2

    Ask Antigravity to list your Edits projects

    Paste into Antigravity

    List my Instagram Edits projects

    Antigravity CLI with a request to list Edits projects
  3. 3

    Give Antigravity permission to use Edits

    Press the down arrow once to pick Yes, grant permission for edits in this conversation, then press Return.

    Antigravity CLI asking for permission to use Edits
  4. 4

    Check the list of projects

    If you see your Edits projects, the connection works.

    Antigravity CLI listing the Edits projects
  5. 5

    Ask Antigravity to make a new project

    Change Coffee clips to your folder's name. If it asks for permission again, choose the same option as in action 3.

    Paste into Antigravity

    Make a new Edits project called "Coffee Reel" using the clips in the "Coffee clips" folder, 3 seconds each

    Antigravity CLI with a request to make the Coffee Reel project
  6. 6

    Check the new project in Edits

    In about a minute, Coffee Reel opens with your clips on the timeline.

    Edits showing the new Coffee Reel project with five clips
  7. 7

    Ask Antigravity to add a title and transitions

    Paste into Antigravity

    Add the title "Morning coffee" in big white text for the first 2 seconds and add smooth transitions between the clips

    Antigravity CLI with a request to add a title and transitions
  8. 8

    Check the title in Edits

    Press play in Edits to watch it.

    Edits showing the Morning coffee title over the first clip
  9. 9

    Ask Antigravity to add music

    Edits library songs are cleared for Instagram, but may be flagged on other sites.

    Paste into Antigravity

    Add a calm song from the Edits music library and fade it out at the end

    Antigravity CLI with a request to add music
  10. 10

    Check the music track in Edits

    A music track now runs under your clips.

    Edits showing a music track under the clips
  11. 11

    Ask Antigravity to export the video

    Paste into Antigravity

    Export the video to my Movies folder as "Coffee Reel.mp4"

    Antigravity CLI with a request to export the video
  12. 12

    Open the exported video

    Open Finder, click Movies and double-click Coffee Reel.mp4. Post it from the Edits app yourself.

    Antigravity CLI saying the video is exported
  13. 13

    Use it again later

    Open Edits, run cd ~/Movies in Terminal, type agy and ask for the edit you want.

Disconnect Antigravity CLI from Edits

  1. Run this in Terminal

    Or just turn off Enable Automation Server in Edits.

    agy mcp remove edits

Troubleshooting

  1. ProblemFix
    Disconnected, or Antigravity can't reach EditsOpen Edits and check Enable Automation Server is on.
    It stopped working after you clicked RegenerateThe old token no longer works. Run agy mcp remove edits, then do Step 3 again.
    command not found: agyRun source ~/.zshrc, or close Terminal and open it again.

Common questions

  1. What happened to Gemini CLI?

    Google replaced it with Antigravity CLI for free and Google One accounts on June 18, 2026. It uses the same Gemini models. Gemini CLI still works with a paid Gemini API key, and connects with gemini mcp add the same way.

  2. Is Antigravity CLI free?

    Yes, with a personal Google account. Daily limits depend on your Google plan; a paid Google AI plan raises them.

  3. Are my videos uploaded to Google?

    The connection stays on your Mac. What you type, and what Antigravity reads back from Edits (project names, clip details), goes to Google's Gemini models.

  4. Can I use Claude or Codex instead?

    Yes. Edits' Automation settings have Copy buttons for Claude Code and Codex, and any MCP-capable AI tool connects the same way.

Undo

Comments

0

Share your thoughts, questions, or feedback about this guide.

Leave a Comment

0/2000