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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(ui): teach the key form, Gemini cards, and docs the Vertex express path
rubenluetke10-beep7091a20a462d
diff --git a/docs/product/personalize-and-connect/providers-and-api-keys.md b/docs/product/personalize-and-connect/providers-and-api-keys.mdindex 944325e64b..fda92ab090 100644--- a/docs/product/personalize-and-connect/providers-and-api-keys.md+++ b/docs/product/personalize-and-connect/providers-and-api-keys.md@@ -71,8 +71,12 @@ Card labels describe state, not a guarantee:access and billing note.2. Select **Get your key here** and create a key in the official provideraccount. When a card offers two credential types, choose deliberately. For- example, an AI Studio key and a Vertex service account use different Google- projects and billing.+ example, an AI Studio key and a Vertex AI credential use different Google+ projects and billing. Google keys need no manual endpoint choice: paste+ either an AI Studio key or a Vertex AI express-mode key (both may start+ with `AQ.`) into the same field — the app detects which service issued it+ and routes every capability (brain, tool model, realtime, speech) through+ the matching endpoint automatically.3. Paste the value into the password field and select **Save**. The field thenbecomes masked. The page receives only whether the credential exists; itdoes not read the saved value back.diff --git a/jarvis/ui/web/frontend/src/lib/keyFormat.test.ts b/jarvis/ui/web/frontend/src/lib/keyFormat.test.tsindex aaebbeb65d..a3608108a2 100644--- a/jarvis/ui/web/frontend/src/lib/keyFormat.test.ts+++ b/jarvis/ui/web/frontend/src/lib/keyFormat.test.ts@@ -12,6 +12,17 @@ describe("detectKeyFormat", () => {expect(detectKeyFormat("AQ.Ab8RN6...rest")?.kind).toBe("google-aistudio");});+ it("tells AQ. keys they may be Vertex express (auto-routed), never 'Vertex stays off'", () => {+ // AQ. is issued by BOTH AI Studio and Vertex express — the hint must not+ // promise a fixed endpoint (the old text claimed "Vertex stays off" and+ // sent express-key users into a silent auth dead end).+ const hint = detectKeyFormat("AQ.Ab8RN6...rest");+ expect(hint?.label).toBe("Google API key (AI Studio or Vertex)");+ expect(hint?.note).toContain("detects the right endpoint");+ const classic = detectKeyFormat("AIzaSyABCDEF1234567890");+ expect(classic?.label).toBe("Google AI Studio key");+ });+it("recognizes a Vertex AI service-account JSON, not an AI Studio key", () => {const sa = '{ "type": "service_account", "project_id": "x" }';expect(detectKeyFormat(sa)?.kind).toBe("vertex-service-account");diff --git a/jarvis/ui/web/frontend/src/lib/keyFormat.ts b/jarvis/ui/web/frontend/src/lib/keyFormat.tsindex 8d9eafa344..d3a226052b 100644--- a/jarvis/ui/web/frontend/src/lib/keyFormat.ts+++ b/jarvis/ui/web/frontend/src/lib/keyFormat.ts@@ -58,11 +58,21 @@ export function detectKeyFormat(value: string): KeyFormatHint | null {if (/^sk_/.test(v)) return { kind: "elevenlabs", label: "ElevenLabs API key" };if (/^gsk_/.test(v)) return { kind: "groq", label: "Groq API key" };if (/^xai-/.test(v)) return { kind: "xai", label: "xAI (Grok) API key" };- if (/^AIza/.test(v) || /^AQ\./.test(v)) {+ if (/^AIza/.test(v)) {return {kind: "google-aistudio",label: "Google AI Studio key",- note: "Looks like a Google AI Studio key — Jarvis uses it directly (Vertex stays off).",+ note: "Looks like a Google AI Studio key — Jarvis uses it directly.",+ };+ }+ // AQ. is issued by BOTH Google AI Studio and Vertex AI express mode — the+ // prefix cannot tell them apart. Same kind (the Gemini slots accept both);+ // the backend probes once and routes the key to the right endpoint.+ if (/^AQ\./.test(v)) {+ return {+ kind: "google-aistudio",+ label: "Google API key (AI Studio or Vertex)",+ note: "AI Studio and Vertex AI express keys share this format — Jarvis detects the right endpoint automatically.",};}if (/^sk-/.test(v)) return { kind: "openai", label: "OpenAI API key" };diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.pyindex dabd22e6ca..85d35b2377 100644--- a/jarvis/ui/web/provider_spec.py+++ b/jarvis/ui/web/provider_spec.py@@ -134,23 +134,28 @@ def provider_billing(spec: ProviderSpec) -> Billing:return "api"-# Gemini's alternative credential path: Google Cloud Vertex AI via a-# service-account JSON. A SEPARATE billing project from an AI Studio key — the-# 2026-06-22 forensic was a user topping up AI Studio while Jarvis was wired to-# Vertex. Shared by the Gemini brain + Gemini TTS specs so both surface the-# choice. (Vertex is wired for the TTS path today via [tts].use_vertex.)+# Gemini's alternative credential path: Google Cloud Vertex AI. A SEPARATE+# billing project from an AI Studio key — the 2026-06-22 forensic was a user+# topping up AI Studio while Jarvis was wired to Vertex. Shared by the Gemini+# brain + Gemini TTS specs so both surface the choice. The EASY Vertex path is+# an express-mode API key (AQ.) pasted into the normal key field — the routing+# resolver (jarvis/core/google_genai.py) detects it on every tier (brain, tool+# model, realtime, STT, TTS, dictation). The service-account JSON remains the+# TTS-tier production path via [tts].use_vertex._GEMINI_VERTEX = AltCredential(- label="Vertex AI (service account)",+ label="Vertex AI (express key or service account)",billing="api",credential_help=("Bill Gemini through a Google Cloud Vertex AI project instead of an AI "- "Studio key — this is a SEPARATE billing account. Enable the Vertex AI "- "API, create a service account, download its JSON key, and point Jarvis "- "at the file. Use this for higher quota than the AI Studio preview cap. "- "Don't mix them up: topping up AI Studio does nothing if Jarvis is on "- "Vertex, and vice versa."- ),- dashboard_url="https://console.cloud.google.com/iam-admin/serviceaccounts",+ "Studio account — a SEPARATE billing account. Easiest path: create a "+ "Vertex express-mode API key (starts with AQ.) and paste it into the "+ "normal key field above — Jarvis detects it and routes every tier "+ "through Vertex automatically. For TTS production quota there is also "+ "the service-account JSON path ([tts].use_vertex + the file below). "+ "Don't mix the accounts up: topping up AI Studio does nothing if "+ "Jarvis is on Vertex, and vice versa."+ ),+ dashboard_url="https://console.cloud.google.com/vertex-ai/studio",credential_path_hint="~/.config/jarvis/vertex-sa.json",)@@ -345,9 +350,10 @@ PROVIDERS: tuple[ProviderSpec, ...] = (secret_keys=("gemini_api_key",),dashboard_url="https://aistudio.google.com/app/apikey",credential_help=(- "Google AI Studio API key (starts with AIza or AQ.). Pay-as-you-go "- "on your AI Studio project. For higher quota, use the Vertex AI "- "service-account path instead — it bills a different account."+ "Google AI Studio API key (starts with AIza or AQ.) or a Vertex AI "+ "express-mode key (also AQ.) — Jarvis detects which one it is and "+ "routes it to the right endpoint automatically. Mind the billing: "+ "AI Studio and Vertex are SEPARATE accounts."),alt_credential=_GEMINI_VERTEX,# Maintainer-recommended brain (2026-06-22): best real-world experience.@@ -585,9 +591,10 @@ PROVIDERS: tuple[ProviderSpec, ...] = (secret_keys=("gemini_api_key",),dashboard_url="https://aistudio.google.com/app/apikey",credential_help=(- "Same Google AI Studio key as the Gemini brain (AIza/AQ.). Note: the "- "TTS preview model is hard-capped on AI Studio — switch to the Vertex "- "AI path for production quota."+ "Same Google key as the Gemini brain (AIza/AQ.; a Vertex express "+ "key is detected and routed automatically). Note: the TTS preview "+ "model is hard-capped on AI Studio — use a Vertex path for "+ "production quota."),alt_credential=_GEMINI_VERTEX,),