diff --git a/site/public/docs/antigravity.html b/site/public/docs/antigravity.html new file mode 100644 index 000000000..d82146748 --- /dev/null +++ b/site/public/docs/antigravity.html @@ -0,0 +1,277 @@ + + + + + +Google Antigravity with DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription: any model in Antigravity and agy through magpie · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

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. magpie is such a gateway, so Antigravity and its CLI, agy, can run on any model you have in magpie: 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. magpie 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 magpie, 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 magpie steps out.

+ +

Connect the app

+
    +
  1. Add providers in magpieIn the Providers tab, add an API key or sign in to a subscription.
  2. +
  3. Pick a model on Antigravity’s rowIn the Agents tab, choose a model under magpie.
  4. +
  5. Restart AntigravityIt reads its gateway at start-up. magpie’s models are then in its model picker.
  6. +
+
Terminal
magpie antigravity deepseek/deepseek-v4-pro    # the app on DeepSeek
+magpie 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 magpie’s catalog gives them. On its own the app gives every model it doesn’t know a 200K window. magpie 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 magpie’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 magpie. Taking the row off magpie gives it back.

+ +

The agy CLI

+

agy follows the app’s gateway unless it is connected on its own row. Connected there, it runs on magpie through the Gemini API: magpie keeps its models in magpie-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, magpie 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 magpie, and the row says so.

+ +

Switch back

+

Pick one of your own models on the row, or take the row off magpie. magpie 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 magpie 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 magpie.

+

Why does every model show a 200K context?

+

That is the app’s default for models it doesn’t know. magpie 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 and Cursor Private Inference on any model. Something fails? See Fixing common errors, or ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/cursor-private-inference.html b/site/public/docs/cursor-private-inference.html index d53bf5a11..b430b3976 100644 --- a/site/public/docs/cursor-private-inference.html +++ b/site/public/docs/cursor-private-inference.html @@ -218,7 +218,7 @@

Does it work on Windows and Linux?

Yes. magpie sets the variables in the registry’s Environment on Windows and in environment.d on Linux, and finds the Linux AppImage where you downloaded it.

-

More agents on the same models: Models in OpenCode, Models in Claude Code and Pi on any model. Something fails? See Fixing common errors, or ask on Discord.

+

More agents on the same models: Models in OpenCode, Models in Claude Code, Pi on any model and Antigravity on any model. Something fails? See Fixing common errors, or ask on Discord.

diff --git a/site/public/docs/gemini.html b/site/public/docs/gemini.html index 31bb5c3a7..f96a8820c 100644 --- a/site/public/docs/gemini.html +++ b/site/public/docs/gemini.html @@ -334,7 +334,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview

Yes. Both are subscriptions: magpie accounts add gemini or magpie accounts add antigravity, then pick a gemini/… or antigravity/… model. Code Assist needs a Standard or Enterprise account with a Google Cloud project of its own.

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan · Qwen · MiniMax · Anthropic · OpenAI · Grok · Mistral · OpenRouter · GitHub Copilot · Ollama

-

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. Ask on Discord if you get stuck.

+

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. To run Google’s Antigravity app on other models, see Antigravity on any model. Ask on Discord if you get stuck.

diff --git a/site/public/docs/ja/antigravity.html b/site/public/docs/ja/antigravity.html new file mode 100644 index 000000000..b92676d1d --- /dev/null +++ b/site/public/docs/ja/antigravity.html @@ -0,0 +1,277 @@ + + + + + +Google Antigravity で DeepSeek、GLM、Qwen、GPT、Claude、ChatGPT サブスクリプションを使う:magpie で Antigravity と agy を任意のモデルに · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

Antigravity を任意のモデルで

+

Antigravity は Google のエージェントアプリで、Enterprise Gateway の設定により Google ではなく自分のゲートウェイにリクエストを送れます。magpie はそのゲートウェイになれるので、Antigravity と CLI の agy は magpie にある任意のモデルで動きます:DeepSeek、GLM、Qwen、OpenAI や Anthropic のキー、ChatGPT や Copilot のサブスクリプション。

+ +

Antigravity 2.15 以降は設定ファイルの gateway ブロックを読みます:2.29 までは ~/.antigravity/settings.json、2.30 からは ~/.gemini/config/config.json。magpie はこのブロックを有効にして書き、ゲートウェイのアドレス、アプリ名入りのキー、openai プロトコルを入れ、models.defaultModelId を選んだモデルにします。アプリはゲートウェイのモデルをピッカーに並べ、チャットを magpie に送り、magpie がモデルのプロバイダ向けに変換します。自分のゲートウェイ、既定モデル、モデル一覧、カタログは退避され、magpie が抜けるときに戻ります。

