ANTIGRAVITY LABJP
Articles/Tips & Best Practices
Tips & Best Practices/2026-07-11Intermediate

Moving Antigravity to a New Machine: What Carries Over, What You Rebuild, and What Belongs in the Repo

Settings Sync restores your theme and keybindings in minutes, but auth tokens, workspace indexes, and local LLMs do not follow. A practical three-layer model for migrating Antigravity to a new machine without losing a day.

antigravity429migration12settings-sync3keyring2workspace7

The evening I unboxed a new Mac, I signed in to Antigravity and watched Settings Sync do its thing. Theme, keybindings, extensions — everything visual was back within minutes. So far, almost suspiciously smooth.

Then the first agent run asked me to authenticate. Workspace search came back empty. Not a single local LLM model was anywhere to be found. The settings screens looked exactly like they had the day before, but the tool behaved like a stranger. That gap — looking restored while not actually being restored — was the most disorienting part of the whole migration.

Looking back, my mistake was trusting sync to cover more than it does. An Antigravity environment is not one thing; it is three layers with very different properties. As an indie developer keeping several apps and the Dolice sites running on my own, I cannot afford to sink a full day into a machine swap. If I had drawn this three-layer distinction before opening the box, most of the rework would never have happened. Here is the breakdown, along with the order of operations that ended up working.

Your Environment Is Three Layers, Not One

Before planning anything, sort your current environment by a single criterion: where is this state actually stored?

LayerTypical contentsHow to treat it during migration
The synced layerSettings, keybindings, extensions, themesSettings Sync carries it. A pre-flight check is all you need
The machine-bound layerAuth tokens in the OS keyring, workspace indexes, local LLM modelsDo not copy. Rebuild fresh on the new machine
The repo-bound layerAGENTS.md, project-specific skills and task definitionsComes back with git clone. Migration never touches it

The key move in this model is refusing to carry the middle layer. If you try to move it by copying files, authentication breaks silently and indexes arrive in a half-consistent state. Deciding upfront that rebuilt things get rebuilt is, counterintuitively, the faster path.

The Synced Layer: Verify the Last Sync Before You Power Down

On the new machine, the synced layer needs nothing from you. The care goes into the old machine. Before you box it up, confirm that your most recent changes actually made it to the cloud.

Open the command palette, run Settings Sync: Show Sync Activity, and check that Last Synced is newer than your last working session. It takes thirty seconds. I skipped it, and the keybindings I had tuned the week before stayed behind on the old laptop. If sync is not behaving at all, the layered diagnosis in Antigravity Settings Sync Not Working Across Devices: A Layered Troubleshooting Guide walks through the failure modes.

Extensions are part of the synced layer too, but anything with native dependencies may rebuild itself on first launch. Once the list reappears, resist the urge to trust it wholesale — exercise your daily drivers one by one before relying on them.

The Machine-Bound Layer: Rebuild, Do Not Copy

This layer caused all of my confusion, so let me take it piece by piece.

Auth tokens. Since v2.2.1, refreshed OAuth tokens are stored in the OS keyring — the Keychain on macOS. A keyring is a machine-local vault, so no amount of careful config copying will bring your authentication with you. The right move is boring: sign in again on the new machine and let it mint fresh tokens into its own keyring. Hunting down token-like files on the old machine and moving them over is a habit worth not forming, for security reasons as much as operational ones.

Workspace indexes. The first time you open a repository, index construction runs in the background, and on a large repo it takes a while. On migration day I opened my biggest workspace first and simply left it alone while I did everything else. If an index seems to run forever, the diagnostic steps in When Antigravity's Workspace Indexing Won't Finish: A Field Guide to Fixing Stalled Indexes apply to fresh machines just as well.

Local LLM models. Models served through Ollama and similar tools are multi-gigabyte artifacts. If your bandwidth allows, pulling them again is the reliable route; copying the models folder directly can leave version metadata subtly out of step, which surfaces later as hard-to-trace flakiness. In the end I re-pulled only the two models I use daily and deferred the rest until I actually needed them. Not trying to restore everything on day one is itself a migration technique.

The Repo-Bound Layer: The More You Push Here, the Lighter the Next Move

The third layer is where I felt the payoff. Because AGENTS.md and my project-specific skills and task definitions lived in the repositories, the agent's behavior snapped back to normal the moment each clone finished — before I had fixed anything else.

The flip side: prompt fragments squirreled away in local editor settings, or notes sitting in the home directory, all stayed behind. A migration is a good forcing function for asking, of each piece of state, whether it belongs to the machine or to the project — and moving the project's belongings into the repo. This connects directly to the maintenance loop I described in Iterating on AGENTS.md with a Weekly Failure Review — A Loop That Makes Antigravity Smarter. The less state you keep bound to the editor, the closer a machine swap gets to just sign in and clone.

The Order That Worked, and the One Thing That Still Caught Me

Here is the sequence I would repeat next time:

  1. On the old machine, confirm Last Synced in Settings Sync, then power down
  2. Sign in to Antigravity on the new machine, letting it rebuild credentials in the keyring
  3. Clone the main repositories and open the largest workspace first, leaving the index to build
  4. Meanwhile, verify your core extensions and re-pull the local LLM models you actually use
  5. Finish by handing the agent one small task, confirming that auth, search, and models are all alive

The one thing I had not anticipated: even with Antigravity itself signed in, git commit signing keys and the gh CLI's authentication are entirely separate concerns. The first agent task that included a push stalled at the signature step. It is easy to assume that agent-driven operations are covered by Antigravity's own auth, but the toolchain underneath needs each of its credentials restored individually. Add a line for git config and gh auth to your checklist.

The next time a machine swap is on your horizon, start with a blank page and the three layers — write down where every piece of your environment actually lives. That inventory may turn out to be more valuable than the migration itself. I hope this serves as a usable first draft of yours.

Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

Tips2026-05-24
Why Antigravity's Agent Keeps Referencing the Previous Repo After You Switch Projects — Diagnosis and Fix
When Antigravity carries leftover state from your previous project into a new one, the agent confidently edits files that don't belong to the current repo. Here's how to diagnose and prevent that context bleed.
Tips2026-04-25
Antigravity Settings Sync Not Working Across Devices: A Layered Troubleshooting Guide
When Antigravity Settings Sync fails between machines, the cause is almost always one of four layers: auth, local cache, network, or scope. Here are the diagnostic steps that actually work.
Tips2026-04-25
When Antigravity's Workspace Indexing Won't Finish: A Field Guide to Fixing Stalled Indexes
Workspace Indexing stuck at 0%, frozen mid-progress, or marked complete but invisible to the agent? Here's a pattern-based diagnostic and repair flow that handles each cause separately.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →