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(brain,ui): absorb parallel-session provider work (model catalog, app control, wizard, provider spec, agent section)

Ruben Lütkeeaa550897907
diff --git a/jarvis/brain/app_control.py b/jarvis/brain/app_control.py
index ee70267479..512dc52981 100644
--- a/jarvis/brain/app_control.py
+++ b/jarvis/brain/app_control.py
@@ -91,6 +91,7 @@ AUTH_PROVIDER_ALIASES: dict[str, str] = {
"gemini-live": "gemini",
"grok": "grok",
"grok-voice": "grok",
+ "grok-realtime": "grok",
"openai-realtime": "openai",
}
diff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.py
index 547301ac1a..ac34beafb8 100644
--- a/jarvis/brain/model_catalog.py
+++ b/jarvis/brain/model_catalog.py
@@ -280,7 +280,8 @@ TTS_CATALOG: dict[str, tuple[str, list[ModelInfo]]] = {
}
# Realtime catalogs — REALTIME_MODELS + REALTIME_VOICES, keyed by realtime
-# provider id (``openai-realtime`` / ``gemini-live``). Realtime needs BOTH a
+# provider id (``openai-realtime`` / ``gemini-live`` / ``grok-realtime``).
+# Realtime needs BOTH a
# model AND a voice selection per provider (unlike every other picker, which
# serves ONE selection), so these two dicts are looked up directly by the
# dedicated ``GET/PUT /providers/{id}/realtime-options`` endpoints rather than
@@ -325,6 +326,13 @@ REALTIME_MODELS: dict[str, list[ModelInfo]] = {
"Gemini 2.5 Flash Native Audio",
),
]),
+ # xAI Voice Agent API. ``grok-voice-latest`` tracks the recommended model;
+ # the versioned sibling lets users pin production behavior. The deprecated
+ # grok-voice-fast-1.0 model is intentionally omitted.
+ "grok-realtime": _curated([
+ ("grok-voice-latest", "Grok Voice Latest (default)"),
+ ("grok-voice-think-fast-1.0", "Grok Voice Think Fast 1.0"),
+ ]),
}
# Realtime voice catalogs — stable prebuilt-voice names (curated, not live).
@@ -344,6 +352,14 @@ REALTIME_VOICES: dict[str, list[ModelInfo]] = {
"Alnilam", "Schedar", "Gacrux", "Pulcherrima", "Achird", "Zubenelgenubi",
"Vindemiatrix", "Sadachbia", "Sadaltager", "Sulafat",
]),
+ # Live roster verified through xAI's authenticated /v1/tts/voices endpoint.
+ # Eve leads because it is xAI's current Voice Agent default.
+ "grok-realtime": _ids([
+ "eve", "altair", "ara", "atlas", "carina", "castor", "celeste",
+ "cosmo", "helios", "helix", "iris", "kepler", "leo", "lumen",
+ "luna", "lux", "naksh", "orion", "perseus", "rex", "rigel",
+ "sal", "sirius", "ursa", "zagan", "zenith",
+ ]),
}
diff --git a/jarvis/setup/wizard.py b/jarvis/setup/wizard.py
index 7e32e4179c..76a4af6c63 100644
--- a/jarvis/setup/wizard.py
+++ b/jarvis/setup/wizard.py
@@ -171,10 +171,10 @@ SECRETS: list[SecretSpec] = [
SecretSpec(
key="grok_api_key",
env_fallback="GROK_API_KEY",
- label="xAI Grok Voice API Key (TTS)",
+ label="xAI Grok API Key",
help_url="https://console.x.ai/",
- required_for="TTS (xAI built-in and custom voices)",
- section="tts",
+ required_for="Grok Brain, Realtime Voice, Jarvis-Agents, and xAI TTS",
+ section="brain",
),
SecretSpec(
key="google_tts_credentials_path",
diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.py
index 4ab661b3cf..16f0782a8f 100644
--- a/jarvis/ui/web/provider_spec.py
+++ b/jarvis/ui/web/provider_spec.py
@@ -403,8 +403,8 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
# a key-free local faster-whisper *fallback* (_build_local_fallback, AP-22)
# as an invisible resilience floor for a user with no cloud STT key.
# ── Realtime ──────────────────────────────────────────────────────────
- # Realtime voice spans independently selectable OpenAI Realtime and Gemini
- # Live plugins behind the provider-neutral RealtimeProvider contract.
+ # Realtime voice spans independently selectable OpenAI, Gemini, and xAI
+ # plugins behind the provider-neutral RealtimeProvider contract.
ProviderSpec(
id="openai-realtime",
label="OpenAI Realtime",
@@ -432,6 +432,20 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
"This adapter currently uses API-key authentication."
),
),
+ ProviderSpec(
+ id="grok-realtime",
+ label="xAI Grok Realtime",
+ tier="realtime",
+ auth_mode="api_key",
+ secret_keys=("grok_api_key",),
+ dashboard_url="https://console.x.ai/",
+ signup_url="https://grok.com/",
+ credential_help=(
+ "Uses your xAI API key (starts with xai-), shared with the Grok "
+ "brain and xAI Text to Speech, to power Grok's full-duplex Voice "
+ "Agent API. API usage is billed separately through the xAI Console."
+ ),
+ ),
)