+ +

アプリをつなぐ

+
    +
  1. magpie にプロバイダを追加プロバイダ タブで API キーを追加するか、サブスクリプションにサインインします。
  2. +
  3. Antigravity の行でモデルを選ぶエージェント タブで magpie の下のモデルを選びます。
  4. +
  5. Antigravity を再起動ゲートウェイは起動時に読まれます。その後 magpie のモデルがモデルピッカーに並びます。
  6. +
+
ターミナル
magpie antigravity deepseek/deepseek-v4-pro    # アプリを DeepSeek で
+magpie agy deepseek/deepseek-v4-pro            # agy を DeepSeek で
+ +

モデル

+

ピッカーにはアプリのキーに見せるゲートウェイのモデルが、magpie のカタログの名前で並びます。アプリは知らないモデルに一律 200K のウィンドウを与えます。magpie は models.listSource をゲートウェイのカタログに向け、各モデルに実際のコンテキストウィンドウを与えるので、長いセッションも適切なときに圧縮されます。

+ +

推論の強さ

+

カタログはモデルを推論レベルごとに並べるので、アプリ自身のピッカーでレベルを選べ、選んだレベルがリクエストに付きます。magpie の行の強さは、アプリが起動時に使うレベルで、ピッカーにレベルのないモデルにも使われます。既定のままなら、アプリが送ったとおりに届きます。

+ +

Google サインイン

+

ゲートウェイを使うと、Antigravity は Google サインインを使わず、バックエンドも Google に問い合わせません。Google がアカウントに有効にしている機能、実験や /boost、/teamwork、/plugin、/generative_ui などのコマンドは、magpie につないでいる間は使えません。行を magpie から外すと戻ります。

+ +

agy CLI

+

agy は自分の行でつながない限り、アプリのゲートウェイに従います。自分の行でつなぐと Gemini API で magpie を使います:magpie はモデルを agy の ~/.gemini/antigravity-cli/settings.json の横の magpie-settings.json に置き、そのセッションだけそのファイル、GOOGLE_GEMINI_BASE_URL、GEMINI_API_KEY、--model を付けて agy を起動します。agy と打つだけで動くように、agy が magpie のモデルを使う間、magpie は各シェルのプロファイルに agy という関数を追加します。それより前に開いたターミナルでは、行に表示されるコマンドを使ってください。あなたの settings.json はそのままなので、agy remote-control は引き続き Google サインインで動きます。

+ +

優先される設定

+

組織がインストールする admin_settings.json と AGY_LLM_GATEWAY_* 環境変数は、設定ファイルより項目ごとに優先されます。どちらかが独自のゲートウェイを設定していると Antigravity は magpie に届かず、行にそう表示されます。

+ +

元に戻す

+

行で自分のモデルを選ぶか、行を magpie から外します。magpie は自分のゲートウェイ、既定モデル、モデル一覧、カタログを戻し、agy ではシェル関数も取り除きます。Antigravity を再起動してください。

+ +

よくある質問

+

Antigravity で Gemini 以外のモデルは使えますか?

+

使えます。magpie にあるすべてのモデルがピッカーにあります:DeepSeek、GLM、Qwen、GPT、Claude など。

+

Google へのサインインはまだ必要ですか?

+

不要です。ゲートウェイを使うと Antigravity は Google サインインを使いません。/boost や /teamwork など Google がアカウントに有効にしている機能は、magpie につないでいる間は使えません。

+

どのモデルも 200K のコンテキストと表示されるのはなぜ?

+

知らないモデルに対するアプリの既定値です。magpie はカタログをゲートウェイに向け、各モデルに実際のウィンドウを与えます。つないだ後に Antigravity を再起動してください。

+

agy CLI でも使えますか?

+

使えます。agy はアプリのゲートウェイに従うか、自分の行で Gemini API でつながり、agy シェル関数でコマンドがそのまま動きます。

+ +

同じモデルで使えるほかのエージェント:OpenCode で他のモデル、Gemini CLI で他のモデル、Cursor Private Inference を任意のモデルで。うまくいかないときは よくあるエラーの対処 を見るか、Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/cursor-private-inference.html b/site/public/docs/ja/cursor-private-inference.html index 3d93420f2..ccca524bb 100644 --- a/site/public/docs/ja/cursor-private-inference.html +++ b/site/public/docs/ja/cursor-private-inference.html @@ -218,7 +218,7 @@

