Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Desktop: Gemini and Kimi in Connect an AI; Codex test survives a refused model
Davidf7c389ecebfa
diff --git a/server/config.ts b/server/config.tsindex 978199ece1..0eaee6dc54 100644--- a/server/config.ts+++ b/server/config.ts@@ -340,6 +340,7 @@ const appConfigSchema = z.object({greenference: z.object({ key: optionalText }).optional(),meta: z.object({ key: optionalText, url: optionalText }).optional(),deepseek: z.object({ key: optionalText }).optional(),+ gemini: z.object({ key: optionalText }).optional(),xai: z.object({ key: optionalText, url: optionalText }).optional(),/** Anthropic API key for Claude Code billed per token; `url` is for a proxy or test double. Never a login OAuth token. */anthropic: z.object({ key: optionalText, url: optionalText, everyClaudeBot: z.boolean().optional() }).optional(),@@ -491,6 +492,8 @@ export interface AppConfig extends HelperConfig {meta?: { key?: string; url?: string };/** DeepSeek API key for the DeepSeek Harness engine (`dsh`). */deepseek?: { key?: string };+ /** Gemini API key for the Gemini CLI engine (`gemini`). */+ gemini?: { key?: string };/** `everyClaudeBot`: the key runs every Claude bot instead of its login; unset means true. */anthropic?: { key?: string; url?: string; everyClaudeBot?: boolean };openai?: { key?: string };@@ -766,7 +769,7 @@ export function loadConfig(): AppConfig {}// Env wins over the file for every credential: the desktop shell injects them as env at spawn.for (const [name, env] of [["mistral", "MISTRAL_API_KEY"], ["cerebras", "CEREBRAS_API_KEY"], ["groq", "OMB_GROQ_API_KEY"], ["meta", "OMB_META_API_KEY"],- ["deepseek", "OMB_DEEPSEEK_API_KEY"], ["greenference", "OMB_GREENFERENCE_API_KEY"], ["xai", "XAI_API_KEY"]] as const) {+ ["deepseek", "OMB_DEEPSEEK_API_KEY"], ["gemini", "OMB_GEMINI_API_KEY"], ["greenference", "OMB_GREENFERENCE_API_KEY"], ["xai", "XAI_API_KEY"]] as const) {cfg[name] = { ...cfg[name], ...(process.env[env] !== undefined ? { key: process.env[env] } : {}) };}if (process.env.OMB_TREG_KEY !== undefined) cfg.treg = { ...cfg.treg, key: process.env.OMB_TREG_KEY }; if (process.env.OMB_POSTIZ_API_KEY !== undefined) cfg.postiz = { ...cfg.postiz, key: process.env.OMB_POSTIZ_API_KEY };@@ -833,6 +836,7 @@ export function syncCredentialEnv(patch: Partial<Omit<AppConfig, "threads" | "ne[patch.greenference?.key, "OMB_GREENFERENCE_API_KEY"],[patch.meta?.key, "OMB_META_API_KEY"],[patch.deepseek?.key, "OMB_DEEPSEEK_API_KEY"],+ [patch.gemini?.key, "OMB_GEMINI_API_KEY"],[patch.anthropic?.key, "OMB_ANTHROPIC_API_KEY"],[patch.openaiCompat?.key, "OPENAI_COMPAT_API_KEY"],[patch.openai?.key, "OMB_OPENAI_API_KEY"],@@ -942,7 +946,7 @@ export function saveConfig(const before = configSaveListeners.size ? structuredClone(disk) : disk;const storedProfiles = storedBrowserProfilesSchema.safeParse(disk.browserProfiles);if (storedProfiles.success) disk.browserProfiles = storedProfiles.data;- for (const key of ["xai", "anthropic", "mistral", "cerebras", "treg", "postiz", "groq", "greenference", "meta", "deepseek", "openai", "openrouter", "openaiCompat", "composio", "box", "opencodeGo", "tts", "decider", "imageGen", "live", "profile", "rooms", "mcp", "threads", "context", "memory", "localVm", "features", "budgets", "billing", "decisions", "loopGuard", "onboarding", "browserEngine", "newBots", "safetyFloor"] as const) {+ for (const key of ["xai", "anthropic", "mistral", "cerebras", "treg", "postiz", "groq", "greenference", "meta", "deepseek", "gemini", "openai", "openrouter", "openaiCompat", "composio", "box", "opencodeGo", "tts", "decider", "imageGen", "live", "profile", "rooms", "mcp", "threads", "context", "memory", "localVm", "features", "budgets", "billing", "decisions", "loopGuard", "onboarding", "browserEngine", "newBots", "safetyFloor"] as const) {const section = checkedPatch[key];if (!section) continue;const current = jsonObjectSchema.safeParse(disk[key]);@@ -1145,6 +1149,8 @@ export function instanceOwnsRouting(case "deepseekAgent":// A second DeepSeek Harness account brings its own key; the workspace key fills only an instance without one.return own(entry.environment?.DEEPSEEK_API_KEY);+ case "geminiAgent":+ return own(entry.environment?.GEMINI_API_KEY) || own(entry.environment?.GOOGLE_API_KEY);case "grok":return own(entry.environment?.XAI_API_KEY) || (own(config.apiKeyEnv) && config.apiKeyEnv !== "XAI_API_KEY")|| ownUrl("https://api.x.ai/v1", cfg.xai?.url);@@ -1162,6 +1168,7 @@ function injectedEnvironment(cfg: AppConfig, instanceId: string, driver: string)if (driver === "greenference" && cfg.greenference?.key) environment.set("GREENFERENCE_API_KEY", cfg.greenference.key);if (driver === "meta" && cfg.meta?.key) environment.set("META_API_KEY", cfg.meta.key);if (driver === "deepseekAgent" && cfg.deepseek?.key) environment.set("DEEPSEEK_API_KEY", cfg.deepseek.key);+ if (driver === "geminiAgent" && cfg.gemini?.key) environment.set("GEMINI_API_KEY", cfg.gemini.key);if (driver === "grok" && cfg.xai?.key) environment.set("XAI_API_KEY", cfg.xai.key);if (driver === "claudeAgent") for (const [name, value] of Object.entries(anthropicKeyEnv(cfg.anthropic, instanceId === CLAUDE_API_INSTANCE))) environment.set(name, value);if (driver === "openai-compat" && instanceId === OPENAI_API_INSTANCE) {diff --git a/server/credential-env.ts b/server/credential-env.tsindex a33add7372..0d2dd3edba 100644--- a/server/credential-env.ts+++ b/server/credential-env.ts@@ -10,6 +10,7 @@ export const WORKSPACE_CREDENTIAL_ENV = ["OMB_GREENFERENCE_API_KEY","OMB_META_API_KEY","OMB_DEEPSEEK_API_KEY",+ "OMB_GEMINI_API_KEY","OMB_ANTHROPIC_API_KEY","OMB_ANTHROPIC_API_URL","OMB_HOSTED_MODEL_TOKEN",diff --git a/server/drivers/acp/gemini.ts b/server/drivers/acp/gemini.tsindex 90a44cead2..92269914b1 100644--- a/server/drivers/acp/gemini.ts+++ b/server/drivers/acp/gemini.ts@@ -1,7 +1,5 @@-// Gemini CLI (`gemini --acp`). Retired from the default fleet: since 2026-06-18 Google serves the-// Gemini CLI only to enterprise licences (consumer tiers route through Antigravity); opt in with-// {"instances": {"gemini": {"driver": "geminiAgent"}}} in config.json. Remaining auth: GEMINI_API_KEY,-// Vertex, or an enterprise Code Assist licence. Untested against a live CLI: the flag and auth ids+// Gemini CLI (`gemini --acp`). Since 2026-06-18 Google serves the Gemini CLI to consumer Google sign-ins+// no longer (those route through Antigravity); it runs on GEMINI_API_KEY, Vertex, or an enterprise Code Assist licence. Untested against a live CLI: the flag and auth ids// follow the published Gemini CLI ACP contract.import { existsSync, readFileSync } from "node:fs";import { join } from "node:path";@@ -61,7 +59,16 @@ const support: AcpSupport = {defaultCli: "gemini",nativeSource: "gemini.acp",loginNote:- "Gemini CLI needs a GEMINI_API_KEY, a Vertex AI setup, or an enterprise Code Assist login — consumer Google logins stopped working on 2026-06-18 (use the Antigravity engine for those accounts)",+ "Gemini CLI needs a Gemini API key — paste one under Settings → Connections → Model providers, or set GEMINI_API_KEY. Personal Google sign-ins stopped working on 2026-06-18 (use the Antigravity engine for those accounts)",+ install: {+ command: {+ darwin: "npm install -g @google/gemini-cli",+ linux: "npm install -g @google/gemini-cli",+ win32: "npm install -g @google/gemini-cli",+ },+ npmPackage: "@google/gemini-cli",+ docsUrl: "https://github.com/google-gemini/gemini-cli",+ },// --acp is stable; --experimental-acp still works but warns.spawnArgs: (config, turn) => ["--acp", ...geminiApprovalArgs(config.fullAuto, turn.approvalMode), ...(turn.model ? ["-m", turn.model] : [])],diff --git a/server/drivers/codex-background-text.test.ts b/server/drivers/codex-background-text.test.tsindex 32699fb9ae..ac3c8af39d 100644--- a/server/drivers/codex-background-text.test.ts+++ b/server/drivers/codex-background-text.test.ts@@ -234,16 +234,21 @@ describe("Codex generateMemoryText (fake CLI)", () => {expect(usage).toEqual([expect.objectContaining({ model: "gpt-fake-default" })]);});- it("runs only once when the bot's own model is refused, or the call failed for another reason", async () => {+ it("moves to the account's next listed model when a ChatGPT plan refuses the bot's own model", async () => {chatgptLogin();const refusing = await create({ FAKE_CODEX_LUNA: "1", FAKE_CODEX_TEXT_REFUSE: "gpt-fake-default" });const { fallback, onRefused } = ownModel("gpt-fake-default");- await expect(refusing.generateMemoryText!("hello", { fallback })).rejects.toThrow(/'gpt-fake-default' model is not supported/);- await refusing.dispose();+ await expect(refusing.generateMemoryText!("hello", { fallback })).resolves.toBe("fake background answer");+ expect(modelsRun()).toEqual(["gpt-fake-default", "gpt-6-luna"]);+ expect(onRefused).toHaveBeenCalledWith("gpt-fake-default");+ });++ it("runs only once when the call failed for a reason other than the model", async () => {apiKeyLogin();const failing = await create({ FAKE_CODEX_LUNA: "1", FAKE_CODEX_TEXT_MODE: "fail" });+ const { fallback, onRefused } = ownModel("gpt-fake-default");await expect(failing.generateMemoryText!("hello", { fallback })).rejects.toThrow(/401/);- expect(modelsRun()).toEqual(["gpt-fake-default", "gpt-6-luna"]);+ expect(modelsRun()).toEqual(["gpt-6-luna"]);expect(onRefused).not.toHaveBeenCalled();});diff --git a/server/drivers/codex-background-text.ts b/server/drivers/codex-background-text.tsindex 909842aa9e..8ab84fe01a 100644--- a/server/drivers/codex-background-text.ts+++ b/server/drivers/codex-background-text.ts@@ -47,14 +47,28 @@ export function codexBackgroundRoute(catalog: ModelCatalog, smallModelsUsable: breturn own && own !== model ? { model, retry: own } : { model };}-export async function runCodexBackgroundRoute(route: CodexBackgroundRoute, run: (model: string) => Promise<string>, options: TextGenerationOptions = {}): Promise<string> {- try {- return await run(route.model);- } catch (error) {- if (!route.retry || !refusesModel(error instanceof Error ? error.message : String(error), route.model)) throw error;- options.fallback?.onRefused(route.model);- return run(route.retry);+const MAX_BACKGROUND_ATTEMPTS = 4;++/** The account's other official models, tried in catalog order when every model of the route is refused. */+export function codexRefusalAlternatives(catalog: ModelCatalog): string[] {+ return catalog.options.filter((option) => !option.custom &&+ decodeCodexSelection(option.id).modelProvider === OFFICIAL_CODEX_PROVIDER).map((option) => option.id);+}++export async function runCodexBackgroundRoute(+ route: CodexBackgroundRoute, run: (model: string) => Promise<string>, options: TextGenerationOptions = {},+ alternatives: readonly string[] = [],+): Promise<string> {+ const queue = [...new Set([route.model, ...(route.retry ? [route.retry] : []), ...alternatives])].slice(0, MAX_BACKGROUND_ATTEMPTS);+ for (const [index, model] of queue.entries()) {+ try {+ return await run(model);+ } catch (error) {+ if (index === queue.length - 1 || !refusesModel(error instanceof Error ? error.message : String(error), model)) throw error;+ if (index === 0) options.fallback?.onRefused(model);+ }}+ throw new Error("Codex lists no model for background calls.");}/** Features off (codex-cli 0.160.1 `codex features list`); an older Codex ignores unknown names. */diff --git a/server/drivers/codex.ts b/server/drivers/codex.tsindex 7cd0e82789..8ce806c382 100644--- a/server/drivers/codex.ts+++ b/server/drivers/codex.ts@@ -36,7 +36,7 @@ import type {import { newEventId, newId } from "../contracts.ts";import { decodeCodexSelection, OFFICIAL_CODEX_PROVIDER, readCodexModelCatalog, STATIC_CODEX_MODELS } from "./codex-catalog.ts";import { codexLocalProviderArgs } from "./local-inject.ts";-import { codexBackgroundRoute, runCodexBackgroundRoute, runCodexOneShot } from "./codex-background-text.ts";+import { codexBackgroundRoute, codexRefusalAlternatives, runCodexBackgroundRoute, runCodexOneShot } from "./codex-background-text.ts";import { augmentedPath } from "../env-path.ts";import { classifyError, computeBackoff, interruptibleDelay, RETRY_MAX_ATTEMPTS } from "./retry.ts";import { appendNative } from "./native.ts";@@ -1707,7 +1707,7 @@ export const CodexDriver: ProviderDriver<CodexConfig> = {providerArgs: planAuth || config.managed ? providerArgs : codexLocalProviderArgs(env, id),describeError: (message) => codexUserError(message, planAuth ? "plan" : selection.modelProvider === OFFICIAL_CODEX_PROVIDER ? "own" : "other"),});- }, options);+ }, options, codexRefusalAlternatives(models));};return {diff --git a/server/index.ts b/server/index.tsindex 2f9d2519f7..41ed426143 100644--- a/server/index.ts+++ b/server/index.ts@@ -11864,7 +11864,7 @@ function configStatus() {mistral: keyStatus(cfg.mistral?.key),cerebras: keyStatus(cfg.cerebras?.key),groq: keyStatus(cfg.groq?.key), greenference: keyStatus(cfg.greenference?.key),- meta: keyStatus(cfg.meta?.key), deepseek: keyStatus(cfg.deepseek?.key),+ meta: keyStatus(cfg.meta?.key), deepseek: keyStatus(cfg.deepseek?.key), gemini: keyStatus(cfg.gemini?.key),xResearch: xResearchStatus(), treg: keyStatus(cfg.treg?.key), postiz: { ...keyStatus(cfg.postiz?.key), ...(cfg.postiz?.url ? { url: cfg.postiz.url } : {}) },anthropic: { ...keyStatus(cfg.anthropic?.key), everyClaudeBot: cfg.anthropic?.everyClaudeBot !== false },openai: keyStatus(cfg.openai?.key),diff --git a/server/instance-fleets.ts b/server/instance-fleets.tsindex f7cddb197f..a139b93439 100644--- a/server/instance-fleets.ts+++ b/server/instance-fleets.ts@@ -22,8 +22,7 @@ export const API_KEY_FLEET: InstanceConfigMap = {},};-// Google retired Gemini CLI for the free/Pro/Ultra tiers on 2026-06-18; enterprise licences restore it with-// `{"instances": {"gemini": {"driver": "geminiAgent"}}}`.+// Google retired Gemini CLI for the free/Pro/Ultra Google sign-ins on 2026-06-18; it still runs on a Gemini API key.export const DEFAULT_FLEET: InstanceConfigMap = {grok: { driver: "grokAgent" },kimi: { driver: "kimiAgent" },@@ -42,6 +41,7 @@ export const DEFAULT_FLEET: InstanceConfigMap = {greenference: { driver: "greenference" },meta: { driver: "meta" },deepseek: { driver: "deepseekAgent" },+ gemini: { driver: "geminiAgent" },museCode: { driver: "museCode" },...API_KEY_FLEET,qwen: { driver: "qwenAgent" },@@ -60,6 +60,7 @@ const CUSTOM_ONLY = {/** Added to a saved fleet that holds a product engine (claude, grok or codex), when it lacks them. */export const PRODUCT_FLEET_ADDITIONS = {chatgpt: { driver: "codex", displayName: "ChatGPT plan", config: { authMode: "chatgpt-plan" } },+ kimi: { driver: "kimiAgent" },cursor: { driver: "cursorAgent" },githubCopilot: { driver: "copilotAgent" },openaiCompat: { driver: "openai-compat" },@@ -69,6 +70,7 @@ export const PRODUCT_FLEET_ADDITIONS = {greenference: { driver: "greenference" },meta: { driver: "meta" },deepseek: { driver: "deepseekAgent" },+ gemini: { driver: "geminiAgent" },museCode: { driver: "museCode" },...API_KEY_FLEET,...CUSTOM_ONLY,diff --git a/src/components/keys/key-catalog.test.ts b/src/components/keys/key-catalog.test.tsindex ac188c206a..bd29d5510f 100644--- a/src/components/keys/key-catalog.test.ts+++ b/src/components/keys/key-catalog.test.ts@@ -107,7 +107,7 @@ describe("searching the keys", () => {expect(found("voice")).toEqual(expect.arrayContaining(["liveCalls", "liveKey", "elevenlabs", "fishAudio"]));expect(found("openai")).toEqual(expect.arrayContaining(["openai", "liveCalls", "liveKey", "imageOpenai"]));expect(found("gmail")).toEqual(["composio"]);- expect(found("gemini")).toEqual(["openaiCompat"]);+ expect(found("gemini")).toEqual(["gemini", "openaiCompat"]);expect(found("no such key anywhere")).toEqual([]);});});diff --git a/src/components/keys/key-catalog.ts b/src/components/keys/key-catalog.tsindex 2477c222d8..3bff1397d8 100644--- a/src/components/keys/key-catalog.ts+++ b/src/components/keys/key-catalog.ts@@ -39,7 +39,7 @@ export interface KeyTarget {}export type KeyId =- | "openai" | "anthropic" | "xai" | "openrouter" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "opencodeGo" | "opencodeProviders"+ | "openai" | "anthropic" | "xai" | "openrouter" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "gemini" | "opencodeGo" | "opencodeProviders"| "lmStudio" | "openaiCompat" | "liveCalls" | "liveKey" | "elevenlabs" | "fishAudio" | "box" | "vps" | "onePassword" | "composio" | "treg" | "postiz"| "jev" | "openrouterHelper" | "workersAi" | "imageOpenai" | "imageCustom";@@ -66,7 +66,7 @@ function flag(saved: SavedKey | undefined): SavedState {return { configured: saved?.configured === true, ...(saved?.configured && saved.last4 ? { last4: saved.last4 } : {}) };}-type TopLevelKey = "openai" | "openrouter" | "xai" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "treg";+type TopLevelKey = "openai" | "openrouter" | "xai" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "gemini" | "treg";function providerKey(name: TopLevelKey, rest: Omit<KeyTarget, "patch" | "saved">): KeyTarget {return { patch: (value) => ({ [name]: { key: value } }), saved: (config) => flag(config[name]), ...rest };@@ -107,6 +107,9 @@ export const KEY_CATALOG: readonly KeyEntry[] = [{ id: "deepseek", section: "ai", labelKey: "keys.deepseek.label", purposeKey: "keys.purpose.deepseek", name: "DeepSeek", env: ["OMB_DEEPSEEK_API_KEY"],words: ["deepseek", "dsh", "harness"], mark: provider("deepseekAgent", "deepseek"), kind: "key",target: providerKey("deepseek", { placeholder: "sk-…", href: "https://platform.deepseek.com/api_keys", analytics: "deepseek" }) },+ { id: "gemini", section: "ai", labelKey: "keys.gemini.label", purposeKey: "keys.purpose.gemini", name: "Gemini", env: ["OMB_GEMINI_API_KEY"],+ words: ["gemini", "google", "ai studio"], mark: provider("geminiAgent", "google"), kind: "key",+ target: providerKey("gemini", { placeholder: "AIza…", href: "https://aistudio.google.com/apikey", analytics: "gemini" }) },{ id: "opencodeGo", section: "ai", labelKey: "keys.opencode.label", purposeKey: "keys.purpose.opencodeGo", name: "OpenCode", env: ["OPENCODE_API_KEY"],words: ["opencode", "zen", "go"], mark: provider("opencodeGo"), kind: "key",target: { patch: (value) => ({ opencodeGo: { apiKey: value } }), slot: "opencodeGoApiKey", saved: (config) => flag(config.opencodeGo),@@ -218,7 +221,7 @@ export function looksLikeOtherKey(entry: KeyEntry, value: string): KeyEntry | nuconst INSTANCE_KEYS: Readonly<Record<string, KeyId>> = {openai: "openai", claudeApi: "anthropic", xaiApi: "xai", grok: "xai", openrouter: "openrouter", mistral: "mistral", cerebras: "cerebras",- groq: "groq", greenference: "greenference", meta: "meta", deepseek: "deepseek", opencodeGo: "opencodeGo", openaiCompat: "openaiCompat",+ groq: "groq", greenference: "greenference", meta: "meta", deepseek: "deepseek", gemini: "gemini", opencodeGo: "opencodeGo", openaiCompat: "openaiCompat",};export function keyForInstance(instanceId: string | undefined): KeyId | undefined {diff --git a/src/lib/analytics-allowlist.test.ts b/src/lib/analytics-allowlist.test.tsindex dcdbab176c..c328b4ad66 100644--- a/src/lib/analytics-allowlist.test.ts+++ b/src/lib/analytics-allowlist.test.ts@@ -76,7 +76,7 @@ describe("app, role and key lists", () => {const rows = Object.fromEntries(KEY_CATALOG.flatMap((entry) => entry.target ? [[entry.id, entry.target.analytics]] : []));expect(rows).toEqual({openai: "openai", anthropic: "anthropic", xai: "xai", openrouter: "openrouter", mistral: "mistral", cerebras: "cerebras", groq: "groq",- greenference: "greenference", meta: "meta", deepseek: "deepseek", opencodeGo: "opencode_go", openaiCompat: "openai_compat", liveKey: "openai_live",+ greenference: "greenference", meta: "meta", deepseek: "deepseek", gemini: "gemini", opencodeGo: "opencode_go", openaiCompat: "openai_compat", liveKey: "openai_live",elevenlabs: "elevenlabs", fishAudio: "fish_audio", box: "boat", composio: "composio", treg: "treg", jev: "jev",openrouterHelper: "openrouter_decider", imageOpenai: "openai_image", postiz: "postiz",});diff --git a/src/lib/analytics-allowlist.ts b/src/lib/analytics-allowlist.tsindex 08720e92d2..5aa1b495e8 100644--- a/src/lib/analytics-allowlist.ts+++ b/src/lib/analytics-allowlist.ts@@ -15,7 +15,7 @@ export function allow<const T extends string>(value: unknown, list: readonly T[]export const KEY_PROVIDER = ["anthropic", "openai", "openrouter", "openai_compat", "xai", "mistral", "cerebras", "groq", "greenference", "meta", "boat", "composio","opencode_go", "custom_endpoint", "elevenlabs", "fish_audio", "jev", "openrouter_decider", "openai_image", "custom_image",- "openai_live", "onepassword", "treg", "deepseek", "postiz",+ "openai_live", "onepassword", "treg", "deepseek", "gemini", "postiz",] as const;export type KeyProvider = (typeof KEY_PROVIDER)[number];diff --git a/src/lib/built-in-instances.ts b/src/lib/built-in-instances.tsindex dfc64e341a..4a6f5e057e 100644--- a/src/lib/built-in-instances.ts+++ b/src/lib/built-in-instances.ts@@ -1,4 +1,4 @@-/** The server's default instances by id, with their driver kinds, plus `gemini`, which an enterprise licence restores. */+/** The server's default instances by id, with their driver kinds. */export const BUILT_IN_INSTANCE_DRIVERS: Readonly<Record<string, string>> = {grok: "grokAgent", kimi: "kimiAgent", droid: "droidAgent", cursor: "cursorAgent", githubCopilot: "copilotAgent", claude: "claudeAgent", codex: "codex",chatgpt: "codex", antigravity: "antigravityAgent", opencodeGo: "opencodeGo", openaiCompat: "openai-compat",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 2dc463d346..ed3e308f0e 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -3616,6 +3616,9 @@"keys.deepseek.label": "DeepSeek API key","keys.deepseek.desc": "For DeepSeek Harness, billed to your DeepSeek account. If dsh already has a DeepSeek key saved in its own settings, it uses that one instead of this.","keys.deepseek.link": "DeepSeek API keys",+ "keys.gemini.label": "Gemini API key",+ "keys.gemini.desc": "For the Gemini CLI engine, billed to your Google AI Studio account. Personal Google sign-ins no longer work in Gemini CLI.",+ "keys.gemini.link": "Gemini API keys","keys.xai.label": "xAI API key","keys.xai.desc": "For xAI's Grok models and xAI image generation.","keys.xai.link": "xAI console",@@ -7269,6 +7272,7 @@"keys.purpose.greenference": "Open models run on solar power in Europe","keys.purpose.meta": "Meta's Muse models","keys.purpose.deepseek": "DeepSeek Harness",+ "keys.purpose.gemini": "Gemini CLI","keys.purpose.opencodeGo": "OpenCode Zen and Go","keys.purpose.opencodeProviders": "Any other provider OpenCode supports","keys.purpose.lmStudio": "Models from the LM Studio app",diff --git a/src/state/config-status.ts b/src/state/config-status.tsindex b3d56628b0..9255e37130 100644--- a/src/state/config-status.ts+++ b/src/state/config-status.ts@@ -18,6 +18,7 @@ export interface ConfigStatus {groq?: SavedKey;greenference?: SavedKey;deepseek?: SavedKey;+ gemini?: SavedKey;meta?: SavedKey;/** X research comes with MausBot Cloud plans: `included` while this server holds the plan's relay credential;* `unavailable` when the Admin said no to this desktop's paid sign-in. */diff --git a/src/state/store.tsx b/src/state/store.tsxindex 7b552bdc5d..a197347387 100644--- a/src/state/store.tsx+++ b/src/state/store.tsx@@ -409,7 +409,7 @@ export type { BrowserEngineSummary, BrowserProfile, ConfigStatus, ManagedPolicyS// A section left out here is wiped from state.config whenever a config frame lands.export type ConfigStatusFrame = Pick<ConfigStatus,- "xai" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "xResearch" | "treg" | "postiz" | "anthropic" | "openai" | "openrouter" | "openaiCompat" | "fleet" | "composio" | "box" | "vps" | "rooms" | "mcp" | "threads" | "automaticRecovery" | "cacheKeepWarm" | "localVm" | "opencodeGo" | "tts" | "decider" | "helpers" | "imageGen" | "live" | "savedKeys" | "profile" | "language" | "features" | "onboarding" | "browserEngine" | "browserProfiles" | "edition" | "budgets" | "billing" | "managedPolicy" | "cloudHome" | "team" | "workspaceBanner"+ "xai" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "gemini" | "xResearch" | "treg" | "postiz" | "anthropic" | "openai" | "openrouter" | "openaiCompat" | "fleet" | "composio" | "box" | "vps" | "rooms" | "mcp" | "threads" | "automaticRecovery" | "cacheKeepWarm" | "localVm" | "opencodeGo" | "tts" | "decider" | "helpers" | "imageGen" | "live" | "savedKeys" | "profile" | "language" | "features" | "onboarding" | "browserEngine" | "browserProfiles" | "edition" | "budgets" | "billing" | "managedPolicy" | "cloudHome" | "team" | "workspaceBanner">;export function configStatusFromFrame(frame: ConfigStatusFrame): ConfigStatus {@@ -417,7 +417,7 @@ export function configStatusFromFrame(frame: ConfigStatusFrame): ConfigStatus {xai: frame.xai,mistral: frame.mistral,cerebras: frame.cerebras,- groq: frame.groq, greenference: frame.greenference, deepseek: frame.deepseek,+ groq: frame.groq, greenference: frame.greenference, deepseek: frame.deepseek, gemini: frame.gemini,meta: frame.meta, xResearch: frame.xResearch, treg: frame.treg, postiz: frame.postiz,anthropic: frame.anthropic,openai: frame.openai,