Docs · Guide

Antigravity on any model

Antigravity, Google’s agent app, can send its requests to a gateway of yours instead of Google, through its Enterprise Gateway setting. packinggoods is such a gateway, so Antigravity and its CLI, agy, can run on any model you have in packinggoods: DeepSeek, GLM, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.

Antigravity 2.15 and later reads a gateway block from its settings file: ~/.antigravity/settings.json up to 2.29, ~/.gemini/config/config.json from 2.30. packinggoods writes that block, turned on, with its gateway’s address, a key that names the app and the openai wire protocol, and sets models.defaultModelId to the model you pick. The app then lists the gateway’s models in its picker and sends its chats to packinggoods, which translates each one for the model’s provider. Your own gateway, default model, model list and catalog are kept aside and put back when packinggoods steps out.

Connect the app

  1. Add providers in packinggoodsIn the Providers tab, add an API key or sign in to a subscription.
  2. Pick a model on Antigravity’s rowIn the Agents tab, choose a model under packinggoods.
  3. Restart AntigravityIt reads its gateway at start-up. packinggoods’s models are then in its model picker.
Terminal
packinggoods antigravity deepseek/deepseek-v4-pro    # the app on DeepSeek
packinggoods agy deepseek/deepseek-v4-pro            # agy on DeepSeek

Its models

The picker lists the gateway’s models, the ones the app’s key is shown, under the names packinggoods’s catalog gives them. On its own the app gives every model it doesn’t know a 200K window. packinggoods points its models.listSource at the gateway’s catalog, which gives each model its real context window, so long sessions compact when they should.

Effort

The catalog lists a model at each of its reasoning levels, so the app’s own picker offers them, and the level picked there goes with the request. The effort on packinggoods’s row is the level the app starts on, and what a model with no levels in the picker is asked for. Left on the default, requests go as the app sends them.

Your Google sign-in

On a gateway, Antigravity uses no Google sign-in and its backend asks Google for nothing. What Google turns on for your account, its experiments and commands such as /boost, /teamwork, /plugin and /generative_ui, is gone while it is on packinggoods. Taking the row off packinggoods gives it back.

The models your own sign-in gave the app leave its picker too. To have them back on packinggoods, sign the same Google account in under packinggoods’s Antigravity subscription in the Providers tab: its models are then in the app’s list, served on that account’s quota, beside any other Google account you add there.

The agy CLI

agy follows the app’s gateway unless it is connected on its own row. Connected there, it runs on packinggoods through the Gemini API: packinggoods keeps its models in packinggoods-settings.json, beside agy’s own ~/.gemini/antigravity-cli/settings.json, and starts agy with that file, GOOGLE_GEMINI_BASE_URL, GEMINI_API_KEY and --model for that session. So that typing agy just works, packinggoods adds a function named agy to each shell’s profile while agy is on one of its models. A terminal opened before takes the command from the row. Your settings.json stays yours, so agy remote-control still runs on your Google sign-in.

Settings that come first

An admin_settings.json your organisation installs, and the AGY_LLM_GATEWAY_* variables, win over the settings file field by field. If either sets a gateway of its own, Antigravity doesn’t reach packinggoods, and the row says so.

Switch back

Pick one of your own models on the row, or take the row off packinggoods. packinggoods puts back your own gateway, default model, model list and catalog. For agy, it removes the shell function too. Restart Antigravity.

FAQ

Can Antigravity run on models other than Gemini?

Yes. Any model you have in packinggoods is in its picker: DeepSeek, GLM, Qwen, GPT, Claude and more.

Do I still need to sign in with Google?

No. On a gateway Antigravity uses no Google sign-in. What Google turns on for your account, such as /boost and /teamwork, is off while it is on packinggoods.

Why does every model show a 200K context?

That is the app’s default for models it doesn’t know. packinggoods points its catalog at the gateway, which gives each model its real window. Restart Antigravity after connecting.

Does the agy CLI work too?

Yes. agy follows the app’s gateway, or runs on its own row through the Gemini API, with an agy shell function so the command just works.

More agents on the same models: Models in OpenCode, Models in Gemini CLI, Cursor Private Inference on any model and Snow CLI on any model. Something fails? See Fixing common errors, or ask on Discord.