Windows や Linux でも使えますか?

使えます。Windows ではレジストリの Environment、Linux では environment.d に変数を設定し、Linux の AppImage はダウンロードした場所から見つけます。

-

同じモデルで使えるほかのエージェント:OpenCode で他のモデル、Claude Code で他のモデル、Pi を任意のモデルで。うまくいかないときは よくあるエラーの対処 を見るか、Discord で質問してください。

+

同じモデルで使えるほかのエージェント:OpenCode で他のモデル、Claude Code で他のモデル、Pi を任意のモデルで、Antigravity を任意のモデルで。うまくいかないときは よくあるエラーの対処 を見るか、Discord で質問してください。

diff --git a/site/public/docs/ja/gemini.html b/site/public/docs/ja/gemini.html index b545c9f6e..2e6ac75d5 100644 --- a/site/public/docs/ja/gemini.html +++ b/site/public/docs/ja/gemini.html @@ -334,7 +334,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview

使えます。どちらもサブスクです。magpie accounts add gemini か magpie accounts add antigravity を実行し、gemini/… か antigravity/… のモデルを選びます。Code Assist には、専用の Google Cloud プロジェクトを持つ Standard または Enterprise のアカウントが必要です。

プロバイダ別:DeepSeek · Kimi と Kimi Code · GLM Coding Plan · Qwen · MiniMax · Anthropic · OpenAI · Grok · Mistral · OpenRouter · GitHub Copilot · Ollama

-

ツールごとのガイド:Claude Code で他のモデル、Codex で他のモデル、Gemini CLI で他のモデル、OpenCode で他のモデル。困ったときは Discord で質問してください。

+

ツールごとのガイド:Claude Code で他のモデル、Codex で他のモデル、Gemini CLI で他のモデル、OpenCode で他のモデル。Google の Antigravity アプリを他のモデルで使うには Antigravity を任意のモデルで を参照してください。困ったときは Discord で質問してください。

diff --git a/site/public/docs/zh/antigravity.html b/site/public/docs/zh/antigravity.html new file mode 100644 index 000000000..dae32f11b --- /dev/null +++ b/site/public/docs/zh/antigravity.html @@ -0,0 +1,277 @@ + + + + + +Google Antigravity 接入 DeepSeek、GLM、Qwen、GPT、Claude 或 ChatGPT 订阅:通过 magpie 让 Antigravity 和 agy 用任意模型 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

让 Antigravity 用任意模型

+

Antigravity 是 Google 的 Agent 应用,可以通过 Enterprise Gateway 设置把请求发给你自己的网关,而不是 Google。magpie 就是这样的网关,于是 Antigravity 和它的 CLI agy 能用你在 magpie 里的任何模型:DeepSeek、GLM、Qwen、OpenAI 或 Anthropic Key,或 ChatGPT、Copilot 订阅。

+ +

Antigravity 2.15 及以后从设置文件读取 gateway 配置:2.29 及以前是 ~/.antigravity/settings.json,2.30 起是 ~/.gemini/config/config.json。magpie 写入并启用这段配置,填上网关地址、一个标明该应用的 Key 和 openai 协议,再把 models.defaultModelId 设为你选的模型。之后应用在选择器里列出网关的模型,把对话发给 magpie,magpie 再翻译给该模型的供应商。你自己的网关、默认模型、模型列表和目录都会另存,magpie 退出时还原。

+ +

接入应用

+
    +
  1. 在 magpie 里添加供应商在 供应商 页添加 API Key,或登录一个订阅。
  2. +
  3. 在 Antigravity 那一行选模型在 Agent 页,选 magpie 下的一个模型。
  4. +
  5. 重启 Antigravity它在启动时读取网关,之后 magpie 的模型就在它的模型选择器里。
  6. +
+
终端
magpie antigravity deepseek/deepseek-v4-pro    # 应用用 DeepSeek
+magpie agy deepseek/deepseek-v4-pro            # agy 用 DeepSeek
+ +

它的模型

+

选择器列出网关的模型,即应用的 Key 能看到的那些,名称来自 magpie 的目录。应用自己会给不认识的模型一律设 200K 窗口。magpie 把它的 models.listSource 指向网关的目录,为每个模型给出真实的上下文窗口,长会话会在该压缩时压缩。

+ +

推理强度

+

目录按每个推理档位列出模型,所以应用自己的选择器能选档位,选中的档位随请求发出。magpie 那一行的强度是应用启动时的档位,也是选择器里没有档位的模型所用的强度。保持默认时,请求按应用发出的原样转发。

