Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(antigravity): provider spec entry (OAuth-only, brain tier)

Ruben Lütke79f5e505ea78
diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.py
index 82870e9826..38e1b15096 100644
--- a/jarvis/ui/web/provider_spec.py
+++ b/jarvis/ui/web/provider_spec.py
@@ -11,7 +11,7 @@ from __future__ import annotations
from dataclasses import dataclass
from typing import Literal
-AuthMode = Literal["api_key", "codex", "none"]
+AuthMode = Literal["api_key", "codex", "antigravity", "none"]
Tier = Literal["brain", "tts", "stt"]
@@ -70,6 +70,22 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
secret_keys=("openrouter_api_key",),
dashboard_url="https://openrouter.ai/keys",
),
+ # ── Brain: Google subscription via the official Antigravity/Gemini CLI ──
+ # OAuth-only (no API-key slot): we drive the official ``agy``/``gemini`` CLI
+ # as a subprocess over the user's "Sign in with Google" login — billed
+ # against the Google subscription, no Gemini API key. Mirror of the Codex
+ # ChatGPT-login path. The UI renders an OAuth connect widget (auth_mode).
+ ProviderSpec(
+ id="antigravity",
+ label="Antigravity (Google subscription)",
+ tier="brain",
+ auth_mode="antigravity",
+ secret_keys=(),
+ dashboard_url="https://antigravity.google",
+ login_cli=("agy", "login"),
+ install_hint="Install Antigravity (agy) or sign in with the Gemini CLI",
+ credential_path_hint="~/.gemini/oauth_creds.json",
+ ),
ProviderSpec(
id="gemini",
label="Google Gemini",
diff --git a/tests/unit/ui/test_provider_spec_antigravity.py b/tests/unit/ui/test_provider_spec_antigravity.py
new file mode 100644
index 0000000000..f4147c5039
--- /dev/null
+++ b/tests/unit/ui/test_provider_spec_antigravity.py
@@ -0,0 +1,25 @@
+"""The Antigravity (Google-subscription) provider entry.
+
+The per-provider model picker's curated antigravity list rides with the sibling
+``model_catalog`` per-provider-picker feature (uncommitted in the shared tree);
+adding it here would sweep that foreign work into this commit, so it is a tracked
+one-line follow-up. The brain itself uses its default model regardless.
+"""
+from __future__ import annotations
+
+from jarvis.brain import model_catalog
+from jarvis.ui.web.provider_spec import get_spec
+
+
+def test_antigravity_provider_spec():
+ spec = get_spec("antigravity")
+ assert spec is not None
+ assert spec.tier == "brain"
+ assert spec.auth_mode == "antigravity"
+ assert spec.secret_keys == () # OAuth-only, no API-key slot
+ assert spec.login_cli is not None
+
+
+def test_antigravity_excluded_from_live_catalog():
+ # No /v1/models endpoint over OAuth — must not be live-fetched.
+ assert "antigravity" not in model_catalog.CATALOG_PROVIDERS