Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs-site/src/content/docs/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1228,3 +1228,25 @@ OpenCodex refuses those ambiguous settings. It also refuses an
unsafe target or a row edited since apply. The integration is loopback only and
never copies provider credentials. Factory documents the [BYOK schema](https://docs.factory.ai/model-independence/byok)
and [personal settings path](https://docs.factory.ai/droid-cli/settings).

## Antigravity app and agy CLI

Google's Antigravity desktop app (2.15 and newer) and the `agy` CLI (1.2.15 and newer) can run through
OpenCodex's gateway. Connect from the dashboard, or from a terminal:

```bash
ocx connect antigravity --model <id> # desktop app: ~/.antigravity/settings.json
ocx connect agy # agy CLI: a marked shell function in your profiles
ocx connect antigravity status # or: ocx connect agy status
ocx disconnect antigravity # or: ocx disconnect agy
```

Connect records what it replaced. Disconnect puts the original bytes back when the file is unchanged, and
otherwise reverts only OpenCodex's own entries and keeps your edits. Restart Antigravity, or open a new
terminal for `agy`, to apply a change.

OpenCodex writes a placeholder key, never a real credential, so it refuses to connect when the proxy bind
requires one. A file with comments or trailing commas is also refused and left untouched. Antigravity reads
an organization `admin_settings.json` first, then the `AGY_LLM_GATEWAY_*` variables, then the user settings;
status shows a warning when one of the first two overrides the connection. On Windows `agy` is untested
because Google lists it for macOS and Linux only.
1 change: 1 addition & 0 deletions gui/src/app-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const INTEGRATION_TAB_HASHES = [
"integrations/claude/desktop",
"integrations/grok",
"integrations/cursor",
"integrations/antigravity",
"integrations/opencode",
"integrations/pi",
"integrations/gentle-shell",
Expand Down
4 changes: 3 additions & 1 deletion gui/src/components/integration-marks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const NATIVE_MARKS: Record<Exclude<OverviewClientId, ExportClientId>, string> =
* vendor publishes nothing usable, and `ClientMark` renders a monogram for it.
* Gentle Shell uses that fallback, which `integration-marks.test.ts` pins.
*/
export const INTEGRATION_MARKS: Record<OverviewClientId, string | null> = {
export const INTEGRATION_MARKS: Record<OverviewClientId | "antigravity", string | null> = {
...NATIVE_MARKS,
opencode: CLIENT_MARKS.opencode ?? null,
pi: CLIENT_MARKS.pi ?? null,
Expand All @@ -70,6 +70,8 @@ export const INTEGRATION_MARKS: Record<OverviewClientId, string | null> = {
workbuddy: null,
"workbuddy-ai": null,
t3code: CLIENT_MARKS.t3code ?? null,
// The Antigravity tab is a gateway-client switch, not an overview row.
antigravity: "/provider-icons/antigravity-color.svg",
};

/**
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -137,6 +138,7 @@ export const de: Record<TKey, string> = {
...shellV2Copy("de"),
...codexCliUpdateCopy("de"),
...remoteLinkDiagnosticsCopy("de"),
...gatewayClientsCopy("de"),
...modelsV2Copy("de"),
...accountsV2Copy("de"),
...subagentsV2Copy("de"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -138,6 +139,7 @@ export const en = {
...shellV2Copy("en"),
...codexCliUpdateCopy("en"),
...remoteLinkDiagnosticsCopy("en"),
...gatewayClientsCopy("en"),
...modelsV2Copy("en"),
...accountsV2Copy("en"),
...subagentsV2Copy("en"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -136,6 +137,7 @@ export const fr: Record<TKey, string> = {
...shellV2Copy("fr"),
...codexCliUpdateCopy("fr"),
...remoteLinkDiagnosticsCopy("fr"),
...gatewayClientsCopy("fr"),
...modelsV2Copy("fr"),
...accountsV2Copy("fr"),
...subagentsV2Copy("fr"),
Expand Down
35 changes: 35 additions & 0 deletions gui/src/i18n/gateway-clients-copy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copy for the Antigravity and agy connect tab. One row per key, columns in the order of
* `locales`, kept apart from the per-locale files like remote-link-diagnostics-copy.ts. Paths,
* roles, notes and refusal messages come from the server and are shown as sent.
*/
type Locale = "en" | "ko" | "de" | "fr" | "zh" | "zh-TW" | "ru" | "ja" | "tr" | "vi" | "pt";
const locales: readonly Locale[] = ["en", "ko", "de", "fr", "zh", "zh-TW", "ru", "ja", "tr", "vi", "pt"];
type Row = readonly [string, string, string, string, string, string, string, string, string, string, string];

const rows = {
tab: ["Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity","Antigravity"],
title: ["Antigravity and agy","Antigravity 및 agy","Antigravity und agy","Antigravity et agy","Antigravity 和 agy","Antigravity 與 agy","Antigravity и agy","Antigravity と agy","Antigravity ve agy","Antigravity và agy","Antigravity e agy"],
intro: ["Send Google's Antigravity desktop app and the agy CLI through this proxy. Connect writes their gateway settings and keeps a copy of what was there; Disconnect puts it back.","Google의 Antigravity 데스크톱 앱과 agy CLI가 이 프록시를 거치게 해요. 연결하면 게이트웨이 설정을 쓰고 기존 내용을 보관하며, 연결 해제하면 되돌려요.","Leitet Googles Antigravity-Desktop-App und die agy-CLI über diesen Proxy. Verbinden schreibt ihre Gateway-Einstellungen und sichert den vorherigen Stand; Trennen stellt ihn wieder her.","Fait passer l’application de bureau Antigravity de Google et la CLI agy par ce proxy. Connecter écrit leurs réglages de passerelle et conserve l’état précédent ; Déconnecter le rétablit.","让 Google 的 Antigravity 桌面应用和 agy 命令行经由此代理。连接会写入它们的网关设置并保留原有内容;断开会恢复原样。","讓 Google 的 Antigravity 桌面應用程式和 agy 命令列經由此代理。連線會寫入它們的閘道設定並保留原有內容;中斷連線會還原。","Направляет настольное приложение Google Antigravity и CLI agy через этот прокси. Подключение записывает настройки шлюза и сохраняет прежнее содержимое; отключение возвращает его.","Google の Antigravity デスクトップアプリと agy CLI をこのプロキシ経由にします。接続するとゲートウェイ設定を書き込み、元の内容を保管します。切断すると元に戻します。","Google'ın Antigravity masaüstü uygulamasını ve agy CLI'ını bu proxy üzerinden geçirir. Bağlan, ağ geçidi ayarlarını yazar ve önceki hâlini saklar; Bağlantıyı kes onu geri yükler.","Cho ứng dụng Antigravity trên máy tính của Google và CLI agy đi qua proxy này. Kết nối sẽ ghi cài đặt cổng và giữ bản cũ; Ngắt kết nối sẽ khôi phục lại.","Faz o app de desktop Antigravity do Google e a CLI agy passarem por este proxy. Conectar grava as configurações de gateway e guarda o estado anterior; Desconectar o restaura."],
loading: ["Reading client status…","클라이언트 상태를 읽는 중…","Clientstatus wird gelesen…","Lecture de l’état des clients…","正在读取客户端状态…","正在讀取用戶端狀態…","Чтение состояния клиентов…","クライアントの状態を読み込み中…","İstemci durumu okunuyor…","Đang đọc trạng thái máy khách…","Lendo o status dos clientes…"],
unavailable: ["Could not read the Antigravity and agy status.","Antigravity 및 agy 상태를 읽지 못했어요.","Der Status von Antigravity und agy konnte nicht gelesen werden.","Impossible de lire l’état d’Antigravity et d’agy.","无法读取 Antigravity 和 agy 的状态。","無法讀取 Antigravity 與 agy 的狀態。","Не удалось прочитать состояние Antigravity и agy.","Antigravity と agy の状態を読み取れませんでした。","Antigravity ve agy durumu okunamadı.","Không đọc được trạng thái của Antigravity và agy.","Não foi possível ler o status do Antigravity e do agy."],
files: ["Files it changes","변경하는 파일","Geänderte Dateien","Fichiers modifiés","会修改的文件","會修改的檔案","Изменяемые файлы","変更するファイル","Değiştirdiği dosyalar","Các tệp sẽ thay đổi","Arquivos alterados"],
fileMissing: ["not created yet","아직 없음","noch nicht angelegt","pas encore créé","尚未创建","尚未建立","ещё не создан","未作成","henüz oluşturulmadı","chưa được tạo","ainda não criado"],
overrideAdmin: ["Your organization's admin_settings.json sets a gateway, so this setting has no effect:","조직의 admin_settings.json이 게이트웨이를 지정하고 있어 이 설정은 적용되지 않아요:","Die admin_settings.json Ihrer Organisation legt ein Gateway fest, daher wirkt diese Einstellung nicht:","Le fichier admin_settings.json de votre organisation définit une passerelle ; ce réglage n’a donc aucun effet :","你所在组织的 admin_settings.json 指定了网关,因此此设置不会生效:","你所屬組織的 admin_settings.json 指定了閘道,因此此設定不會生效:","admin_settings.json вашей организации задаёт шлюз, поэтому эта настройка не действует:","組織の admin_settings.json がゲートウェイを指定しているため、この設定は効きません:","Kuruluşunuzun admin_settings.json dosyası bir ağ geçidi belirliyor, bu yüzden bu ayarın etkisi yok:","admin_settings.json của tổ chức bạn đã đặt cổng, nên cài đặt này không có tác dụng:","O admin_settings.json da sua organização define um gateway, então esta configuração não tem efeito:"],
overrideEnv: ["An environment variable takes precedence over this setting:","환경 변수가 이 설정보다 우선해요:","Eine Umgebungsvariable hat Vorrang vor dieser Einstellung:","Une variable d’environnement prime sur ce réglage :","有环境变量优先于此设置:","有環境變數優先於此設定:","Переменная окружения имеет приоритет над этой настройкой:","環境変数がこの設定より優先されます:","Bir ortam değişkeni bu ayarın önüne geçiyor:","Một biến môi trường được ưu tiên hơn cài đặt này:","Uma variável de ambiente tem prioridade sobre esta configuração:"],
model: ["Default model (optional)","기본 모델(선택)","Standardmodell (optional)","Modèle par défaut (facultatif)","默认模型(可选)","預設模型(選填)","Модель по умолчанию (необязательно)","デフォルトモデル(任意)","Varsayılan model (isteğe bağlı)","Mô hình mặc định (không bắt buộc)","Modelo padrão (opcional)"],
modelHint: ["Leave empty to keep the app's own choice.","비워 두면 앱의 기존 선택을 유지해요.","Leer lassen, um die Auswahl der App zu behalten.","Laissez vide pour garder le choix de l’application.","留空则保留应用自己的选择。","留空則保留應用程式自己的選擇。","Оставьте пустым, чтобы сохранить выбор приложения.","空欄にするとアプリ側の選択を保ちます。","Uygulamanın kendi seçimini korumak için boş bırakın.","Để trống để giữ lựa chọn của ứng dụng.","Deixe vazio para manter a escolha do próprio app."],
connect: ["Connect","연결","Verbinden","Connecter","连接","連線","Подключить","接続","Bağlan","Kết nối","Conectar"],
disconnect: ["Disconnect","연결 해제","Trennen","Déconnecter","断开","中斷連線","Отключить","切断","Bağlantıyı kes","Ngắt kết nối","Desconectar"],
working: ["Working…","처리 중…","Wird ausgeführt…","En cours…","处理中…","處理中…","Выполняется…","処理中…","İşleniyor…","Đang xử lý…","Processando…"],
actionFailed: ["The request did not reach the proxy. Check that it is running and try again.","요청이 프록시에 닿지 않았어요. 실행 중인지 확인하고 다시 시도하세요.","Die Anfrage hat den Proxy nicht erreicht. Prüfen Sie, ob er läuft, und versuchen Sie es erneut.","La requête n’a pas atteint le proxy. Vérifiez qu’il tourne et réessayez.","请求没有到达代理。请确认它正在运行后重试。","請求沒有到達代理。請確認它正在執行後重試。","Запрос не дошёл до прокси. Убедитесь, что он запущен, и повторите попытку.","リクエストがプロキシに届きませんでした。起動しているか確認して、もう一度お試しください。","İstek proxy'ye ulaşmadı. Çalıştığını kontrol edip yeniden deneyin.","Yêu cầu không tới được proxy. Hãy kiểm tra proxy đang chạy rồi thử lại.","A solicitação não chegou ao proxy. Verifique se ele está em execução e tente novamente."],
} satisfies Record<string, Row>;

export type GatewayClientsCopyKey = `gatewayClients.${keyof typeof rows}`;

export function gatewayClientsCopy(locale: Locale): Record<GatewayClientsCopyKey, string> {
const column = locales.indexOf(locale);
return Object.fromEntries(
Object.entries(rows).map(([key, row]) => [`gatewayClients.${key}`, row[column]!]),
) as Record<GatewayClientsCopyKey, string>;
}
2 changes: 2 additions & 0 deletions gui/src/i18n/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -136,6 +137,7 @@ export const ja: Record<TKey, string> = {
...shellV2Copy("ja"),
...codexCliUpdateCopy("ja"),
...remoteLinkDiagnosticsCopy("ja"),
...gatewayClientsCopy("ja"),
...modelsV2Copy("ja"),
...accountsV2Copy("ja"),
...subagentsV2Copy("ja"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -136,6 +137,7 @@ export const ko: Record<TKey, string> = {
...shellV2Copy("ko"),
...codexCliUpdateCopy("ko"),
...remoteLinkDiagnosticsCopy("ko"),
...gatewayClientsCopy("ko"),
...modelsV2Copy("ko"),
...accountsV2Copy("ko"),
...subagentsV2Copy("ko"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -138,6 +139,7 @@ export const pt: Record<TKey, string> = {
...shellV2Copy("pt"),
...codexCliUpdateCopy("pt"),
...remoteLinkDiagnosticsCopy("pt"),
...gatewayClientsCopy("pt"),
...modelsV2Copy("pt"),
...accountsV2Copy("pt"),
...subagentsV2Copy("pt"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -136,6 +137,7 @@ export const ru: Record<TKey, string> = {
...shellV2Copy("ru"),
...codexCliUpdateCopy("ru"),
...remoteLinkDiagnosticsCopy("ru"),
...gatewayClientsCopy("ru"),
...modelsV2Copy("ru"),
...accountsV2Copy("ru"),
...subagentsV2Copy("ru"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -137,6 +138,7 @@ export const tr: Record<TKey, string> = {
...shellV2Copy("tr"),
...codexCliUpdateCopy("tr"),
...remoteLinkDiagnosticsCopy("tr"),
...gatewayClientsCopy("tr"),
...modelsV2Copy("tr"),
...accountsV2Copy("tr"),
...subagentsV2Copy("tr"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -138,6 +139,7 @@ export const vi: Record<TKey, string> = {
...shellV2Copy("vi"),
...codexCliUpdateCopy("vi"),
...remoteLinkDiagnosticsCopy("vi"),
...gatewayClientsCopy("vi"),
...modelsV2Copy("vi"),
...accountsV2Copy("vi"),
...subagentsV2Copy("vi"),
Expand Down
2 changes: 2 additions & 0 deletions gui/src/i18n/zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { desktopCompatibilityCopy } from "./desktop-compatibility-copy";
import { shellV2Copy } from "./shell-v2-copy";
import { codexCliUpdateCopy } from "./codex-cli-update-copy";
import { remoteLinkDiagnosticsCopy } from "./remote-link-diagnostics-copy";
import { gatewayClientsCopy } from "./gateway-clients-copy";
import { modelsV2Copy } from "./v2-pages/models-copy";
import { accountsV2Copy } from "./v2-pages/accounts-copy";
import { subagentsV2Copy } from "./v2-pages/subagents-copy";
Expand Down Expand Up @@ -134,6 +135,7 @@ export const zhTW: Record<TKey, string> = {
...shellV2Copy("zh-TW"),
...codexCliUpdateCopy("zh-TW"),
...remoteLinkDiagnosticsCopy("zh-TW"),
...gatewayClientsCopy("zh-TW"),
...modelsV2Copy("zh-TW"),
...accountsV2Copy("zh-TW"),
...subagentsV2Copy("zh-TW"),
Expand Down
Loading
Loading