+ +

你的 Google 登录

+

走网关时,Antigravity 不使用 Google 登录,它的后端也不再请求 Google。Google 为你的账号开启的功能,包括实验功能和 /boost、/teamwork、/plugin、/generative_ui 等命令,在接入 magpie 期间不可用。把那一行从 magpie 取消即可恢复。

+ +

agy CLI

+

除非在自己那一行接入,agy 会跟随应用的网关。在自己那一行接入时,它通过 Gemini API 使用 magpie:magpie 把它的模型放在 magpie-settings.json,与 agy 自己的 ~/.gemini/antigravity-cli/settings.json 并排,并在启动 agy 时为这次会话带上该文件、GOOGLE_GEMINI_BASE_URL、GEMINI_API_KEY 和 --model。为了让直接输入 agy 就能用,agy 使用 magpie 模型期间,magpie 会在每个 shell 的配置文件里添加一个名为 agy 的函数。之前已打开的终端,请用那一行给出的命令。你的 settings.json 保持不变,所以 agy remote-control 仍然用你的 Google 登录。

+ +

优先的设置

+

组织安装的 admin_settings.json 和 AGY_LLM_GATEWAY_* 环境变量会逐项覆盖设置文件。如果其中任何一个设了自己的网关,Antigravity 就到不了 magpie,那一行会提示。

+ +

切回

+

在那一行选你自己的模型,或把那一行从 magpie 取消。magpie 会还原你自己的网关、默认模型、模型列表和目录;对 agy 还会移除 shell 函数。然后重启 Antigravity。

+ +

常见问题

+

Antigravity 能用 Gemini 以外的模型吗?

+

能。你在 magpie 里的任何模型都在它的选择器里:DeepSeek、GLM、Qwen、GPT、Claude 等。

+

还需要登录 Google 吗?

+

不需要。走网关时 Antigravity 不使用 Google 登录。Google 为你账号开启的 /boost、/teamwork 等功能,在接入 magpie 期间不可用。

+

为什么每个模型都显示 200K 上下文?

+

这是应用对不认识的模型的默认值。magpie 把它的目录指向网关,为每个模型给出真实窗口。接入后请重启 Antigravity。

+

agy CLI 也能用吗?

+

能。agy 跟随应用的网关,或在自己那一行通过 Gemini API 接入,并有一个 agy shell 函数让命令直接可用。

+ +

更多 Agent 用同样的模型:OpenCode 接入其他模型、Gemini CLI 接入其他模型、让 Cursor Private Inference 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/cursor-private-inference.html b/site/public/docs/zh/cursor-private-inference.html index 0eb4a49d2..a5a152157 100644 --- a/site/public/docs/zh/cursor-private-inference.html +++ b/site/public/docs/zh/cursor-private-inference.html @@ -218,7 +218,7 @@

Windows 和 Linux 能用吗?

能。Windows 上 magpie 把变量写入注册表的 Environment,Linux 上写入 environment.d,并在你下载的位置找到 Linux 的 AppImage。

-

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Pi 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Pi 用任意模型、让 Antigravity 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

diff --git a/site/public/docs/zh/gemini.html b/site/public/docs/zh/gemini.html index af2312b26..c0ff74bc8 100644 --- a/site/public/docs/zh/gemini.html +++ b/site/public/docs/zh/gemini.html @@ -334,7 +334,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview

能。两者都是订阅:运行 magpie accounts add gemini 或 magpie accounts add antigravity,然后选 gemini/… 或 antigravity/… 模型。Code Assist 需要有自己 Google Cloud 项目的 Standard 或 Enterprise 账号。

按供应商:DeepSeek · Kimi 与 Kimi Code · GLM 编程套餐 · 通义千问 · MiniMax · Anthropic · OpenAI · Grok · Mistral · OpenRouter · GitHub Copilot · Ollama

-

各个工具的指南:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型、OpenCode 接入其他模型。遇到问题可以在 Discord 提问。

+

各个工具的指南:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型、OpenCode 接入其他模型。想让 Google 的 Antigravity 应用用其他模型,见 让 Antigravity 用任意模型。遇到问题可以在 Discord 提问。

diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 405a6e9dc..fcf37b0bf 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -2102,7 +2102,7 @@ Yes. Both are subscriptions: `magpie accounts add gemini` or `magpie accounts ad **By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama) -Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck. +Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). To run Google’s Antigravity app on other models, see [Antigravity on any model](https://usemagpie.ai/docs/antigravity). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck. --- @@ -4020,7 +4020,72 @@ The build keeps its first model list until it quits. Quit the app itself, not on Yes. magpie sets the variables in the registry’s Environment on Windows and in environment.d on Linux, and finds the Linux AppImage where you downloaded it. -More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models) and [Pi on any model](https://usemagpie.ai/docs/pi). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). +More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Pi on any model](https://usemagpie.ai/docs/pi) and [Antigravity on any model](https://usemagpie.ai/docs/antigravity). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). + +--- + +Source: https://usemagpie.ai/docs/antigravity + +# 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. magpie is such a gateway, so Antigravity and its CLI, `agy`, can run on any model you have in magpie: 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. magpie 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 magpie, 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 magpie steps out. + +## Connect the app + +1. **Add providers in magpie.** In the Providers tab, add an API key or sign in to a subscription. +2. **Pick a model on Antigravity’s row.** In the Agents tab, choose a model under magpie. +3. **Restart Antigravity.** It reads its gateway at start-up. magpie’s models are then in its model picker. + +``` +magpie antigravity deepseek/deepseek-v4-pro # the app on DeepSeek +magpie 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 magpie’s catalog gives them. On its own the app gives every model it doesn’t know a 200K window. magpie 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 magpie’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 magpie. Taking the row off magpie gives it back. + +## The agy CLI + +`agy` follows the app’s gateway unless it is connected on its own row. Connected there, it runs on magpie through the Gemini API: magpie keeps its models in `magpie-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, magpie 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 magpie, and the row says so. + +## Switch back + +Pick one of your own models on the row, or take the row off magpie. magpie 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 magpie 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 magpie. + +### Why does every model show a 200K context? + +That is the app’s default for models it doesn’t know. magpie 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](https://usemagpie.ai/docs/opencode-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models) and [Cursor Private Inference on any model](https://usemagpie.ai/docs/cursor-private-inference). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). --- diff --git a/site/public/llms.txt b/site/public/llms.txt index 843ee3853..e8fff225e 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -74,6 +74,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code): run Kimi Code (Moonshot's kimi CLI) on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through the provider and model tables magpie adds to ~/.kimi-code/config.toml; thinking levels, images and tools, the old kimi-cli, WSL and switching back. - [Pi on any model](https://usemagpie.ai/docs/pi): run the pi coding agent on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: the magpie provider in ~/.pi/agent/models.json, settings.json's default, thinking levels, the Ctrl+P list, decision and image models, your files put back. - [Cursor Private Inference on any model](https://usemagpie.ai/docs/cursor-private-inference): run the Cursor build whose agent runs on your machine on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: CURSOR_LOCAL_AGENT_BASE_URL and _API_KEY set for your user, its models, effort, when it takes effect, settings that come first. +- [Antigravity on any model](https://usemagpie.ai/docs/antigravity): run Google Antigravity and its agy CLI on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: the gateway block in its settings, real context windows, effort, the agy shell function, what the Google sign-in gives, switching back. - [Cherry Studio](https://usemagpie.ai/docs/cherry-studio): add magpie to Cherry Studio as one OpenAI-compatible provider in one click, confirmed in Cherry Studio, and use every magpie model there, Claude, ChatGPT and Copilot subscriptions included; model list, status and usage. - [Fixing common errors](https://usemagpie.ai/docs/troubleshooting): what the gateway's errors mean and the fix: 401 and 403, 429 and rest periods, 502 and 504, model not found, an agent that doesn't show a model, port 3425 in use, agents in WSL, use from another computer and subscriptions moved to plugins. - [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent. diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml index 506ddfb40..660d0fa12 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -37,6 +37,7 @@ https://usemagpie.ai/docs/kimi-code https://usemagpie.ai/docs/pi https://usemagpie.ai/docs/cursor-private-inference +https://usemagpie.ai/docs/antigravity https://usemagpie.ai/docs/local-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives @@ -86,6 +87,7 @@ https://usemagpie.ai/docs/zh/kimi-code https://usemagpie.ai/docs/zh/pi https://usemagpie.ai/docs/zh/cursor-private-inference +https://usemagpie.ai/docs/zh/antigravity https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives @@ -134,6 +136,7 @@ https://usemagpie.ai/docs/ja/kimi-code https://usemagpie.ai/docs/ja/pi https://usemagpie.ai/docs/ja/cursor-private-inference +https://usemagpie.ai/docs/ja/antigravity https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives