diff --git a/docs/subsystems/agent-wiring.md b/docs/subsystems/agent-wiring.md index 3a9a6465d..726009332 100644 --- a/docs/subsystems/agent-wiring.md +++ b/docs/subsystems/agent-wiring.md @@ -118,7 +118,7 @@ something else shows up as drift. - Craft Agents (lukilabs/craft-agents-oss, thecraftagents.com; springg1998 on X) keeps its connections in `config.json` under `$CRAFT_CONFIG_DIR` or `~/.craft-agent` (`craftAgents` in [`craftagents.go`](../../internal/agent/craftagents.go); its `config/paths.ts`, `config/storage.ts` and `config/llm-connections.ts`, v0.15.8). magpie adds one entry to `llmConnections`, slug `magpie`, `providerType: pi_compat` and `authType: none` at the gateway's `/agent/craft-agents/v1` with `customEndpoint.api: openai-completions`: Pi sends a keyless loopback request, which the gateway takes as this computer's, and the address names it Craft's. Its `models` are magpie's picked ones as objects, and `defaultModel` is always one of them, since Craft resets a default its list hasn't to the first. magpie makes it `defaultLlmConnection`; the user's default is stashed (as JSON, `""` for none) and put back on off when that connection is still there, and the `name` they give magpie's entry stays. A session keeps the connection it started on, and a workspace default goes over the global one, so the notice says new sessions use it. A `config.json` with no `workspaces` list is one Craft doesn't load, so magpie never makes one: Craft is opened once first. Picking one of the user's own models takes magpie's entry out and sets that model as their default connection's `defaultModel`. Craft re-reads the file on each lookup. Detected by `~/.craft-agent` or `Craft Agents.app` (`com.lukilabs.craft-agent`), or `Craft Agents.exe` under `%LOCALAPPDATA%\Programs\@craft-agentelectron`. In the Library it takes skills, in `~/.agents/skills`. - Obsidian (`obsidian` in [`obsidian.go`](../../internal/agent/obsidian.go); shirotokiren on X) has no AI of its own; magpie wires its plugin Copilot for Obsidian (logancyang/obsidian-copilot, plugin id `copilot`, 4.0 and later) in every vault that has it. The vaults come from Obsidian's `obsidian.json` (`vaults..path`) in `~/Library/Application Support/obsidian` (macOS), `%APPDATA%\obsidian` (Windows), or on Linux `$XDG_CONFIG_HOME/obsidian`, the Flatpak's `~/.var/app/md.obsidian.Obsidian/config/obsidian` and the Snap's `~/snap/obsidian/current/.config/obsidian`; a vault has Copilot when `.obsidian/plugins/copilot/manifest.json` is there. Obsidian is listed only when a vault has Copilot (or magpie's provider is already in its `data.json`); the app or its config folder alone gives magpie nothing to set (iEthan333 on X). In its `data.json` magpie adds `providers.magpie` (`openai-compatible`, `baseUrl` the gateway's `/agent/obsidian/v1`, `requiresApiKey: false` and no keychain id, `enableCors: false` so Copilot streams through the window's fetch, answered by the gateway's CORS for `app://obsidian.md`), one `configuredModels` entry per magpie model (provider `magpie`, ids made from the model's, uuid v5, so a sync finds them again; limits, image input and reasoning efforts from the catalog), each new one in `backends.chat.enabledModels`, and on the first wire `defaultModelKey` (the old one kept in the stash). A sync keeps a model the user turned off off, their default, and the name and key they give the provider; it writes only the keys that change, through a temp file renamed over the old (`edit.PatchJSON`, `edit.WriteAtomic`), and nothing when nothing does. Disconnect takes out the provider, its models and their ids in every backend, and puts the default back when magpie's is still it. Copilot 3 (`activeModels`) is refused with a message to update it, and so is no vault with Copilot. Obsidian holds the settings in memory, so the notice (while it runs) says to reload Copilot or restart Obsidian. Smart Connections is not wired: its free plugin embeds with a local model only, and its API providers are in the closed Pro plugin, with keys in the keychain. - Tuanjie Cowork (`tuanjiecowork.go`, codely.tuanjie.cn; Charles24209792 on X), a Tauri app (`dev.codelycowork.desktop`), keeps its Custom Models in `~/.codely/settings.json`: `customModelProviders` (`{id, name, baseUrl, apiKey, authType}`) and `customModels` (`{id, model, providerId, displayName, roles, wireApi, supportsMultimodal}`, an id unique across providers). Its core reads the file afresh on every lookup and writes it whole, other keys kept; a session gets its provider's baseUrl and key as `OPENAI_BASE_URL`/`OPENAI_API_KEY` (wireApi `chat`). magpie adds a provider and a model both with id `magpie`: the gateway's `/v1`, Cowork's own key (it is how the gateway tells Cowork apart), and the model picked. A name or roles given them in Cowork are kept, and an id `magpie` of the user's own is refused, not written over. Which model a chat is on is Cowork's pick in its model menu (per workspace GUI state, by model id), which magpie doesn't write; because the id stays `magpie`, that pick follows a model changed in magpie. Set of a model of Cowork's own is refused for the same reason. Off takes both entries out, and the file too where magpie made it. Cowork's startup migrations only move models without a `providerId`, so magpie's entries stay. Windows' Tauri NSIS per-user folder isn't under `%LOCALAPPDATA%\Programs`, so there it is detected by `~/.codely` alone. -- Antigravity, Google's desktop app (not Antigravity IDE, `com.google.antigravity-ide`), takes a gateway from `~/.antigravity/settings.json` from 2.15 on, and from `~/.gemini/config/config.json` (beside its `userSettings` and `plugins`) from 2.30 on, which reads only that file (YujunT46308 on X). magpie writes the same block into both, and a wiring made before 2.30 is carried into the new file at magpie's next start: Google's Antigravity Enterprise Gateway (docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway; `antigravity` in [`antigravity.go`](../../internal/agent/antigravity.go), ryougi_hachi on X). magpie writes `gateway` as `{enabled: true, url: , apiKey: , wireProtocol: openai}` and the model it starts on as `models.defaultModelId`, and takes out `models.list`, which would narrow the picker to the user's own. It also points `models.listSource`, the app's remote model catalog, at `/v1/models?format=antigravity` (`gateway.antigravityModels`): `{"list": [{modelId, displayName, maxTokens, maxOutputTokens, supportsImages, supportsThinking}]}`, the models the key may use. The backend (2.29.0) resolves models from `models.list`, then `listSource` (fetched with the gateway key), then `/v1/models`, then its built-in catalog. From `/v1/models` it reads the id alone, and a model its catalog doesn't know gets its family's defaults, a 200K window whatever the model's, so every magpie model had 200K (YujunT46308 on X); `context_window`, `context_length` and `max_input_tokens` there are not read. A bare array or `{"list": …}` is read; `{"models": …}` is not. A field magpie doesn't know is left out and the app's default stands. The picker shows `displayName`, so the names follow magpie's (`ListsModels`, not `NoNames`). The app's picker (its `main.js`, 2.29.0) offers effort only by grouping entries named ` (Low)`, `(Medium)`, `(High)`, `(XHigh)` or `(Max)` (its regex also takes `(Low thinking)`) under one row with an effort menu, two levels or more, starting on medium when a group has it, else the lowest; a model listed once had no effort control at all (YujunT46308 on X). So a model with two or more of those levels is listed once a level, `:` named ` ()` (`antigravityLevels`), and the request goes out under the chosen entry's id, whose `:level` suffix the gateway sends upstream ahead of the row's pick; the app's own `reasoning_effort` (`low` whatever was chosen, in a 2.29.0 run) loses to it. `models.defaultModelId` names one of those entries, since an id the catalog doesn't list starts the app on its first model: `gateway.AntigravityModel` adds the row's effort, fitted, else medium, else the lowest. The row's effort sets that start level (and is what a model with fewer than two levels is asked for); `Sync` moves a file written before onto a level, keeping a level already there. The model field shows the id without the level.`Sync` adds `listSource` to a file wired before, at the gateway's current address, stashing one of the user's. On the openai protocol the backend streams `/v1/chat/completions` with the key as a bearer token and a User-Agent of `antigravity/hub/`. The user's gateway, default model, list and `listSource` are stashed and put back on disconnect, or when a model of their own is picked; `caCertPath` and the rest of the file are never touched, and a `Sync` keeps what the user added to magpie's block (`customHeaders`). On a gateway the app uses no Google sign-in, and its backend asks Google for nothing (no `cloud_code_endpoint` or `api_server_url` call in a headless run): Google's docs say a gateway and a Google Account can't be used at once. What Google's servers turn on for a signed-in account, its experiments and the commands behind them (`/boost`, `/teamwork`, `/plugin`, `/generative_ui`, YujunT46308), is off while it is on magpie. No key in the file keeps both (`proxy` only routes the app's own HTTP), so the notice shown on connecting names what is lost and that turning it off gives it back. An organisation's `admin_settings.json` and the `AGY_LLM_GATEWAY_*` variables win over the file, so `Check` says when either sets a gateway. agy reads the same file below its own settings: an agy connected on its own row keeps its route, one that isn't follows the app's gateway, as the notice says. `~/.antigravity` is Antigravity IDE's and agy's too, so the app is found by its bundle at 2.15 or later (`desktopApps`) or `~/.gemini/antigravity/agyhub_summaries_proto.pb`, which only its backend writes. The app reads the file at start, so the notice asks for a restart. The Antigravity accounts magpie signs in (provider `antigravity`) are a separate thing: those send magpie's requests to Google. +- Antigravity, Google's desktop app (not Antigravity IDE, `com.google.antigravity-ide`), takes a gateway from `~/.antigravity/settings.json` from 2.15 on, and from `~/.gemini/config/config.json` (beside its `userSettings` and `plugins`) from 2.30 on, which reads only that file (YujunT46308 on X). magpie writes the same block into both, and a wiring made before 2.30 is carried into the new file at magpie's next start: Google's Antigravity Enterprise Gateway (docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway; `antigravity` in [`antigravity.go`](../../internal/agent/antigravity.go), ryougi_hachi on X). magpie writes `gateway` as `{enabled: true, url: , apiKey: , wireProtocol: openai}` and the model it starts on as `models.defaultModelId`, and takes out `models.list`, which would narrow the picker to the user's own. It also points `models.listSource`, the app's remote model catalog, at `/v1/models?format=antigravity` (`gateway.antigravityModels`): `{"list": [{modelId, displayName, maxTokens, maxOutputTokens, supportsImages, supportsThinking}]}`, the models the key may use. The backend (2.29.0) resolves models from `models.list`, then `listSource` (fetched with the gateway key), then `/v1/models`, then its built-in catalog. From `/v1/models` it reads the id alone, and a model its catalog doesn't know gets its family's defaults, a 200K window whatever the model's, so every magpie model had 200K (YujunT46308 on X); `context_window`, `context_length` and `max_input_tokens` there are not read. A bare array or `{"list": …}` is read; `{"models": …}` is not. A field magpie doesn't know is left out and the app's default stands. The picker shows `displayName`, so the names follow magpie's (`ListsModels`, not `NoNames`). The app's picker (its `main.js`, 2.29.0) offers effort only by grouping entries named ` (Low)`, `(Medium)`, `(High)`, `(XHigh)` or `(Max)` (its regex also takes `(Low thinking)`) under one row with an effort menu, two levels or more, starting on medium when a group has it, else the lowest; a model listed once had no effort control at all (YujunT46308 on X). So a model with two or more of those levels is listed once a level, `:` named ` ()` (`antigravityLevels`), and the request goes out under the chosen entry's id, whose `:level` suffix the gateway sends upstream ahead of the row's pick; the app's own `reasoning_effort` (`low` whatever was chosen, in a 2.29.0 run) loses to it. `models.defaultModelId` names one of those entries, since an id the catalog doesn't list starts the app on its first model: `gateway.AntigravityModel` adds the row's effort, fitted, else medium, else the lowest. The row's effort sets that start level (and is what a model with fewer than two levels is asked for); `Sync` moves a file written before onto a level, keeping a level already there. The model field shows the id without the level.`Sync` adds `listSource` to a file wired before, at the gateway's current address, stashing one of the user's. On the openai protocol the backend streams `/v1/chat/completions` with the key as a bearer token and a User-Agent of `antigravity/hub/`. The user's gateway, default model, list and `listSource` are stashed and put back on disconnect, or when a model of their own is picked; `caCertPath` and the rest of the file are never touched, and a `Sync` keeps what the user added to magpie's block (`customHeaders`). On a gateway the app uses no Google sign-in, and its backend asks Google for nothing (no `cloud_code_endpoint` or `api_server_url` call in a headless run): Google's docs say a gateway and a Google Account can't be used at once. What Google's servers turn on for a signed-in account, its experiments and the commands behind them (`/boost`, `/teamwork`, `/plugin`, `/generative_ui`, YujunT46308), is off while it is on magpie. No key in the file keeps both (`proxy` only routes the app's own HTTP), so the notice shown on connecting names what is lost and that turning it off gives it back. The models the app's own sign-in gave it (Code Assist's `fetchAvailableModels`) leave its picker with it; while magpie has no account under its Antigravity subscription (`provider.Logins("antigravity")`), the notice adds that signing the same Google account in there brings them back, through the gateway on that account's quota (`noticeAntigravityOwn`, T_t__biu on X). Keeping the app's own sign-in and adding magpie's models beside it would need the backend's Code Assist endpoint (`--cloud_code_endpoint`, or its `CLOUD_CODE_URL` variable) pointed at magpie; that is not built. An organisation's `admin_settings.json` and the `AGY_LLM_GATEWAY_*` variables win over the file, so `Check` says when either sets a gateway. agy reads the same file below its own settings: an agy connected on its own row keeps its route, one that isn't follows the app's gateway, as the notice says. `~/.antigravity` is Antigravity IDE's and agy's too, so the app is found by its bundle at 2.15 or later (`desktopApps`) or `~/.gemini/antigravity/agyhub_summaries_proto.pb`, which only its backend writes. The app reads the file at start, so the notice asks for a restart. The Antigravity accounts magpie signs in (provider `antigravity`) are a separate thing: those send magpie's requests to Google. - NewMax (newmax.cc, an Electron app on the Claude Agent SDK) keeps its settings as JSON in the row `app` of the `settings` table of `newmax.db`, a SQLite database in WAL mode in `$NEWMAX_USER_DATA_DIR`, else `~/.newmax` on every system (`newMax` in [`newmax.go`](../../internal/agent/newmax.go); its main bundle's `configureAppDataPaths`, `loadPersistedAppSettings` and the renderer's `mergeProviders`, v1.1.22). magpie adds one entry to `providers` in the shape NewMax's own import writes, `id: magpie-gateway` (its own preset is `magpie`, its import's ids hold `%3A`), `apiFormat: anthropic` at the gateway's root (NewMax appends `/v1/messages`) with `ANTHROPIC_AUTH_TOKEN` and a key naming NewMax, at most 20 models (`MAX_MODELS`) as `models` and `enabledModels` with their context windows, and its id at the end of `providerOrder`. The row is edited in place in one immediate transaction, so every other byte stays; the user's `name` and `enabled` for magpie's entry and the fields NewMax adds to it stay through a sync, and a sync with nothing to change doesn't write. A row that isn't a JSON object, or whose `providers` or `providerOrder` isn't a list, is left alone. With no row (NewMax at its defaults), magpie writes one with its entry alone, as NewMax lays its defaults and presets under the row; with no database yet, it asks to open NewMax once. Disconnect takes the entry and the id out, sets a pick of it back to `default`, and takes the row out when only what magpie made is left. NewMax holds its settings in memory and writes the whole row back whenever one changes, so a change is refused while `NewMax` (`newmax` on Linux) runs (Windows can't be asked, so the notice says to quit it first). The model is picked in NewMax's model picker, so the field is whether magpie is in it (`ListsModels`). Detected by its data folder or `NewMax.app` (`cc.newmax.desktop`). - LiveAgent (Stack-Cairn/LiveAgent v2, a Tauri app) runs its models through K-brain, a Go backend it starts with its data folder, which keeps every provider in `config.json` there: `$LIVEAGENT_HOME`, else `$K_BRAIN_HOME`, else the folder `~/.liveagent/data-dir.json` points to (`{"path": …}`, set when the user moves LiveAgent's data), else `~/.liveagent` on every system (`liveAgent` in [`liveagent.go`](../../internal/agent/liveagent.go); LiveAgent's `data_home.rs` and `kbrain_backend.rs`, K-brain v0.107.12's `internal/config`). The file is JSONC in Pi's provider shape, decoded with unknown fields refused, so magpie writes only K-brain's fields. K-brain asks all of a provider's models on its one API, so magpie writes up to three providers and puts each model on the one of the API it is served on natively (`catalog.Model.APIs`, as dsh's routes): `providers.magpie-responses` for Responses and `providers.magpie` for every other OpenAI-side model (Chat Completions), each `type: codex` with `api` and `requestFormat` as LiveAgent's own settings write an OpenAI-compatible provider, `baseUrl` the gateway's `/v1` (K-brain appends only `/chat/completions` or `/responses`); `providers.magpie-anthropic` for Messages, `type: claude_code` and `api: anthropic-messages`, `baseUrl` the gateway's root (K-brain appends `/v1` and posts to `/messages` with `X-Api-Key`). LiveAgent's settings lock an Anthropic provider's API and let the user switch an OpenAI one between Chat Completions and Responses; a sync keeps the format they picked (Discord, xiaoxiaofei). A provider left with no model is taken out. Each has a key naming LiveAgent, `activeModels: null` (every model on), magpie's order as `modelOrder`, and `models` sorted by id as K-brain writes them, with each one's display name, context window, output limit and `input: [text, image]` when it takes images. Comments and every other key stay. Through a sync the user's name for each entry, the models they turned off (`activeModels`), their order and the fields K-brain adds (its `metadata`) stay; a model that moves to another of magpie's providers (a `config.json` from before, with every model on one Anthropic `magpie`) brings its name and off with it, and a pick of it follows; a model new to magpie's list is on and goes last, and a sync with nothing to change doesn't write. A model of magpie's the user deleted in LiveAgent, or a whole provider of magpie's, stays out until they put it back or magpie is turned off and on for LiveAgent (zero2sin on Discord: every sync, so every restart, wrote magpie's twenty or thirty models back): magpie keeps, per `config.json`, which of its models and providers LiveAgent has had (`liveAgentKept`, in the stash). One magpie added while LiveAgent ran is pending under the processes then (`liveAgentPIDs`), since LiveAgent's next save drops a model it never read: missing under those processes, or after they quit, it is written again; once other processes run it counts as had. On Windows, which can't be asked what runs, each counts as had at once. A default (or compact) model still K-brain's own, `model1` of its endpoint-less `demo` provider, becomes magpie's first; one the user picked stays. A file K-brain wouldn't read as providers (not an object, `providers` not an object, a top-level `models`, one provider written bare) is left alone. Disconnect takes magpie's entries out and a pick of them back to K-brain's default; a file left with no provider gets K-brain's `demo` back, since K-brain takes one with none as written over and restores `config.json.bak`, which can still hold magpie's; a file with nothing but what magpie made goes. LiveAgent's backend makes the file as `{}` when there is none (so a disconnect that takes the file away is undone the next start, harmlessly), reads it when it starts and writes it whole whenever a setting changes, so a change is refused while `liveagent` or `k-brain` runs (Windows can't be asked, so the notice says to quit it first). A model id another provider of the user's lists too has its metadata shared by K-brain, so a sync may write that model's limits back each time. The model is picked in LiveAgent's model picker, so the field is whether magpie is in it (`ListsModels`). Detected by its data folder, `LiveAgent.app` (`com.xiaofei.liveagent`) or its Windows install. Its logo is the app's own 64px icon (`src-tauri/icons/64x64.png`, MIT) in an SVG. - DevEco Code (Huawei's OpenCode fork, #1885) is wired as OpenCode is (`deveco` in [`agents.go`](../../internal/agent/agents.go)): magpie's provider goes into the first of `deveco.jsonc`, `deveco.json` and `config.json` in `~/.config/deveco` (the one DevEco merges last, so the one that wins), or in `$DEVECO_CONFIG_DIR` when that is absolute, read after them. 0.2.3 sends `deveco/0.2.3 ai-sdk/…` to a provider of its config, but much of the OpenCode code it keeps still sends OpenCode's own User-Agent (`opencode/`), so its provider's key is `magpie-deveco` (`openCodeKeyAt`), not the plain `magpie` OpenCode and MiMo Code send, and Check asks for that key. Its npm package has no Linux binary, so no install command is offered there (`cliSpec.only`). diff --git a/internal/agent/antigravity.go b/internal/agent/antigravity.go index 9b59b6626..e9921672b 100644 --- a/internal/agent/antigravity.go +++ b/internal/agent/antigravity.go @@ -30,6 +30,10 @@ package agent // experiments and the commands behind them (/boost, /teamwork, /plugin, // /generative_ui: YujunT46308), is off while it's on magpie. Nothing in // the file keeps both; noticeAntigravity says so where it is connected. +// The models its own sign-in gave it (Code Assist's fetchAvailableModels) +// leave its picker with it: with no account under magpie's Antigravity +// subscription, noticeAntigravityOwn says how to have them back, through +// the gateway on that account's quota (T_t__biu on X). // // The same file is read by agy (Antigravity's CLI) too, below its own // ~/.gemini/antigravity-cli/settings.json: an agy connected on its own row @@ -303,10 +307,13 @@ func antigravity(home string) *Agent { // the names its catalog gives them (antigravityCatalog) ListsModels: true, Notice: func() string { - if wired() { - return noticeAntigravity.String() + if !wired() { + return "" } - return "" + if len(provider.Logins("antigravity")) == 0 { + return noticeAntigravity.String() + " " + noticeAntigravityOwn.String() + } + return noticeAntigravity.String() }, Sync: func() error { w, ok := on() @@ -445,6 +452,7 @@ func antigravityTidy(path string) error { // what antigravity says after a change (notice.go) var ( noticeAntigravity = newNotice("Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.") + noticeAntigravityOwn = newNotice("The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.") noticeAntigravityAdmin = newNotice("Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie") noticeAntigravityEnv = newNotice("AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie") ) diff --git a/internal/agent/antigravity_test.go b/internal/agent/antigravity_test.go index 6df2f7fff..35d98744c 100644 --- a/internal/agent/antigravity_test.go +++ b/internal/agent/antigravity_test.go @@ -104,6 +104,22 @@ func TestAntigravityGateway(t *testing.T) { if a.Notice() == "" { t.Error("no notice to restart the app") } + // the models the app's own sign-in gave it leave its picker: with no + // account under magpie's Antigravity subscription the notice says how + // to have them back (T_t__biu on X); with one, they are in the list + if !strings.Contains(a.Notice(), noticeAntigravityOwn.String()) { + t.Errorf("no word of the app's own models with no Antigravity account: %q", a.Notice()) + } + b, _ := json.Marshal([]map[string]any{{"agent": "antigravity", "user": "me@example.com", "on": true, + "auth": map[string]any{"access_token": "a", "refresh_token": "r"}}}) + os.MkdirAll(filepath.Dir(provider.Path()), 0o755) + os.WriteFile(filepath.Join(filepath.Dir(provider.Path()), "logins.json"), b, 0o600) + if n := len(provider.Logins("antigravity")); n != 1 { + t.Fatalf("the Antigravity account isn't read: %d", n) + } + if got := a.Notice(); got != noticeAntigravity.String() { + t.Errorf("notice with an Antigravity account in magpie: %q", got) + } opts := f.Options(map[string]string{"model": f.Get()}) if !slices.ContainsFunc(opts, func(o Option) bool { return o.Value == "magpie/anth/claude-sonnet-5" }) { t.Errorf("magpie's model not offered: %v", opts) diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index db956ac6c..a3dfe4fbe 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -5042,6 +5042,7 @@ const I18N = { "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 启动时读取自定义模型,需重启 Pencil 才能在它的模型选择器中看到 magpie 的模型。", "Paseo reads its model list when its daemon starts — restart Paseo's daemon to see magpie's models. Claude Code must be connected to magpie too.": "Paseo 在守护进程启动时读取模型列表,需重启 Paseo 的守护进程才能看到 magpie 的模型。Claude Code 也须已接入 magpie。", "Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity 启动时读取网关,需重启 Antigravity 才能使用 magpie 的模型。走网关时它不使用 Google 登录,所以 Google 为你的账号开启的功能(它的实验,以及 /boost、/teamwork、/plugin、/generative_ui 等命令)在接入 magpie 期间都没有;在这里关闭即可恢复。未在自己那一行接入的 agy 也会跟着它走。", + "The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.": "你自己的 Google 登录给 Antigravity 的模型也会从它的列表里消失;在 magpie 的 Antigravity 订阅下登录同一个 Google 账号,它们就会回来,用的是该账号的额度。", "Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity 的 {path} 设置了自己的网关,它优先于 ~/.antigravity/settings.json,所以不会连到 magpie", "AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL 被设为 {url},它优先于 ~/.antigravity/settings.json,所以这样启动的 Antigravity 不会连到 magpie", "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在会话启动时读取模型,需开启新会话或重新执行 /model 才会生效。", @@ -10283,6 +10284,7 @@ const I18N = { "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil 啟動時讀取自訂模型,需重啟 Pencil 才能在它的模型選擇器中看到 magpie 的模型。", "Paseo reads its model list when its daemon starts — restart Paseo's daemon to see magpie's models. Claude Code must be connected to magpie too.": "Paseo 在守護程序啟動時讀取模型清單,需重啟 Paseo 的守護程序才能看到 magpie 的模型。Claude Code 也須已接入 magpie。", "Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity 啟動時讀取閘道,需重啟 Antigravity 才能使用 magpie 的模型。走閘道時它不使用 Google 登入,所以 Google 為你的帳號開啟的功能(它的實驗,以及 /boost、/teamwork、/plugin、/generative_ui 等指令)在接入 magpie 期間都沒有;在這裡關閉即可恢復。未在自己那一列接入的 agy 也會跟著它走。", + "The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.": "你自己的 Google 登入給 Antigravity 的模型也會從它的列表裡消失;在 magpie 的 Antigravity 訂閱下登入同一個 Google 帳號,它們就會回來,用的是該帳號的額度。", "Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity 的 {path} 設定了自己的閘道,它優先於 ~/.antigravity/settings.json,所以不會連到 magpie", "AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL 被設為 {url},它優先於 ~/.antigravity/settings.json,所以這樣啟動的 Antigravity 不會連到 magpie", "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code 在會話啟動時讀取模型,需開啟新會話或重新執行 /model 才會生效。", @@ -15526,6 +15528,7 @@ const I18N = { "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil は起動時にカスタムモデルを読み込みます。モデル選択に magpie のモデルを表示するには Pencil を再起動してください。", "Paseo reads its model list when its daemon starts — restart Paseo's daemon to see magpie's models. Claude Code must be connected to magpie too.": "Paseo は起動時にデーモンがモデル一覧を読み込みます。magpie のモデルを表示するには Paseo のデーモンを再起動してください。Claude Code も magpie に接続されている必要があります。", "Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity は起動時にゲートウェイを読み込みます。magpie のモデルを使うには Antigravity を再起動してください。ゲートウェイ経由では Google のサインインは使われないため、Google がアカウントに有効にする機能(実験や、/boost、/teamwork、/plugin、/generative_ui などのコマンド)は magpie 接続中は使えません。ここでオフにすると元に戻ります。自分の行で接続していない agy もこれに従います。", + "The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.": "あなた自身の Google サインインで Antigravity に出ていたモデルもリストから消えます。magpie の Antigravity サブスクリプションで同じ Google アカウントにサインインすると、そのアカウントのクォータで戻ってきます。", "Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravity の {path} が独自のゲートウェイを設定しており、~/.antigravity/settings.json より優先されるため、magpie に届きません", "AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL が {url} に設定されており、~/.antigravity/settings.json より優先されるため、これで起動した Antigravity は magpie に届きません", "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code はセッション開始時にモデルを読み込みます。反映するには新しいセッションを始めるか、もう一度 /model を実行してください。", @@ -20769,6 +20772,7 @@ const I18N = { "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.": "Pencil liest seine eigenen Modelle beim Start – Pencil neu starten, um magpies Modelle in seiner Modellauswahl zu sehen.", "Paseo reads its model list when its daemon starts — restart Paseo's daemon to see magpie's models. Claude Code must be connected to magpie too.": "Paseo liest seine Modellliste beim Start des Daemons – Paseo-Daemon neu starten, um magpies Modelle zu sehen. Claude Code muss ebenfalls mit magpie verbunden sein.", "Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.": "Antigravity liest sein Gateway beim Start – Antigravity neu starten, um magpies Modelle zu nutzen. Über ein Gateway nutzt es keine Google-Anmeldung, daher fehlt, was Google für dein Konto freischaltet (seine Experimente und Befehle wie /boost, /teamwork, /plugin und /generative_ui), solange es über magpie läuft; hier ausschalten gibt es zurück. Ein agy, das nicht in seiner eigenen Zeile verbunden ist, folgt ihm auch.", + "The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.": "Auch die Modelle, die Antigravity durch deine eigene Google-Anmeldung bekommt, verschwinden aus seiner Liste; melde dasselbe Google-Konto unter magpies Antigravity-Abo an, dann sind sie wieder da, auf dem Kontingent dieses Kontos.", "Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie": "Antigravitys {path} setzt ein eigenes Gateway, das Vorrang vor ~/.antigravity/settings.json hat, daher erreicht es magpie nicht", "AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie": "AGY_LLM_GATEWAY_URL ist auf {url} gesetzt, das Vorrang vor ~/.antigravity/settings.json hat, daher erreicht ein damit gestartetes Antigravity magpie nicht", "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.": "Qwen Code liest das Modell einer Sitzung beim Start – eine neue Sitzung beginnen oder /model erneut ausführen, damit es gilt.", @@ -21060,6 +21064,7 @@ const NOTICES = [ "Pencil reads its custom models at start-up — restart Pencil to see magpie's models in its model picker.", "Paseo reads its model list when its daemon starts — restart Paseo's daemon to see magpie's models. Claude Code must be connected to magpie too.", "Antigravity reads its gateway at start-up — restart Antigravity to use magpie's models. On a gateway it uses no Google sign-in, so what Google turns on for your account (its experiments, and commands such as /boost, /teamwork, /plugin and /generative_ui) is gone while it's on magpie; turning it off here gives that back. An agy not connected on its own row follows it too.", + "The models your own Google sign-in gives Antigravity leave its list too; sign that Google account in under magpie's Antigravity subscription and they come back, on that account's quota.", "Antigravity's {path} sets a gateway of its own, which wins over ~/.antigravity/settings.json, so it doesn't reach magpie", "AGY_LLM_GATEWAY_URL is set to {url}, which wins over ~/.antigravity/settings.json, so Antigravity started with it doesn't reach magpie", "Qwen Code reads a session's model at start-up — start a new session, or /model anew, to use this.", diff --git a/site/public/docs/antigravity.html b/site/public/docs/antigravity.html index cb0051c8a..91f9ad60c 100644 --- a/site/public/docs/antigravity.html +++ b/site/public/docs/antigravity.html @@ -203,6 +203,7 @@ magpie agy deepseek/deepseek-v4-pro # agy on DeepSeek

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 models your own sign-in gave the app leave its picker too. To have them back on magpie, sign the same Google account in under magpie’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 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.

diff --git a/site/public/docs/ja/antigravity.html b/site/public/docs/ja/antigravity.html index 9f8e67c0b..8762753b9 100644 --- a/site/public/docs/ja/antigravity.html +++ b/site/public/docs/ja/antigravity.html @@ -203,6 +203,7 @@ magpie agy deepseek/deepseek-v4-pro # agy を DeepSeek でGoogle サインイン

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

+

あなた自身のサインインでアプリに出ていたモデルも、モデル一覧から消えます。magpie で使い続けるには、Providers タブの Antigravity サブスクリプションで同じ Google アカウントにサインインしてください。そのモデルがアプリの一覧に並び、そのアカウントのクォータで動きます。そこに追加した他の Google アカウントも同じです。

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 サインインで動きます。

diff --git a/site/public/docs/zh/antigravity.html b/site/public/docs/zh/antigravity.html index 888818903..757a76dc5 100644 --- a/site/public/docs/zh/antigravity.html +++ b/site/public/docs/zh/antigravity.html @@ -203,6 +203,7 @@ magpie agy deepseek/deepseek-v4-pro # agy 用 DeepSeek

你的 Google 登录

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

+

你自己的登录给应用的模型也会从它的模型列表里消失。想在 magpie 上用回它们,就在 Providers 页的 Antigravity 订阅下登录同一个 Google 账号:它的模型会出现在应用的列表里,用的是该账号的额度;在那里加的其他 Google 账号也一样。

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 登录。

diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 2ebc3774b..2f4f1927e 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -4662,6 +4662,8 @@ The catalog lists a model at each of its reasoning levels, so the app’s own pi 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 models your own sign-in gave the app leave its picker too. To have them back on magpie, sign the same Google account in under magpie’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 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.