A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
Rust ai-toolsclaude-codecodexdeepseek-harnessdesktop-appgrokgrokbuildhermeskimi-codemcpopen-sourceopencodepiprovider-managementrustskillsskills-managementtauriwsl-support
docs(manual): cover Antigravity routing, failover, aggregation and model options
Jasone38213534f34
diff --git a/docs/user-manual/en/1-getting-started/1.3-interface.md b/docs/user-manual/en/1-getting-started/1.3-interface.mdindex 38fd0864b..3e8762f78 100644--- a/docs/user-manual/en/1-getting-started/1.3-interface.md+++ b/docs/user-manual/en/1-getting-started/1.3-interface.md@@ -128,7 +128,7 @@ CC Switch displays an icon in the system tray, providing quick access to operati| Menu Item | Function ||-----------|----------|| Open CC Switch | Show and focus the main window, always on top |-| App submenus | One submenu each for the six switch-mode apps: Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, and Antigravity. The title shows the current provider and mode; click a provider in the submenu to switch, and the current one has a checkmark. You can also open the app page or add a provider there, and some apps show a quota summary. In Antigravity, clicking an official card bound to an Accounts account first switches agy's login to that account, and the card shows the account name |+| App submenus | One submenu each for the six switch-mode apps: Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, and Antigravity. The title shows the current provider and mode; click a provider in the submenu to switch, and the current one has a checkmark. You can also open the app page or add a provider there, and some apps show a quota summary. In Antigravity, clicking an official card bound to an Accounts account first switches agy's login to that account, and the card shows the account name. Apps are listed in the same order as on the "Apps" page || Projects | Switch projects (a full set of provider, MCP, Skills, and prompt states); appears only after "Show project switcher" is turned on || Lightweight mode | Checkbox to enter or exit tray-only mode || Open official website | Open ccswitch.io in the browser |diff --git a/docs/user-manual/en/1-getting-started/1.5-settings.md b/docs/user-manual/en/1-getting-started/1.5-settings.mdindex 28eb6a9bd..74801c88e 100644--- a/docs/user-manual/en/1-getting-started/1.5-settings.md+++ b/docs/user-manual/en/1-getting-started/1.5-settings.md@@ -150,6 +150,8 @@ Settings → Network**Global Outbound Proxy**: Configure the HTTP/HTTPS proxy CC Switch uses when accessing external APIs, applicable for scenarios where external API access requires a proxy.+The global proxy is also passed to the programs CC Switch starts: terminals opened from a card, sessions resumed in a terminal, tool installs and upgrades on the "Apps" page, MCP connectivity checks, the CodeBuddy and Antigravity login terminals, and the Hermes dashboard. Clients in a terminal get only HTTP(S) proxies and skip local addresses (local routing still connects directly); agy also gets SOCKS5 proxies. When a card configures its own proxy, the card wins; a proxy you set yourself in your shell config file also takes precedence. When the proxy address carries a user name and password, resumed sessions don't get the proxy, because the command is shown in the terminal.+### IP diagnosticsOpen **Settings → Network → IP diagnostics** and select the saved global proxy or a temporary proxy. A temporary URL is used only for this check and does not change the saved configuration. An empty URL follows CC Switch's system proxy behavior; it does not force a direct connection.diff --git a/docs/user-manual/en/2-providers/2.1-add.md b/docs/user-manual/en/2-providers/2.1-add.mdindex aa94abf6c..2afa9e56f 100644--- a/docs/user-manual/en/2-providers/2.1-add.md+++ b/docs/user-manual/en/2-providers/2.1-add.md@@ -560,6 +560,15 @@ When adding a Codex provider, a **1M Context Window** toggle is available:The auto-compact limit can be customized in the text field that appears when the toggle is on. This toggle only appears when adding a new Codex provider; when editing an existing provider, adjust the fields directly in advanced configuration if needed.+### Antigravity Model Options++Each model in the Antigravity form can expand **More options** to set a display name, context window, max output and reasoning levels. When you pick a model from the list or type a model ID, these are filled in from models.dev.++- **Context window**: agy only knows the context windows of the Gemini, GPT and Claude families. Other models (such as DeepSeek, Kimi or Qwen) need one, or they fail on the first turn; with only a context window set, the output limit is just 4096 tokens. If you set a max output, set the context window too, at least twice the max output.+- **Reasoning levels**: agy can't change a gateway model's thinking effort while it's running. In Routing and Aggregation modes, the model is published as one variant per level you pick (such as `deepseek-flash@max`, shown as "DeepSeek Flash (Max)"), and routing rewrites the request to the matching thinking effort when forwarding it. Antigravity Desktop merges a model's levels into one row and switches between them in a "Thinking effort" submenu. A model with levels picked is published only as its variants, and the default model uses the default level picked on the first row.++> ⚠️ Direct mode doesn't support reasoning levels for third-party models yet: in Direct mode agy doesn't send a thinking effort to gateway models, so the level you pick has no effect. To set reasoning levels for models from third-party platforms (such as Gemini models through a relay), turn on Routing or Aggregation mode.+### Custom IconClick the icon to the left of the name to open the icon picker. Pick a built-in icon, or upload your own image (PNG, JPG, WebP or SVG, up to 2 MB) to My Icons so other providers can pick it too. See [2.3 Edit Provider → Icon Customization](./2.3-edit.md#icon-customization).diff --git a/docs/user-manual/en/4-proxy/4.1-service.md b/docs/user-manual/en/4-proxy/4.1-service.mdindex 6c0015b40..ab0ec78d6 100644--- a/docs/user-manual/en/4-proxy/4.1-service.md+++ b/docs/user-manual/en/4-proxy/4.1-service.md@@ -10,7 +10,7 @@ Local routing starts an HTTP service on your machine. Once an app enters Routing- Hot switching: a provider switch takes effect immediately for subsequent requests- Records the usage and status of every request-Apps that support local routing: **Claude Code**, **Codex**, **Gemini CLI**, **Grok Build**. Claude Desktop's "Model Mapping" mode is also forwarded through local routing; see [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md).+Apps that support local routing: **Claude Code**, **Codex**, **Gemini CLI**, **Grok Build**, **Antigravity**. Claude Desktop's "Model Mapping" mode is also forwarded through local routing; see [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md).> 💡 You don't need local routing to track usage: with routing off, CC Switch also collects usage from each tool's local session logs. See [4.4 Usage Statistics](./4.4-usage.md).@@ -133,6 +133,8 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build**: the request address in `~/.grok/config.toml` points to `http://127.0.0.1:15721/grokbuild/v1`.+**Antigravity**: the gateway address in `~/.gemini/config/config.json` points to `http://127.0.0.1:15721/agy`.+While routing, the API Key in the config file is replaced with a placeholder; the real Key is kept in CC Switch and injected by local routing when it forwards requests.## Format Conversion@@ -194,7 +196,7 @@ Each request record includes:| Field | Description ||-------|-------------|| Time | Request time |-| App | Claude / Codex / Gemini / Grok Build |+| App | Claude / Codex / Gemini / Grok Build / Antigravity || Provider | Provider used || Model | Requested model || Tokens | Input/output token count |diff --git a/docs/user-manual/en/4-proxy/4.2-routing.md b/docs/user-manual/en/4-proxy/4.2-routing.mdindex 5a0a9b26f..9e2509bd6 100644--- a/docs/user-manual/en/4-proxy/4.2-routing.md+++ b/docs/user-manual/en/4-proxy/4.2-routing.md@@ -19,7 +19,7 @@ This page covers "Routing". Once an app is routing:Routing needs CC Switch to keep running. You don't need to start the routing service beforehand; it starts automatically when an app enters routing.-Apps that support routing: Claude Code, Codex, Gemini CLI, Grok Build.+Apps that support routing: Claude Code, Codex, Gemini CLI, Grok Build, Antigravity.## Start Routing@@ -89,13 +89,15 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build configuration change**: the request address in the routing provider's model table in `~/.grok/config.toml` changes to `http://127.0.0.1:15721/grokbuild/v1`. Grok Build's official account can't be used through local routing: starting routing while the official provider is current reports an error, so switch to a third-party provider first.+**Antigravity configuration change**: the gateway address in `~/.gemini/config/config.json` changes to `http://127.0.0.1:15721/agy`. With the Gemini native (genai) protocol, no model list is written; routing answers it from the routed provider's model list, so switching the route between providers of the same protocol doesn't change the config file. With the OpenAI-compatible protocol, the model list is written as usual. Routing and Aggregation pass through only the Gemini native and OpenAI Chat Completions protocols as-is, and don't yet convert to and from the OpenAI Responses and Anthropic Messages formats. Official cards can't be the route; cards without an API Key or with a CA certificate can only connect directly. Antigravity Desktop reads the model list only at startup, so restart it after entering or leaving routing or changing models.+While routing, the API Key in the config file is replaced with the placeholder `PROXY_MANAGED`; the real Key is injected by local routing when it forwards requests. As with switching providers, entering routing changes only these key fields; nothing else in the config file is touched.### Request ForwardingWhen the routing service receives a request:-1. Identifies the request source (Claude/Codex/Gemini/Grok Build)+1. Identifies the request source (Claude/Codex/Gemini/Grok Build/Antigravity)2. Looks up the app's current routing target (by the queue when failover is on)3. Converts the request format if needed and forwards the request to the provider's actual endpoint4. Records the request logdiff --git a/docs/user-manual/en/4-proxy/4.3-failover.md b/docs/user-manual/en/4-proxy/4.3-failover.mdindex 33121624f..d31c9da43 100644--- a/docs/user-manual/en/4-proxy/4.3-failover.md+++ b/docs/user-manual/en/4-proxy/4.3-failover.md@@ -17,7 +17,9 @@ Using the failover feature requires:2. ✅ The failover switch is on in the "Routing" tab3. ✅ There are providers in the queue-Failover only supports Claude Code, Codex, Gemini CLI and Grok Build; Aggregation mode doesn't do failover (the queue and settings are kept and take effect again once you return to Routing mode); additive apps (OpenCode, OpenClaw, Hermes, Pi, MiniMax Code) have no failover queue. Official accounts don't join the queue: they use the client's own login and can't rotate with other providers.+Failover only supports Claude Code, Codex, Gemini CLI, Grok Build and Antigravity; Aggregation mode doesn't do failover (the queue and settings are kept and take effect again once you return to Routing mode); additive apps (OpenCode, OpenClaw, Hermes, Pi, MiniMax Code) have no failover queue. Official accounts don't join the queue: they use the client's own login and can't rotate with other providers.++An Antigravity gateway can use only one protocol, so only cards that speak the routed provider's protocol can join the queue, and cards without an API Key or with a CA certificate can't join either; if the route moves to the other protocol, members on a different protocol are marked "Other protocol" and skipped during failover.## Enable Failoverdiff --git a/docs/user-manual/en/4-proxy/4.6-aggregation.md b/docs/user-manual/en/4-proxy/4.6-aggregation.mdindex 00d064bd0..4c8837050 100644--- a/docs/user-manual/en/4-proxy/4.6-aggregation.md+++ b/docs/user-manual/en/4-proxy/4.6-aggregation.md@@ -2,9 +2,9 @@## Overview-Aggregation mode puts the models of several providers into one model list in Claude Code or Codex. Whichever model you pick in the client's `/model`, the request goes to that provider; you don't have to go back to CC Switch to switch providers.+Aggregation mode puts the models of several providers into one model list in Claude Code, Codex or Antigravity. Whichever model you pick in the client's model picker, the request goes to that provider; you don't have to go back to CC Switch to switch providers.-Aggregation mode only supports **Claude Code** and **Codex**. Configure providers and the aggregation list separately for each app.+Aggregation mode supports **Claude Code**, **Codex** and **Antigravity**. Configure providers and the aggregation list separately for each app. For how Antigravity differs, see [Antigravity](#antigravity) below.@@ -15,7 +15,7 @@ Aggregation mode only supports **Claude Code** and **Codex**. Configure provider| Providers used at the same time | One (or rotating through the failover queue) | Several, dispatched by the selected model || Failover | Supported | Not supported || How you switch providers | Switch in CC Switch | Pick a model in the client's `/model` |-| Supported apps | Claude Code / Codex / Gemini CLI / Grok Build | Claude Code / Codex only |+| Supported apps | Claude Code / Codex / Gemini CLI / Grok Build / Antigravity | Claude Code / Codex / Antigravity |Both go through the routing service on your machine, so both need CC Switch to keep running. An app can only be in one of three modes at a time: Direct, Routing or Aggregation.@@ -23,7 +23,7 @@ Both go through the routing service on your machine, so both need CC Switch to k### Location-Select Claude Code or Codex in the sidebar → the "Aggregation" tab at the top of the page+Select Claude Code, Codex or Antigravity in the sidebar → the "Aggregation" tab at the top of the page### Steps@@ -95,6 +95,7 @@ Other than the default provider, the models of the other added providers appear|-----|------------------|| Claude Code | Takes effect immediately || Codex | Needs a full restart |+| Antigravity | Takes effect in new agy sessions; the desktop app needs a restart |Codex only reads its model list at startup. After entering or leaving Aggregation, adding or removing a provider, or changing a provider's models, the page shows "Codex is still using an old model list, so aggregated models won't show"; handle it according to your client:@@ -145,6 +146,15 @@ Once the official 5-hour quota runs out, Codex may lock the send button or leave- **The earlier workaround no longer works**: making a third-party provider the default stopped helping once Aggregation began keeping the official login- **Still locked**: please report it in [#7962](https://github.com/farion1231/cc-switch/issues/7962)+## Antigravity++Aggregation in Antigravity works much like in Claude Code and Codex, with a few differences:++- **Only cards with the same protocol**: a gateway can use only one protocol, so only cards that speak the default provider's protocol (Gemini native or OpenAI-compatible) can join. When the default provider moves to the other protocol, members on the old protocol stay in the list, marked "Other protocol", and their models aren't published for now; they come back once you switch back.+- **Cards that can't join**: official cards can't join (per the user agreement), and neither can cards without an API Key or with a CA certificate.+- **Model names**: members' models are shown as "model (provider)", with the ID `ccs-<provider>--<model>`.+- **Reasoning levels**: when a model has reasoning levels picked, it is published as variants with the level in Aggregation too; see [2.1 Add Provider → Antigravity Model Options](../2-providers/2.1-add.md#antigravity-model-options).+## Limits- **No failover**: the queue and settings are kept in Aggregation mode and take effect again once you return to Routing modediff --git a/docs/user-manual/ja/1-getting-started/1.3-interface.md b/docs/user-manual/ja/1-getting-started/1.3-interface.mdindex c56688b80..d98101762 100644--- a/docs/user-manual/ja/1-getting-started/1.3-interface.md+++ b/docs/user-manual/ja/1-getting-started/1.3-interface.md@@ -128,7 +128,7 @@ CC Switch はシステムトレイにアイコンを表示し、クイック操| メニュー項目 | 機能 ||--------|------|| CC Switch を開く | メインウィンドウを表示してフォーカスし、常に最前面に出す |-| アプリサブメニュー | Claude Code、Claude Desktop、Codex、Gemini CLI、Grok Build、Antigravity の 6 つの切り替え型アプリにそれぞれサブメニューがあり、タイトルに現在のプロバイダーとモードを表示します。サブメニュー内でプロバイダーをクリックすると切り替わり、現在のものにはチェックマークが付きます。アプリのページを開く、プロバイダーを追加することもでき、アプリによってはクォータの概要も表示されます。Antigravity でアカウントページのアカウントに紐付いた公式カードをクリックすると、先に agy のログインをそのアカウントに切り替え、カードにはアカウント名が表示されます |+| アプリサブメニュー | Claude Code、Claude Desktop、Codex、Gemini CLI、Grok Build、Antigravity の 6 つの切り替え型アプリにそれぞれサブメニューがあり、タイトルに現在のプロバイダーとモードを表示します。サブメニュー内でプロバイダーをクリックすると切り替わり、現在のものにはチェックマークが付きます。アプリのページを開く、プロバイダーを追加することもでき、アプリによってはクォータの概要も表示されます。Antigravity でアカウントページのアカウントに紐付いた公式カードをクリックすると、先に agy のログインをそのアカウントに切り替え、カードにはアカウント名が表示されます。アプリの並び順は「アプリ」ページと同じです || プロジェクト | プロジェクト(プロバイダー、MCP、Skills、プロンプトの状態一式)を切り替え。「プロジェクト切り替えを表示」をオンにしたときのみ表示 || 軽量モード | チェックボックスで切り替え、トレイ専用モードの開始/終了 || 公式サイトを開く | ブラウザで ccswitch.io を開く |diff --git a/docs/user-manual/ja/1-getting-started/1.5-settings.md b/docs/user-manual/ja/1-getting-started/1.5-settings.mdindex 2d9ec46a7..bda536425 100644--- a/docs/user-manual/ja/1-getting-started/1.5-settings.md+++ b/docs/user-manual/ja/1-getting-started/1.5-settings.md@@ -150,6 +150,8 @@ Claude Desktop と MiniMax Code は、ここでのディレクトリ上書きに**グローバル送信プロキシ**:CC Switch が外部 API にアクセスする際に使う HTTP/HTTPS プロキシを設定します。外部 API にプロキシ経由でアクセスする必要がある場合に使用します。+グローバルプロキシは CC Switch が起動するプログラムにも渡されます:カードからターミナルを開くとき、ターミナルでセッションを再開するとき、「アプリ」ページでのツールのインストールとアップグレード、MCP の接続チェック、CodeBuddy と Antigravity のログイン用ターミナル、Hermes ダッシュボードです。ターミナル内のクライアントには HTTP(S) プロキシだけを渡し、ローカルアドレスは除外します(ローカルルーティングは引き続き直接接続します)。agy には SOCKS5 プロキシも渡します。カード自体にプロキシが設定されている場合はカードの設定が優先され、シェルの設定ファイルで自分で設定したプロキシも優先されます。プロキシのアドレスにユーザー名とパスワードが含まれる場合、コマンドがターミナルに表示されるため、セッションの再開ではプロキシを渡しません。+### IP 診断**設定 → ネットワーク → IP 診断** を開き、保存済みのグローバルプロキシまたは一時プロキシを選びます。一時プロキシの URL は今回の診断にのみ使われ、保存済みの設定は変更されません。URL が空の場合は CC Switch のシステムプロキシの動作に従い、直接接続を強制するものではありません。diff --git a/docs/user-manual/ja/2-providers/2.1-add.md b/docs/user-manual/ja/2-providers/2.1-add.mdindex 404a74dc6..19ce7df50 100644--- a/docs/user-manual/ja/2-providers/2.1-add.md+++ b/docs/user-manual/ja/2-providers/2.1-add.md@@ -552,6 +552,15 @@ Codex プロバイダーの追加時、**1M コンテキストウィンドウ**トグルがオンの場合に表示されるテキストフィールドで、自動コンパクト制限をカスタマイズできます。このトグルは Codex プロバイダーの新規追加時のみ表示されます。既存プロバイダーの編集時は、必要に応じて高度な設定で該当フィールドを直接調整してください。+### Antigravity のモデルオプション++Antigravity のフォームでは、モデルごとに「その他のオプション」を展開して、表示名、コンテキストウィンドウ、最大出力、思考レベルを設定できます。一覧からモデルを選んだときやモデル ID を手入力したときは、models.dev をもとに自動入力します。++- **コンテキストウィンドウ**:agy がコンテキストを把握しているのは Gemini、GPT、Claude 系のモデルだけで、それ以外のモデル(DeepSeek、Kimi、Qwen など)は必ず設定してください。設定しないと会話を始めた途端にエラーになります。コンテキストだけを設定した場合、出力上限は 4096 トークンになります。最大出力を設定する場合はコンテキストウィンドウも設定し、コンテキストは最大出力の 2 倍以上にしてください。+- **思考レベル**:agy は実行中にゲートウェイのモデルの思考の強さを変えられません。ルーティングと集約モードでは、選んだ段階の数だけこのモデルをバリアントとして公開し(たとえば `deepseek-flash@max` は「DeepSeek Flash (Max)」と表示されます)、ルーティングが転送するときに対応する思考の強さに書き換えます。Antigravity デスクトップ版は同じモデルの複数の段階を 1 行にまとめ、「Thinking effort」サブメニューで切り替えます。段階を選んだモデルはバリアントだけを公開し、デフォルトモデルには先頭の行で選んだデフォルトの段階を使います。++> ⚠️ 直接接続モードは、サードパーティモデルの思考レベルにまだ対応していません。直接接続では agy がゲートウェイのモデルに思考の強さを送らないため、選んだ段階は反映されません。サードパーティのプラットフォームが提供するモデル(中継の Gemini モデルなど)で思考レベルを調整するには、ルーティングまたは集約モードをオンにしてください。+### カスタムアイコン名前の左にあるアイコンをクリックするとアイコン選択画面が開きます。内蔵アイコンを選ぶほか、自分の画像(PNG、JPG、WebP、SVG、2 MB まで)をアップロードして「マイアイコン」に保存でき、ほかのプロバイダーでもそのまま選べます。詳しくは [2.3 プロバイダーの編集 → アイコンのカスタマイズ](./2.3-edit.md#アイコンのカスタマイズ) を参照してください。diff --git a/docs/user-manual/ja/4-proxy/4.1-service.md b/docs/user-manual/ja/4-proxy/4.1-service.mdindex 5e1a1c053..a958db146 100644--- a/docs/user-manual/ja/4-proxy/4.1-service.md+++ b/docs/user-manual/ja/4-proxy/4.1-service.md@@ -10,7 +10,7 @@- ホットスイッチ:プロバイダーを切り替えると、以降のリクエストに即座に反映される- 各リクエストの使用量と状態を記録-ローカルルーティングに対応するアプリ:**Claude Code**、**Codex**、**Gemini CLI**、**Grok Build**。Claude Desktop の「モデルマッピング」モードもローカルルーティング経由で転送されます。詳しくは [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md) を参照してください。+ローカルルーティングに対応するアプリ:**Claude Code**、**Codex**、**Gemini CLI**、**Grok Build**、**Antigravity**。Claude Desktop の「モデルマッピング」モードもローカルルーティング経由で転送されます。詳しくは [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md) を参照してください。> 💡 使用量の統計にローカルルーティングは必須ではありません。ルーティングを有効にしていない場合も、CC Switch は各ツールのローカルのセッションログから使用量を集計します。詳しくは [4.4 使用量統計](./4.4-usage.md) を参照してください。@@ -133,6 +133,8 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build**:`~/.grok/config.toml` のリクエスト先アドレスが `http://127.0.0.1:15721/grokbuild/v1` を指すようになります。+**Antigravity**:`~/.gemini/config/config.json` のゲートウェイのアドレスが `http://127.0.0.1:15721/agy` を指すようになります。+ルーティング中は、設定ファイル内の API Key はプレースホルダーに置き換えられます。実際の Key は CC Switch に保存され、ローカルルーティングが転送時に付与します。## インターフェースフォーマット変換@@ -194,7 +196,7 @@ CC Switch を終了するときも、先に直接接続へ書き戻します。| フィールド | 説明 ||------|------|| 時間 | リクエスト時刻 |-| アプリ | Claude / Codex / Gemini / Grok Build |+| アプリ | Claude / Codex / Gemini / Grok Build / Antigravity || プロバイダー | 使用されたプロバイダー || モデル | リクエストされたモデル || Token | 入力/出力の Token 数 |diff --git a/docs/user-manual/ja/4-proxy/4.2-routing.md b/docs/user-manual/ja/4-proxy/4.2-routing.mdindex 0d33d0d50..efcf0b61f 100644--- a/docs/user-manual/ja/4-proxy/4.2-routing.md+++ b/docs/user-manual/ja/4-proxy/4.2-routing.md@@ -19,7 +19,7 @@ルーティングには CC Switch が起動し続けている必要があります。ルーティングサービスを事前に起動しておく必要はなく、ルーティングに入るときに自動的に起動します。-ルーティングに対応するアプリ:Claude Code、Codex、Gemini CLI、Grok Build。+ルーティングに対応するアプリ:Claude Code、Codex、Gemini CLI、Grok Build、Antigravity。## ルーティングの開始@@ -89,13 +89,15 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build 設定の変更**:`~/.grok/config.toml` 内の、ルーティングで使うプロバイダーのモデルテーブルのリクエスト先アドレスが `http://127.0.0.1:15721/grokbuild/v1` に変わります。Grok Build の公式アカウントはローカルルーティング経由では使用できません。現在公式プロバイダーを使っている場合、ルーティングを開始するとエラーになるため、先にサードパーティのプロバイダーに切り替えてください。+**Antigravity 設定の変更**:`~/.gemini/config/config.json` 内のゲートウェイのアドレスが `http://127.0.0.1:15721/agy` に変わります。Gemini ネイティブ(genai)プロトコルではモデル一覧を書き込まず、ルーティング先のプロバイダーのモデル一覧をもとにルーティングが代わりに応答するため、同じプロトコルのプロバイダー間でルーティング先を切り替えても設定ファイルは変わりません。OpenAI 互換プロトコルでは、通常どおりモデル一覧を書き込みます。ルーティングと集約は Gemini ネイティブと OpenAI Chat Completions の 2 つのプロトコルをそのまま転送するだけで、OpenAI Responses や Anthropic Messages 形式との変換にはまだ対応していません。公式カードはルーティング先にできません。API Key を入力していないカードや CA 証明書を設定したカードは直接接続のみです。Antigravity デスクトップ版は起動時にしかモデル一覧を読まないため、ルーティングに入ったり出たり、モデルを変えたりした後はデスクトップ版を再起動してください。+ルーティング中、設定ファイル内の API Key はプレースホルダー `PROXY_MANAGED` に置き換えられ、実際の Key はローカルルーティングが転送時に付与します。プロバイダーの切り替えと同様に、ルーティングに入っても変更されるのはこれらの主要フィールドだけで、設定ファイル内のその他の内容は変更されません。### リクエストの転送ルーティングサービスがリクエストを受信すると:-1. リクエスト元を識別(Claude/Codex/Gemini/Grok Build)+1. リクエスト元を識別(Claude/Codex/Gemini/Grok Build/Antigravity)2. そのアプリの現在のルーティング先を検索(フェイルオーバーが有効な場合はキューに従う)3. 必要に応じてインターフェースフォーマットを変換し、プロバイダーの実際のエンドポイントにリクエストを転送4. リクエストログを記録diff --git a/docs/user-manual/ja/4-proxy/4.3-failover.md b/docs/user-manual/ja/4-proxy/4.3-failover.mdindex 631a933ac..d6e9dc98c 100644--- a/docs/user-manual/ja/4-proxy/4.3-failover.md+++ b/docs/user-manual/ja/4-proxy/4.3-failover.md@@ -17,7 +17,9 @@2. ✅ 「ルーティング」タブでフェイルオーバーのスイッチをオンにする3. ✅ キューにプロバイダーがある-フェイルオーバーは Claude Code、Codex、Gemini CLI、Grok Build の 4 つのアプリのみに対応しています。集約モードではフェイルオーバーしません(キューと設定は保持され、ルーティングモードに戻すと復元されます)。共存型アプリ(OpenCode、OpenClaw、Hermes、Pi、MiniMax Code)にはフェイルオーバーキューがありません。公式アカウントはキューに入れられません。クライアント自身のログインを使うため、ほかのプロバイダーと交代できないからです。+フェイルオーバーは Claude Code、Codex、Gemini CLI、Grok Build、Antigravity の 5 つのアプリのみに対応しています。集約モードではフェイルオーバーしません(キューと設定は保持され、ルーティングモードに戻すと復元されます)。共存型アプリ(OpenCode、OpenClaw、Hermes、Pi、MiniMax Code)にはフェイルオーバーキューがありません。公式アカウントはキューに入れられません。クライアント自身のログインを使うため、ほかのプロバイダーと交代できないからです。++Antigravity のゲートウェイは 1 つのプロトコルしか使えないため、キューに追加できるのはルーティング先と同じプロトコルのカードだけで、API Key を入力していないカードや CA 証明書を設定したカードも追加できません。ルーティング先を別のプロトコルに替えると、プロトコルの異なるメンバーには「プロトコルが異なる」と表示され、フェイルオーバーでは飛ばされます。## フェイルオーバーの有効化diff --git a/docs/user-manual/ja/4-proxy/4.6-aggregation.md b/docs/user-manual/ja/4-proxy/4.6-aggregation.mdindex 9bda43a51..c914bc747 100644--- a/docs/user-manual/ja/4-proxy/4.6-aggregation.md+++ b/docs/user-manual/ja/4-proxy/4.6-aggregation.md@@ -2,9 +2,9 @@## 機能説明-集約モードは、複数のプロバイダーのモデルを Claude Code または Codex の同じモデル一覧にまとめます。クライアントの `/model` で選んだモデルに応じてリクエストが該当のプロバイダーに送られるため、CC Switch に戻ってプロバイダーを切り替える必要がありません。+集約モードは、複数のプロバイダーのモデルを Claude Code、Codex、Antigravity の同じモデル一覧にまとめます。クライアントのモデル選択で選んだモデルに応じてリクエストが該当のプロバイダーに送られるため、CC Switch に戻ってプロバイダーを切り替える必要がありません。-集約モードは **Claude Code** と **Codex** のみに対応しています。プロバイダーと集約リストはアプリごとに設定してください。+集約モードは **Claude Code**、**Codex**、**Antigravity** に対応しています。プロバイダーと集約リストはアプリごとに設定してください。Antigravity の違いは後述の [Antigravity](#antigravity) を参照してください。@@ -15,7 +15,7 @@| 同時に使うプロバイダー | 1 社(またはフェイルオーバーキューに従って交代) | 複数。選んだモデルに応じて振り分け || フェイルオーバー | 対応 | 非対応 || プロバイダーの切り替え方法 | CC Switch で切り替える | クライアントの `/model` でモデルを選ぶ |-| 対応アプリ | Claude Code / Codex / Gemini CLI / Grok Build | Claude Code / Codex のみ |+| 対応アプリ | Claude Code / Codex / Gemini CLI / Grok Build / Antigravity | Claude Code / Codex / Antigravity |どちらもこのマシンのルーティングサービスを経由するため、CC Switch を起動し続ける必要があります。1 つのアプリは、同時に直接接続・ルーティング・集約のいずれか 1 つのモードにしかなれません。@@ -23,7 +23,7 @@### 操作場所-サイドバーで Claude Code または Codex を選択 → ページ上部の「集約」タブ+サイドバーで Claude Code、Codex、Antigravity のいずれかを選択 → ページ上部の「集約」タブ### 操作手順@@ -95,6 +95,7 @@ Codex の公式アカウントを使う場合は、**OpenAI Official を既定|------|------------------|| Claude Code | すぐに反映 || Codex | 完全な再起動が必要 |+| Antigravity | 新しく起動した agy のセッションに反映。デスクトップ版は再起動が必要 |Codex はモデル一覧を起動時にしか読み込みません。集約に入る・抜ける、プロバイダーを追加・削除する、プロバイダーのモデルを変更するといった操作の後、ページに「Codex が古いモデル一覧を使っているため、集約したモデルが表示されません」と表示されます。クライアントの形態に応じて次のように対処します:@@ -145,6 +146,15 @@ Codex の自動承認(Approve for me、`approvals_reviewer = "auto_review"`)- **以前の回避策は使えなくなりました**:集約モードが公式ログインを保持するようになってから、他社のプロバイダーを既定にする方法は効かなくなりました- **それでもロックされる**:[#7962](https://github.com/farion1231/cc-switch/issues/7962) でお知らせください+## Antigravity++Antigravity の集約は Claude Code や Codex とほぼ同じですが、いくつか違いがあります:++- **同じプロトコルのカードだけ**:1 つのゲートウェイは 1 つのプロトコルしか使えないため、追加できるのは既定のプロバイダーと同じプロトコル(Gemini ネイティブまたは OpenAI 互換)のカードだけです。既定のプロバイダーを別のプロトコルに替えると、古いプロトコルのメンバーはリストに残り、「プロトコルが異なる」と表示され、モデルは公開されません。元のプロトコルに戻すと復元されます。+- **追加できないカード**:公式カードは追加できません(利用規約に従うため)。API Key を入力していないカードや CA 証明書を設定したカードも追加できません。+- **モデル名**:メンバーのモデルは「モデル(プロバイダー)」と表示され、ID は `ccs-<プロバイダー>--<モデル>` です。+- **思考レベル**:モデルで思考レベルを選んでいる場合、集約でも段階付きのバリアントとして公開します。[2.1 プロバイダーの追加 → Antigravity のモデルオプション](../2-providers/2.1-add.md#antigravity-のモデルオプション) を参照してください。+## 制限事項- **フェイルオーバーはしません**:集約モードの間もキューと設定は保持され、ルーティングモードに戻すと復元されますdiff --git a/docs/user-manual/zh/1-getting-started/1.3-interface.md b/docs/user-manual/zh/1-getting-started/1.3-interface.mdindex d6e5b9902..1573de253 100644--- a/docs/user-manual/zh/1-getting-started/1.3-interface.md+++ b/docs/user-manual/zh/1-getting-started/1.3-interface.md@@ -128,7 +128,7 @@ CC Switch 在系统托盘显示图标,提供快速操作入口。| 菜单项 | 功能 ||--------|------|| 打开 CC Switch | 显示主窗口并聚焦,始终在最上面 |-| 应用子菜单 | Claude Code、Claude Desktop、Codex、Gemini CLI、Grok Build、Antigravity 六个切换式应用各一个子菜单,标题显示当前供应商和模式;子菜单里点供应商即可切换,当前的带勾选标记,还可以打开该应用页面或添加供应商,部分应用会显示额度摘要。Antigravity 里点绑定了授权中心账号的官方卡,会先把 agy 的登录切到那个号,卡片旁显示账号名 |+| 应用子菜单 | Claude Code、Claude Desktop、Codex、Gemini CLI、Grok Build、Antigravity 六个切换式应用各一个子菜单,标题显示当前供应商和模式;子菜单里点供应商即可切换,当前的带勾选标记,还可以打开该应用页面或添加供应商,部分应用会显示额度摘要。Antigravity 里点绑定了授权中心账号的官方卡,会先把 agy 的登录切到那个号,卡片旁显示账号名。应用的排列顺序和「应用」页一致 || 项目 | 切换项目(整套供应商、MCP、Skills、提示词状态),仅在开启「显示项目切换」后出现 || 轻量模式 | 勾选框,进入或退出仅托盘运行模式 || 打开官方网站 | 在浏览器中打开 ccswitch.io |diff --git a/docs/user-manual/zh/1-getting-started/1.5-settings.md b/docs/user-manual/zh/1-getting-started/1.5-settings.mdindex ea7ca408a..69819523f 100644--- a/docs/user-manual/zh/1-getting-started/1.5-settings.md+++ b/docs/user-manual/zh/1-getting-started/1.5-settings.md@@ -150,6 +150,8 @@ Claude Desktop 和 MiniMax Code 不支持在这里覆盖目录(所以应用配**全局出站代理**:配置 CC Switch 访问外部 API 时使用的 HTTP/HTTPS 代理,适用于需要通过代理访问外部 API 的场景。+全局代理也会交给 CC Switch 启动的程序:从卡片打开终端、在终端里恢复会话、「应用」页安装和升级工具、MCP 连通性检查,CodeBuddy、Antigravity 的登录终端和 Hermes 仪表盘。终端里的客户端只收 HTTP(S) 代理并跳过本机地址(本地路由仍直连),agy 另外也收 SOCKS5 代理。卡片自己配了代理时以卡片为准;你在 shell 配置文件里自己设的代理也优先。代理地址带账号密码时,恢复会话不带代理,因为命令会显示在终端里。+### IP 检测打开 **设置 → 网络 → IP 检测**,选择已保存的全局代理或临时代理。临时代理地址只用于本次检测,不会修改已保存的配置。地址留空时遵循 CC Switch 的系统代理行为,并不强制直连。diff --git a/docs/user-manual/zh/2-providers/2.1-add.md b/docs/user-manual/zh/2-providers/2.1-add.mdindex ac9364eb8..d7af8460d 100644--- a/docs/user-manual/zh/2-providers/2.1-add.md+++ b/docs/user-manual/zh/2-providers/2.1-add.md@@ -560,6 +560,15 @@ GitHub Copilot 供应商点击 **获取模型** 时,也会按账号返回的 `开关开启后显示的文本框可自定义自动压缩限制值。该开关仅在新增 Codex 供应商时显示;编辑已有供应商时可通过高级配置直接调整相关字段。+### Antigravity 的模型选项++Antigravity 表单里每个模型都可以展开「更多选项」,填显示名、上下文窗口、输出上限和思考等级。从列表选模型或手动输入模型 ID 时,会按 models.dev 自动补全。++- **上下文窗口**:agy 只认得 Gemini、GPT、Claude 系列的上下文,其他模型(如 DeepSeek、Kimi、Qwen)必须填,否则一对话就报错;只填上下文时输出上限只有 4096 tokens。填输出上限要同时填上下文窗口,上下文至少是输出上限的 2 倍。+- **思考等级**:agy 运行中改不了网关模型的思考强度。路由和聚合模式下,选了几个档位,就把这个模型发布成几个变体(如 `deepseek-flash@max`,显示为「DeepSeek Flash (Max)」),路由转发时改写成对应的思考强度。Antigravity 桌面版会把同一个模型的几档合成一行,在「Thinking effort」子菜单里切换。选了档位的模型只发布变体,默认模型用第一行选的默认档。++> ⚠️ 直连模式暂不支持第三方模型的思考等级:直连时 agy 不会给网关模型发思考强度,选的档位不生效。要用第三方平台提供的模型(比如中转的 Gemini 模型)调思考等级,请打开路由或聚合模式。+### 自定义图标点击名称左侧的图标打开图标选择器,可以选内置图标,也可以上传自己的图片(PNG、JPG、WebP、SVG,不超过 2 MB)存进「我的图标」,之后其他供应商也能直接选。详见 [2.3 编辑供应商 → 图标自定义](./2.3-edit.md#图标自定义)。diff --git a/docs/user-manual/zh/4-proxy/4.1-service.md b/docs/user-manual/zh/4-proxy/4.1-service.mdindex b07a89650..fdc85033a 100644--- a/docs/user-manual/zh/4-proxy/4.1-service.md+++ b/docs/user-manual/zh/4-proxy/4.1-service.md@@ -10,7 +10,7 @@- 热切换:切换供应商后立即作用于后续请求- 记录每次请求的用量与状态-支持本地路由的应用:**Claude Code**、**Codex**、**Gemini CLI**、**Grok Build**。Claude Desktop 的「模型映射」模式也经由本地路由转发,详见 [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md)。+支持本地路由的应用:**Claude Code**、**Codex**、**Gemini CLI**、**Grok Build**、**Antigravity**。Claude Desktop 的「模型映射」模式也经由本地路由转发,详见 [2.6 Claude Desktop](../2-providers/2.6-claude-desktop.md)。> 💡 统计用量不一定要开启本地路由:不开路由时,CC Switch 也会从各工具的本地会话记录统计用量,详见 [4.4 用量统计](./4.4-usage.md)。@@ -133,6 +133,8 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build**:`~/.grok/config.toml` 中的请求地址指向 `http://127.0.0.1:15721/grokbuild/v1`。+**Antigravity**:`~/.gemini/config/config.json` 中网关的地址指向 `http://127.0.0.1:15721/agy`。+路由期间,配置文件中的 API Key 会被替换为占位符,真实 Key 保存在 CC Switch 中,由本地路由在转发时注入。## 接口格式转换@@ -194,7 +196,7 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721| 字段 | 说明 ||------|------|| 时间 | 请求时间 |-| 应用 | Claude / Codex / Gemini / Grok Build |+| 应用 | Claude / Codex / Gemini / Grok Build / Antigravity || 供应商 | 使用的供应商 || 模型 | 请求的模型 || Token | 输入/输出 token 数 |diff --git a/docs/user-manual/zh/4-proxy/4.2-routing.md b/docs/user-manual/zh/4-proxy/4.2-routing.mdindex 663e9de1a..a7ad73b42 100644--- a/docs/user-manual/zh/4-proxy/4.2-routing.md+++ b/docs/user-manual/zh/4-proxy/4.2-routing.md@@ -19,7 +19,7 @@路由需要 CC Switch 保持运行。路由服务不用事先启动,进入路由时会自动启动。-支持路由的应用:Claude Code、Codex、Gemini CLI、Grok Build。+支持路由的应用:Claude Code、Codex、Gemini CLI、Grok Build、Antigravity。## 开始路由@@ -89,13 +89,15 @@ GOOGLE_GEMINI_BASE_URL=http://127.0.0.1:15721**Grok Build 配置变更**:`~/.grok/config.toml` 中路由供应商那张模型表的请求地址改为 `http://127.0.0.1:15721/grokbuild/v1`。Grok Build 的官方账号不能经本地路由使用:当前是官方供应商时开始路由会报错,请先切到第三方供应商。+**Antigravity 配置变更**:`~/.gemini/config/config.json` 中网关的地址改为 `http://127.0.0.1:15721/agy`。Gemini 原生(genai)协议下不写模型列表,由路由按路由那家的模型列表代答,所以在同协议的供应商之间切换路由不改配置文件;OpenAI 兼容协议照常写入模型列表。路由和聚合只原样转发 Gemini 原生和 OpenAI Chat Completions 两种协议,暂时还不支持和 OpenAI Responses、Anthropic Messages 格式之间的转换。官方卡不能当路由;没填 API Key 或填了 CA 证书的卡只能直连。Antigravity 桌面版只在启动时读模型列表,进出路由、换了模型后要重启桌面版。+路由期间,配置文件中的 API Key 会替换为占位符 `PROXY_MANAGED`,真实 Key 由本地路由在转发时注入。和切换供应商一样,进入路由只改这些关键字段,配置文件里的其他内容不动。### 请求转发路由收到请求后:-1. 识别请求来源(Claude/Codex/Gemini/Grok Build)+1. 识别请求来源(Claude/Codex/Gemini/Grok Build/Antigravity)2. 查找该应用当前的路由目标(开了故障转移时按队列)3. 按需转换接口格式,将请求转发到供应商的实际端点4. 记录请求日志diff --git a/docs/user-manual/zh/4-proxy/4.3-failover.md b/docs/user-manual/zh/4-proxy/4.3-failover.mdindex 0cc56937e..6ec2d94c7 100644--- a/docs/user-manual/zh/4-proxy/4.3-failover.md+++ b/docs/user-manual/zh/4-proxy/4.3-failover.md@@ -17,7 +17,9 @@2. ✅ 在「路由」标签里打开故障转移开关3. ✅ 队列里有供应商-故障转移只支持 Claude Code、Codex、Gemini CLI、Grok Build 四个应用;聚合模式不做故障转移(队列和设置会保留,回到路由模式后恢复);累加式应用(OpenCode、OpenClaw、Hermes、Pi、MiniMax Code)没有故障转移队列。官方账号不进队列:它用客户端自己的登录,不能和别家轮换。+故障转移只支持 Claude Code、Codex、Gemini CLI、Grok Build、Antigravity 五个应用;聚合模式不做故障转移(队列和设置会保留,回到路由模式后恢复);累加式应用(OpenCode、OpenClaw、Hermes、Pi、MiniMax Code)没有故障转移队列。官方账号不进队列:它用客户端自己的登录,不能和别家轮换。++Antigravity 一个网关只能用一种协议,所以只有和路由那家同协议的卡能加入队列,没填 API Key 或填了 CA 证书的卡也不能加入;路由换成另一种协议后,协议不同的成员会标「协议不同」,故障转移时跳过。## 开启故障转移diff --git a/docs/user-manual/zh/4-proxy/4.6-aggregation.md b/docs/user-manual/zh/4-proxy/4.6-aggregation.mdindex bc8be28d1..6b2ff25c1 100644--- a/docs/user-manual/zh/4-proxy/4.6-aggregation.md+++ b/docs/user-manual/zh/4-proxy/4.6-aggregation.md@@ -2,9 +2,9 @@## 功能说明-聚合模式把多家供应商的模型放进 Claude Code 或 Codex 的同一个模型列表。在客户端的 `/model` 里选哪个模型,请求就发给哪一家,不用回到 CC Switch 切换供应商。+聚合模式把多家供应商的模型放进 Claude Code、Codex 或 Antigravity 的同一个模型列表。在客户端的模型选择器里选哪个模型,请求就发给哪一家,不用回到 CC Switch 切换供应商。-聚合模式只支持 **Claude Code** 和 **Codex**,两个应用的供应商和聚合名单需要分别配置。+聚合模式支持 **Claude Code**、**Codex** 和 **Antigravity**,各应用的供应商和聚合名单需要分别配置。Antigravity 的差异见下文 [Antigravity](#antigravity)。完整图文步骤见 [聚合模式使用攻略](../../../guides/aggregation-mode-guide-zh.md)。@@ -17,7 +17,7 @@| 同一时间使用的供应商 | 一家(或按故障转移队列轮换) | 多家,按所选模型分发 || 故障转移 | 支持 | 不支持 || 切换供应商的方式 | 在 CC Switch 里切换 | 在客户端 `/model` 里选模型 |-| 适用应用 | Claude Code / Codex / Gemini CLI / Grok Build | 仅 Claude Code / Codex |+| 适用应用 | Claude Code / Codex / Gemini CLI / Grok Build / Antigravity | Claude Code / Codex / Antigravity |两者都经过本机的路由服务,所以都需要 CC Switch 保持运行。一个应用同一时间只能处于直连、路由、聚合三种模式之一。@@ -25,7 +25,7 @@### 操作位置-侧栏选择 Claude Code 或 Codex → 页面顶部的「聚合」标签+侧栏选择 Claude Code、Codex 或 Antigravity → 页面顶部的「聚合」标签### 操作步骤@@ -97,6 +97,7 @@|------|------------------|| Claude Code | 立即生效 || Codex | 需要彻底重启 |+| Antigravity | 新开的 agy 会话生效;桌面版要重启 |Codex 只在启动时读取模型列表。进入或退出聚合、添加或移除供应商、改动某家的模型后,页面会提示“Codex 还在用旧的模型列表,聚合的模型不会出现”,按客户端形态处理:@@ -147,6 +148,15 @@ Codex 开了自动审批(Approve for me,`approvals_reviewer = "auto_review"`- **早先的办法已失效**:“把第三方设为默认供应商”在聚合保留官方登录后不再起作用- **仍然被锁**:请到 [#7962](https://github.com/farion1231/cc-switch/issues/7962) 反馈+## Antigravity++Antigravity 的聚合和 Claude Code、Codex 大体一样,有几处不同:++- **只收同协议的卡**:一个网关只能用一种协议,只有和默认那家同协议(Gemini 原生或 OpenAI 兼容)的卡能加入。默认那家换成另一种协议后,旧协议的成员留在名单里,标「协议不同」,模型暂不发布,换回来后恢复。+- **不能加入的卡**:官方卡不能加入(遵守用户协议),没填 API Key 或填了 CA 证书的卡也不能加入。+- **模型名**:成员的模型显示为「模型(供应商)」,ID 是 `ccs-<供应商>--<模型>`。+- **思考等级**:模型选了思考等级时,聚合里也发布成带档位的变体,见 [2.1 添加供应商 → Antigravity 的模型选项](../2-providers/2.1-add.md#antigravity-的模型选项)。+## 限制- **不做故障转移**:聚合模式下队列和设置会保留,回到路由模式后恢复