Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Add Mistral Vibe as a built-in ACP engine
JoaoPec81386e5d04ef
diff --git a/apps/docs/content/docs/providers/index.mdx b/apps/docs/content/docs/providers/index.mdxindex 45c1d2ec5b..f360309d7f 100644--- a/apps/docs/content/docs/providers/index.mdx+++ b/apps/docs/content/docs/providers/index.mdx@@ -27,6 +27,7 @@ MausBot does not proxy every message through its own model account. It starts su| Hermes | Hermes CLI login | ACP integration || Pi | Pi CLI login | Native driver || OMP | `omp login` or OMP's own provider configuration | ACP driver with live models, thinking choices, approvals, and session resume |+| Mistral Vibe | Mistral AI Studio browser sign-in, or `MISTRAL_API_KEY` | ACP driver with the account's live models, thinking levels, tries, approvals, and session resume |Additional driver instances can be declared in local configuration. An agent CLI with its own ACP entry point runs this way too, from one entry in `config.json`: see [Custom engines](./custom-acp.mdx). Unavailable engines remain visible with a reason instead of crashing the provider fleet.@@ -38,6 +39,8 @@ Kiro runs the official Kiro CLI (`curl -fsSL https://cli.kiro.dev/install | bashOMP runs the official Oh My Pi CLI (`npm install -g @oh-my-pi/pi-coding-agent`) through `omp acp`. Run `omp login` or configure providers in `~/.omp/agent/models.yml`; OMP keeps its own credentials. The picker lists OMP's advertised models and their thinking choices, plus **OMP default (configured)**, which leaves the model selected in OMP itself. Threads resume their native OMP sessions, and permission prompts use MausBot's approval cards.+Mistral Vibe runs the official Vibe Code CLI in its ACP mode (`vibe-acp`, from [github.com/mistralai/mistral-vibe/releases](https://github.com/mistralai/mistral-vibe/releases)) and bills the Mistral account it is signed in to. Start a first chat to open the browser sign-in to Mistral AI Studio, or paste a Mistral API key under **Settings → Connections → Model providers** — the workspace key is passed to the CLI as `MISTRAL_API_KEY` when the instance has none of its own. The picker lists the models Mistral publishes for Vibe, refreshed from a live session, including **Z.ai GLM 5.3**, GLM 5.3 Flash, and the Codestral coding model. Threads resume their native Vibe sessions, and permission prompts use MausBot's approval cards. To run it against an account whose sign-in you keep outside MausBot, declare a custom ACP instance instead: see [Custom engines](./custom-acp.mdx).+To use OpenRouter, Fireworks AI, DeepSeek, Cline, or your own OpenAI- or Anthropic-compatible service, see [Other model providers](./model-providers.mdx).Codex models come from the signed-in CLI's live model list. If that list cannot be read, the picker shows an offline fallback that includes GPT-6 Astra, Sol, and Luna with availability marked unverified. An older CLI may not expose newer models; MausBot checks for a newer stable Codex release and offers an update command for the configured executable. Updating the CLI does not grant model access to an account.diff --git a/docs/analytics.md b/docs/analytics.mdindex e8947e8236..87a65453f2 100644--- a/docs/analytics.md+++ b/docs/analytics.md@@ -51,7 +51,7 @@ Properties are counts, `true` or `false`, or words from fixed lists in the app's| List | Values || --- | --- || Key provider | `anthropic`, `openai`, `openrouter`, `openai_compat`, `xai`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `boat`, `composio`, `opencode_go`, `custom_endpoint`, `elevenlabs`, `fish_audio`, `jev`, `openrouter_decider`, `openai_image`, `custom_image`, `openai_live`, `onepassword`, `treg`, `postiz` |-| Engine | `claude`, `codex`, `gemini`, `cursor`, `opencode`, `qwen`, `hermes`, `cline`, `custom_acp`, `pi`, `openai_compat`, `grok`, `grok_api`, `kimi`, `droid`, `antigravity`, `minimax`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `muse_code`, `deepseek`, `copilot`, `command_code`, `kiro`, `omp` |+| Engine | `claude`, `codex`, `gemini`, `cursor`, `opencode`, `qwen`, `hermes`, `cline`, `custom_acp`, `pi`, `openai_compat`, `grok`, `grok_api`, `kimi`, `droid`, `antigravity`, `minimax`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `muse_code`, `deepseek`, `copilot`, `command_code`, `kiro`, `omp`, `mistral_vibe` || App | The 24 apps Connected apps lists by default: `slack`, `github`, `gmail`, `googlecalendar`, `googlesheets`, `googledocs`, `googledrive`, `notion`, `linear`, `sentry`, `posthog`, `discord`, `twitter`, `reddit`, `zapier`, `hubspot`, `salesforce`, `jira`, `asana`, `trello`, `dropbox`, `airtable`, `figma`, `stripe`. Every other app is `other`. || Starting role | `assistant`, `inbox`, `research`, `coder`, `community`, `ops` || Cloud plan | `starter`, `personal`, `pro`, `max` |diff --git a/docs/verification/engines-ui.md b/docs/verification/engines-ui.mdindex bfa9bb2d82..3a84309a52 100644--- a/docs/verification/engines-ui.md+++ b/docs/verification/engines-ui.md@@ -47,7 +47,9 @@ recreating a removed fixture directory.6. Expand Kimi to find **Install Kimi on this server**, and OpenCode to find**Update OpenCode on this server**. Click each and confirm the fixture errorappears with its button usable again. Terminal commands remain under- **Prefer a terminal?**. Check that OMP appears as a custom engine beside Pi. These clicks never perform a real installation.+ **Prefer a terminal?**. Check that OMP appears as a custom engine beside Pi, and+ Mistral Vibe under Needs setup while `vibe-acp` is missing. These clicks never+ perform a real installation.7. Expand Claude and use **Add another Claude account** inside its card. Enteran account name, collapse/reopen the card, and confirm the draft remains.Cancel, then repeat with **Add another ChatGPT account** in the ChatGPT card.diff --git a/docs/verification/engines.md b/docs/verification/engines.mdindex 9230e1abcf..d0881158be 100644--- a/docs/verification/engines.md+++ b/docs/verification/engines.md@@ -61,6 +61,18 @@ The contract tests use the repository's fake ACP CLI and disposable folders. TheThe following is a one-time author qualification against OMP 18.13.1, not a checked-in repeatable native fixture: with isolated homes and keyless synthetic providers, ACP initialization and authentication, model and thinking selection, a 2,000-model catalog, discovery-session isolation, a streamed turn through the production driver, and a second turn after recreating that driver with the same native session. The loopback provider received both turns and the resumed request contained the first turn's history. These checks do not prove a real provider account, a paid turn, native Windows behavior or packaged desktop integration.+## Mistral Vibe++Install `vibe-acp` from `mistral.ai/vibe/install.sh` (the vendor's `mistral-vibe` package through uv), from [github.com/mistralai/mistral-vibe/releases](https://github.com/mistralai/mistral-vibe/releases), or through the app's install pin (`mistral-vibe-release.ts`), then either run a first `vibe` session once so the browser sign-in saves `$VIBE_HOME/whoami_cache.json`, or let the workspace Mistral key from Settings → Connections reach the CLI as `MISTRAL_API_KEY`. OpenMausBot launches `vibe-acp` (ACP by default, no extra arguments), picks the `browser-auth` method when the sign-in gate fires — the CLI opens the browser itself and the authenticate request blocks until the person finishes — and selects models through session/new's `model` config option. Model refresh runs in a temporary working directory and never sends a prompt, so it leaves no record in the person's Vibe history, and threads resume their native Vibe sessions.++```sh+pnpm exec vitest run server/drivers/acp/mistral-vibe.test.ts server/drivers/acp/custom-model-catalog.test.ts server/runtime/capabilities.test.ts server/drivers/tool-scope-coverage.test.ts server/built-in-instances.test.ts src/lib/analytics-allowlist.test.ts server/engine-memory.test.ts server/config.test.ts+```++The contract tests use the repository's fake ACP CLI and disposable folders. They cover fleet registration, live model discovery from session/new's config options with no per-model switching or discovery-session residue, sign-in gating via `whoami_cache.json` / `MISTRAL_API_KEY`, workspace-key forwarding without leaking a second instance's key, and denied permissions.++The following is a one-time author qualification against vibe-acp 3.1.1 on macOS (darwin-aarch64), not a checked-in repeatable native fixture: initialize answers protocolVersion 1 with `browser-auth` as the only auth method; an unauthenticated session/new fails with -32000 "Missing API key for mistral provider."; the authenticate request stays pending while the CLI opens https://console.mistral.ai/codestral/cli/authenticate, honours `$BROWSER`, and completes after the person signs in; session/new exposes `mode`, `model` (zai-glm-5-3-flash, Mistral Large, Codestral, mistral-medium-3.5), and `thinking` (off | high); an `MISTRAL_API_KEY` satisfies the gate with no sign-in. These checks do not prove a real paid turn, native Windows behavior or packaged desktop integration.+## Slow or empty CLI version responses```shdiff --git a/scripts/verify-engines-ui.ts b/scripts/verify-engines-ui.tsindex ce69068d5b..ee56cdf288 100644--- a/scripts/verify-engines-ui.ts+++ b/scripts/verify-engines-ui.ts@@ -32,6 +32,7 @@ const instances: InstanceInfo[] = [["qwen", "qwenAgent", "Qwen", false, ""],["pi", "piAgent", "Pi", false, ""],["omp", "ompAgent", "OMP", false, ""],+ ["mistralVibe", "mistralVibeAgent", "Mistral Vibe", false, ""],["deepseek", "deepseekAgent", "DeepSeek Harness", false, ""],["githubCopilot", "copilotAgent", "GitHub Copilot", true, "1.0.103"],["commandCode", "commandCodeAgent", "Command Code", true, "1.88.4"],diff --git a/server/config.test.ts b/server/config.test.tsindex 2d7f96757e..d152573ff9 100644--- a/server/config.test.ts+++ b/server/config.test.ts@@ -2121,7 +2121,7 @@ describe("changedInstanceIds", () => {it("replaces only the engines whose launch config a save changed", () => {const saved: AppConfig = { mistral: { key: "m1" }, openaiCompat: { key: "c1", url: "https://compat.example/v1" } };expect(reloaded({ mistral: { key: "m1" }, openaiCompat: { key: "c1", url: "https://compat.example/v1" } }, saved)).toEqual([]);- expect(reloaded({ mistral: { key: "m2" } }, saved)).toEqual(["mistral"]);+ expect(reloaded({ mistral: { key: "m2" } }, saved)).toEqual(["mistral", "mistralVibe"]);expect(reloaded({ openaiCompat: { key: "c2", url: "https://compat.example/v1" } }, saved)).toEqual(["openaiCompat"]);expect(reloaded({ openaiCompat: { key: "c1", url: "https://other.example/v1" } }, saved)).toEqual(["openaiCompat"]);expect(reloaded({ anthropic: { key: "a" } }, saved), "Claude (API key) runs on the key too").toEqual(["claude", "claudeApi"]);diff --git a/server/config.ts b/server/config.tsindex bdbbb9c110..79383135f5 100644--- a/server/config.ts+++ b/server/config.ts@@ -1113,6 +1113,9 @@ 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 "mistralVibeAgent":+ // A second Vibe CLI account brings its own key; the workspace key fills only an instance without one.+ return own(entry.environment?.MISTRAL_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);@@ -1130,6 +1133,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 === "modelgo" && cfg.modelgo?.key) environment.set("MODELGO_API_KEY", cfg.modelgo.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 === "mistralVibeAgent" && cfg.mistral?.key) environment.set("MISTRAL_API_KEY", cfg.mistral.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/drivers/acp/mistral-vibe-release.ts b/server/drivers/acp/mistral-vibe-release.tsnew file mode 100644index 0000000000..f2a4df68be--- /dev/null+++ b/server/drivers/acp/mistral-vibe-release.ts@@ -0,0 +1,28 @@+// Mistral Vibe's own build, for installing `vibe-acp` without Python or uv: the build+// github.com/mistralai/mistral-vibe ships for version 3.1.2 (releases/download/v3.1.2).+// Mistral publishes no checksum file. Each archive SHA-256 below was measured on 2026-11-14 by downloading the asset+// once and running `shasum -a 256`; each size is that download's byte count. Each program SHA-256 is `shasum -a 256` of+// `vibe-acp` unpacked from the same archive (`tar -xzO` / `unzip -p`); the app checks it after unpacking, before+// reusing an installed copy and at every start. The archive carries `vibe-acp` beside its `_internal/` PyInstaller+// bundle, so the executable is run in place. The macOS builds' code signature is adhoc (no Team ID), so the pin sets+// no `macTeamId`; Windows ships x64 only.+// `mistral-vibe` is current on PyPI at 3.1.2 too; the vendor's `install.sh` installs that package through uv.+import type { StandaloneRelease } from "../../contracts.ts";++const VERSION = "3.1.2";+const RELEASE = `https://github.com/mistralai/mistral-vibe/releases/download/v${VERSION}`;++export const MISTRAL_VIBE_STANDALONE: StandaloneRelease = {+ name: "Mistral Vibe",+ engine: "vibe-acp",+ version: VERSION,+ // github.com answers with a redirect to GitHub's release-asset host.+ hosts: ["github.com", "release-assets.githubusercontent.com", "objects.githubusercontent.com"],+ assets: {+ "darwin-arm64": { url: `${RELEASE}/vibe-acp-darwin-aarch64-3.1.2.tar.gz`, archive: "tar.gz", executable: "vibe-acp", approxBytes: 68_858_580, sha256: "cff30ab96c08e77e3628160fb5dd7ebde78dd24cff624e03465c8618b9c05020", executableSha256: "bffbd823f7da50e4c499fe52abf3888a63874995795318c171081bb8878538b1" },+ "darwin-x64": { url: `${RELEASE}/vibe-acp-darwin-x86_64-3.1.2.tar.gz`, archive: "tar.gz", executable: "vibe-acp", approxBytes: 70_461_490, sha256: "8fc70f9dec996d2a8713005bd94d97ed53d145fdd503c00b3abf4807f15a66dd", executableSha256: "265ec8f7f5884561737541028a260e3738301ed5e401caa29b8628af1d522ee5" },+ "linux-x64": { url: `${RELEASE}/vibe-acp-linux-x86_64-3.1.2.tar.gz`, archive: "tar.gz", executable: "vibe-acp", approxBytes: 113_009_772, sha256: "cc63ca1ac92990f4e39724559710a3303bdb20fa4b4dc377cf544a023de7bdee", executableSha256: "278a3ad966b2923404c5317ac96a4094542539c89a7e6741ccc2402bf425ae2e" },+ "linux-arm64": { url: `${RELEASE}/vibe-acp-linux-aarch64-3.1.2.tar.gz`, archive: "tar.gz", executable: "vibe-acp", approxBytes: 106_819_919, sha256: "f357e53a9e7ad0ac214fd30f94c211ffceb3b968f20dee5e92c1742bee066ac2", executableSha256: "4ce303fffd65ec1d20b221819b07f8c0bf3441d97dc54100f135b493c7f90831" },+ "win32-x64": { url: `${RELEASE}/vibe-acp-windows-x86_64-3.1.2.zip`, archive: "zip", executable: "vibe-acp.exe", approxBytes: 68_737_578, sha256: "e5fa0e032633e79ec0cc77450ea303a8ddf98babcc8ad99c0bcc4f5f38d9a01c", executableSha256: "66b47be03f453ba84aa8b7ddd68b79cd7a846b145af4666ec994767df9e329b1" },+ },+};diff --git a/server/drivers/acp/mistral-vibe.test.ts b/server/drivers/acp/mistral-vibe.test.tsnew file mode 100644index 0000000000..efbf838679--- /dev/null+++ b/server/drivers/acp/mistral-vibe.test.ts@@ -0,0 +1,126 @@+import { existsSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync } from "node:fs";+import { tmpdir } from "node:os";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { afterEach, beforeEach, describe, expect, it } from "vitest";++import { ensureDirs, instanceConfigs } from "../../config.ts";+import type { ProviderInstance } from "../../contracts.ts";+import { removeTempDir } from "../../testing/cleanup.ts";+import { recordEvents, type EventRecorder } from "../../testing/events.ts";+import { BUILT_IN_DRIVERS } from "../builtIn.ts";+import { MistralVibeAgentDriver, resolveMistralVibeModels, vibeSignedIn } from "./mistral-vibe.ts";++const FAKE_CLI = join(dirname(fileURLToPath(import.meta.url)), "../../testing/fake-acp-cli.ts");+const MODELS = "mistral-medium-3.5,zai-glm-5-3-flash,Mistral Large,Codestral";++describe("Mistral Vibe ACP driver", () => {+ let scratch: string;+ let instance: ProviderInstance | undefined;+ let recorder: EventRecorder | undefined;++ beforeEach(() => {+ ensureDirs();+ scratch = mkdtempSync(join(tmpdir(), "omb-mistral-vibe-contract-"));+ });++ afterEach(async () => {+ recorder?.stop();+ await instance?.dispose();+ instance = undefined;+ recorder = undefined;+ await removeTempDir(scratch);+ });++ async function create(environment: Record<string, string> = {}) {+ instance = await MistralVibeAgentDriver.create({+ instanceId: `mistral-vibe-contract-${Math.random().toString(36).slice(2)}`,+ displayName: "Mistral Vibe",+ enabled: true,+ environment: {+ VIBE_HOME: join(scratch, "vibe-home"),+ FAKE_ACP_AUTH_METHOD: "browser-auth",+ FAKE_ACP_IMAGE_CAPABILITY: "1",+ FAKE_ACP_AGENT_NAME: "@mistralai/mistral-vibe",+ FAKE_ACP_VERSION: "vibe-acp 3.1.1",+ FAKE_ACP_MODELS: MODELS,+ FAKE_ACP_DUMP: join(scratch, "launch.json"),+ FAKE_ACP_RPC_DUMP: join(scratch, "rpc.json"),+ ...environment,+ },+ config: { cli: FAKE_CLI, fullAuto: false },+ });+ recorder = recordEvents(instance.adapter);+ return { instance, recorder };+ }++ it("is a built-in engine in fresh and existing fleets", () => {+ expect(BUILT_IN_DRIVERS.some((driver) => driver.driverKind === "mistralVibeAgent")).toBe(true);+ expect(instanceConfigs({}).mistralVibe?.driver).toBe("mistralVibeAgent");+ expect(instanceConfigs({ instances: { claude: { driver: "claudeAgent" } } }).mistralVibe?.driver).toBe("mistralVibeAgent");+ expect(MistralVibeAgentDriver.metadata).toMatchObject({ displayName: "Mistral Vibe", access: "subscription" });+ });++ it("treats a populated whoami_cache.json or MISTRAL_API_KEY as signed in", () => {+ const home = join(scratch, "vibe-home");+ mkdirSync(home, { recursive: true });+ expect(vibeSignedIn({ VIBE_HOME: home, HOME: scratch })).toBe(false);+ writeFileSync(join(home, "whoami_cache.json"), JSON.stringify({ customer_id: "cus-fixture" }));+ expect(vibeSignedIn({ VIBE_HOME: home, HOME: scratch })).toBe(true);+ expect(vibeSignedIn({ VIBE_HOME: join(scratch, "absent"), MISTRAL_API_KEY: "fixture-key" })).toBe(true);+ });++ it("reads live models from a throwaway discovery session that sets no model itself", async () => {+ const rpc = join(scratch, "discovery-rpc.json");+ const dump = join(scratch, "discovery.json");+ const catalog = await resolveMistralVibeModels({+ ...process.env,+ VIBE_HOME: join(scratch, "vibe-home"),+ FAKE_ACP_AUTH_METHOD: "browser-auth",+ FAKE_ACP_MODELS: MODELS,+ FAKE_ACP_VERSION: "vibe-acp 3.1.1",+ FAKE_ACP_DUMP: dump,+ FAKE_ACP_RPC_DUMP: rpc,+ }, { cli: FAKE_CLI });++ expect(catalog.default).toBe("mistral-medium-3.5");+ expect(catalog.options.map((option) => option.id)).toEqual(MODELS.split(","));+ expect(JSON.parse(readFileSync(rpc, "utf8"))).not.toContain("session/set_config_option");+ expect(JSON.parse(readFileSync(dump, "utf8")).argv).toEqual([]);+ });++ it("starts nothing when the instance is created", async () => {+ await create();+ expect(existsSync(join(scratch, "launch.json"))).toBe(false);+ });++ it("runs `vibe-acp` with no arguments, the workspace key, and the picked model", async () => {+ const { instance, recorder } = await create({ MISTRAL_API_KEY: "engine-fixture-key", OPENAI_COMPAT_API_KEY: "other-engine-key" });+ const { turnId } = await instance.adapter.sendTurn({+ threadId: "mistral-vibe-chat", text: "hello", model: "zai-glm-5-3-flash", approvalMode: "ask",+ });+ await recorder.until((event) => event.type === "turn.completed" && event.turnId === turnId);++ expect(recorder.events.every((event) => event.provider === "mistralVibeAgent")).toBe(true);+ expect(JSON.parse(readFileSync(join(scratch, "rpc.json"), "utf8"))).toContain("authenticate");+ const launch = JSON.parse(readFileSync(join(scratch, "launch.json"), "utf8"));+ expect(launch.argv).toEqual([]);+ expect(launch.env.MISTRAL_API_KEY).toBe("engine-fixture-key");+ expect(launch.env.OPENAI_COMPAT_API_KEY).toBeUndefined();+ const promptRows = readFileSync(join(scratch, "launch.json.prompts.jsonl"), "utf8").trim().split("\n");+ expect(JSON.parse(promptRows.at(-1)!)).toMatchObject({ model: "zai-glm-5-3-flash" });+ });++ it("turns Vibe's session/request_permission into an approval card and answers with the person's choice", async () => {+ const answer = join(scratch, "permission.txt");+ const { instance, recorder } = await create({ FAKE_ACP_MODE: "permission", FAKE_ACP_PERMISSION_ANSWER: answer });+ const { turnId } = await instance.adapter.sendTurn({+ threadId: "mistral-vibe-permission", text: "edit", model: "mistral-medium-3.5", approvalMode: "ask",+ });+ const ask = await recorder.until((event) => event.type === "request.opened");+ expect(ask.provider).toBe("mistralVibeAgent");+ expect(await instance.adapter.respondToRequest("mistral-vibe-permission", ask.requestId!, { behavior: "deny" })).toBe("rejected");+ await recorder.until((event) => event.type === "turn.completed" && event.turnId === turnId);+ expect(readFileSync(answer, "utf8")).toBe("reject");+ });+});diff --git a/server/drivers/acp/mistral-vibe.ts b/server/drivers/acp/mistral-vibe.tsnew file mode 100644index 0000000000..6053349c0b--- /dev/null+++ b/server/drivers/acp/mistral-vibe.ts@@ -0,0 +1,127 @@+// Mistral Vibe over ACP (`vibe-acp`, github.com/mistralai/mistral-vibe). Verified against+// vibe-acp 3.1.1 on 2026-11-13:+//+// - initialize answers protocolVersion 1, loadSession true, promptCapabilities.image true,+// sessionCapabilities {list, fork, close} and exactly one auth method:+// `browser-auth`, "Sign in through Mistral AI Studio".+// - Unauthenticated, session/new fails with error -32000 "Missing API key for mistral+// provider." and `authenticate` with methodId `browser-auth` stays pending until the+// person finishes the sign-in; the process opens the OS browser (it honours $BROWSER)+// at console.mistral.ai/codestral/cli/authenticate?... The saved login lives in the+// account's own Vibe home ($VIBE_HOME, default ~/.vibe).+// - A browser sign-in leaves a populated `$VIBE_HOME/whoami_cache.json`; `MISTRAL_API_KEY`+// (Settings → Connections → Model providers, plan key) works with no sign-in.+// - session/new exposes three config options: `mode` (MausBot's approval modes map there),+// `model`, and `thinking` (off | high). `thinking` follows the chosen model's own default;+// item-specific thought levels prove nothing here, so variants stay off.+// - `vibe-acp --version` prints "vibe-acp 3.1.1".+import { existsSync, readFileSync } from "node:fs";+import { homedir } from "node:os";+import { join } from "node:path";++import type { ModelCatalog } from "../../contracts.ts";+import { createAcpDriver, type AcpConfig, type AcpSupport } from "./core.ts";+import { discoverAcpModels } from "./custom-model-catalog.ts";+import { acpModelOption } from "./config-options.ts";+import { MISTRAL_VIBE_STANDALONE } from "./mistral-vibe-release.ts";++/** The stock chat-capable models mistral.ai lists for Vibe (only some ship per version; a signed-in+ * session's own list replaces these on Refresh). The `mistral-medium-3.5` id is the CLI's current default. */+export const MISTRAL_VIBE_MODELS: ModelCatalog = {+ default: "mistral-medium-3.5",+ options: [+ { id: "mistral-medium-3.5", label: "Mistral Medium 3.5" },+ { id: "mistral-medium", label: "Mistral Medium" },+ { id: "mistral-large", label: "Mistral Large" },+ { id: "codestral", label: "Codestral" },+ { id: "zai-glm-5-3", label: "Z.ai GLM 5.3" },+ { id: "zai-glm-5-3-flash", label: "Z.ai GLM 5.3 Flash" },+ ],+};++export function vibeHome(env: Record<string, string | undefined>): string {+ return env.VIBE_HOME || join(env.HOME || homedir(), ".vibe");+}++const nonEmpty = (value: unknown): boolean => typeof value === "string" && value.trim() !== "";++/** A populated `whoami_cache.json` is the sign-in marker (fresh installs do not have it); the+ * provider key rides in the child env either way. */+export function vibeSignedIn(env: Record<string, string | undefined>): boolean {+ if (nonEmpty(env.MISTRAL_API_KEY)) return true;+ const path = join(vibeHome(env), "whoami_cache.json");+ if (!existsSync(path)) return false;+ try {+ const content = readFileSync(path, { encoding: "utf8" });+ return content.includes("customer_id") || content.includes("api_base");+ } catch {+ return false;+ }+}++/** session/new's `model` option: ids are the picker's wire values verbatim. */+function offeredModels(sessionConfig: unknown): { values: string[]; current?: string } {+ const option = acpModelOption(sessionConfig);+ return {+ values: (option?.options ?? []).map((model) => model.id),+ ...(option?.currentValue ? { current: option.currentValue } : {}),+ };+}++/** Discovers models in a temporary session, so a refresh leaves no record in the person's Vibe history. */+export async function resolveMistralVibeModels(+ env: Record<string, string | undefined>,+ config: Pick<AcpConfig, "cli">,+): Promise<ModelCatalog> {+ return discoverAcpModels(env, config.cli || "vibe-acp", [], {+ default: MISTRAL_VIBE_MODELS.default,+ variants: false,+ maxModels: 128,+ exitGraceMs: 2_000,+ });+}++export const mistralVibeSupport: AcpSupport = {+ driverKind: "mistralVibeAgent",+ displayName: "Mistral Vibe",+ models: MISTRAL_VIBE_MODELS,+ defaultCli: "vibe-acp",+ cliVersion: /^vibe-acp /u,+ nativeSource: "mistral-vibe.acp",+ images: true,+ loginNote:+ "Start a first chat: the browser sign-in to Mistral AI Studio opens (it completes behind it). Or paste a Mistral API key under Settings → Connections → Model providers.",+ install: {+ command: {+ darwin: "curl -LsSf https://mistral.ai/vibe/install.sh | bash",+ linux: "curl -LsSf https://mistral.ai/vibe/install.sh | bash",+ // uv first: Vibe ships no Windows installer, its README installs it through uv.+ win32: "powershell -ExecutionPolicy ByPass -c 'irm https://astral.sh/uv/install.ps1 | iex; uv tool install mistral-vibe'",+ },+ docsUrl: "https://github.com/mistralai/mistral-vibe/releases",+ // On every platform, Settings can install the pinned build from mistral-vibe's releases: no Node.js, no uv.+ standalone: MISTRAL_VIBE_STANDALONE,+ },+ spawnArgs: () => [],+ credentialEnv: ["MISTRAL_API_KEY"],+ // Model is a session config option (see header); ids pass through unchanged.+ selectModel: { configId: "model" },+ resolveModels: resolveMistralVibeModels,+ resolveModelsOnCreate: false,+ fallbackModel(sessionConfig, catalogDefault) {+ const { values, current } = offeredModels(sessionConfig);+ if (catalogDefault && values.includes(catalogDefault)) return catalogDefault;+ return current ?? null;+ },++ // initialize advertises exactly one method: a browser sign-in the process opens itself,+ // which the authenticate request blocks on until the person finishes (see header).+ pickAuthMethod: (methods) => (methods.some((method) => method.id === "browser-auth") ? "browser-auth" : null),+ authFailure: "continue",+ isAuthenticated: (env) => vibeSignedIn(env),++ // House convention for ACP harnesses: the persona rides in the prompt text.+ buildPromptText: (turn) => (turn.system ? `${turn.system}\n\n${turn.text}` : turn.text),+};++export const MistralVibeAgentDriver = createAcpDriver(mistralVibeSupport);diff --git a/server/drivers/builtIn.ts b/server/drivers/builtIn.tsindex 77ee8a2ffc..9c65f90d33 100644--- a/server/drivers/builtIn.ts+++ b/server/drivers/builtIn.ts@@ -18,6 +18,7 @@ import { CopilotAgentDriver } from "./acp/copilot.ts";import { CommandCodeAgentDriver } from "./acp/command-code.ts";import { KiroAgentDriver } from "./acp/kiro.ts";import { OmpAgentDriver } from "./acp/omp.ts";+import { MistralVibeAgentDriver } from "./acp/mistral-vibe.ts";import { OpenAICompatDriver } from "./openai-compat.ts";import { PiDriver } from "./pi.ts";import { MistralDriver } from "./mistral.ts";@@ -44,6 +45,7 @@ export const BUILT_IN_DRIVERS: readonly AnyProviderDriver[] = [CommandCodeAgentDriver,KiroAgentDriver,OmpAgentDriver,+ MistralVibeAgentDriver,CustomAcpDriver,PiDriver,OpenAICompatDriver,diff --git a/server/engine-memory.ts b/server/engine-memory.tsindex bd6c71d388..dfdfd07f68 100644--- a/server/engine-memory.ts+++ b/server/engine-memory.ts@@ -29,7 +29,7 @@ const STALL_PERCENT = 20;const MINUTE_MS = 60_000, DAY_MINUTES = 24 * 60;/** Engines that run each thread's turns in processes of their own. */export const ENGINE_PROCESS_KINDS: ReadonlySet<string> = new Set(["claudeAgent", "codex", "opencodeGo", "grokAgent", "geminiAgent", "kimiAgent",- "droidAgent", "cursorAgent", "qwenAgent", "hermesAgent", "clineAgent", "copilotAgent", "commandCodeAgent", "kiroAgent", "customAcp", "piAgent", "ompAgent", "antigravityAgent"]);+ "droidAgent", "cursorAgent", "qwenAgent", "hermesAgent", "clineAgent", "copilotAgent", "commandCodeAgent", "kiroAgent", "customAcp", "piAgent", "ompAgent", "mistralVibeAgent", "antigravityAgent"]);/** Chat-runtime engines (openai-chat.ts) have no process of their own, but each turn starts its MCP servers, each a Node process. */export const CHAT_RUNTIME_KINDS: ReadonlySet<string> = new Set(["openai-compat", "cerebras", "greenference", "grok", "groq", "meta", "minimax", "mistral", "modelgo"]);diff --git a/server/engine-versions.ts b/server/engine-versions.tsindex 22dfb259de..abe77cd7e0 100644--- a/server/engine-versions.ts+++ b/server/engine-versions.ts@@ -32,6 +32,7 @@ export const ENGINE_VERSIONS: Readonly<Record<string, EngineVersionPin>> = {commandCodeAgent: { target: "1.88.4", minimum: "1.88.4", acp: ["acp"] },piAgent: { target: "1.5.0", minimum: "1.5.0" },ompAgent: { target: "18.13.1", minimum: "18.13.1", acp: ["acp"] },+ mistralVibeAgent: { target: "3.1.2", minimum: "3.1.1" },minimax: { target: "1.0.28", minimum: "1.0.28" },deepseekAgent: { target: "0.2.2-rc.1", minimum: "0.2.1-rc.2", acp: ["--profile", "acp"] },opencodeGo: { target: OPENCODE_STANDALONE.version, minimum: "1.19.4", acp: ["acp"], formerNpm: ["opencode-ai"] },diff --git a/server/instance-fleets.ts b/server/instance-fleets.tsindex 54c5c221a7..8000705527 100644--- a/server/instance-fleets.ts+++ b/server/instance-fleets.ts@@ -39,6 +39,7 @@ export const DEFAULT_FLEET: InstanceConfigMap = {opencodeGo: { driver: "opencodeGo" },openaiCompat: { driver: "openai-compat" },mistral: { driver: "mistral" },+ mistralVibe: { driver: "mistralVibeAgent" },cerebras: { driver: "cerebras" },groq: { driver: "groq" },greenference: { driver: "greenference" },@@ -60,6 +61,7 @@ const CUSTOM_ONLY = {cline: { driver: "clineAgent" },pi: { driver: "piAgent" },omp: { driver: "ompAgent" },+ mistralVibe: { driver: "mistralVibeAgent" },} as const;/** Added to a saved fleet that holds a product engine (claude, grok or codex), when it lacks them. */diff --git a/server/runtime/capabilities.test.ts b/server/runtime/capabilities.test.tsindex 10e4981395..aa5af0ff7c 100644--- a/server/runtime/capabilities.test.ts+++ b/server/runtime/capabilities.test.ts@@ -15,6 +15,7 @@ const EXPECTED: Record<string, EngineCapabilities> = {codex: { resume: true, nativeReviewer: true, full: true, edits: false, subagents: false },piAgent: bare,ompAgent: bare,+ mistralVibeAgent: bare,antigravityAgent: { resume: true, nativeReviewer: false, full: true, edits: true, subagents: false },grokAgent: { resume: true, nativeReviewer: true, full: true, edits: true, subagents: false },geminiAgent: { resume: true, nativeReviewer: false, full: true, edits: true, subagents: false },diff --git a/server/runtime/capabilities.ts b/server/runtime/capabilities.tsindex 1fb8551749..1af14da629 100644--- a/server/runtime/capabilities.ts+++ b/server/runtime/capabilities.ts@@ -22,6 +22,7 @@ const ENGINES: Readonly<Record<string, EngineRow>> = {codex: { resume: true },piAgent: { resume: true },ompAgent: { resume: true },+ mistralVibeAgent: { resume: true },antigravityAgent: { resume: true },grokAgent: { resume: true },geminiAgent: { resume: true },diff --git a/server/standalone-releases.ts b/server/standalone-releases.tsindex d47549de43..92e505e81d 100644--- a/server/standalone-releases.ts+++ b/server/standalone-releases.ts@@ -2,6 +2,7 @@// that no release here names is never trusted.import type { StandaloneRelease } from "./contracts.ts";import { CURSOR_STANDALONE } from "./drivers/acp/cursor-release.ts";+import { MISTRAL_VIBE_STANDALONE } from "./drivers/acp/mistral-vibe-release.ts";import { OPENCODE_STANDALONE } from "./drivers/acp/opencode-release.ts";-export const STANDALONE_RELEASES: readonly StandaloneRelease[] = [OPENCODE_STANDALONE, CURSOR_STANDALONE];+export const STANDALONE_RELEASES: readonly StandaloneRelease[] = [OPENCODE_STANDALONE, CURSOR_STANDALONE, MISTRAL_VIBE_STANDALONE];diff --git a/shared/tool-scope-support.ts b/shared/tool-scope-support.tsindex 4a6e495d75..adddca1b1a 100644--- a/shared/tool-scope-support.ts+++ b/shared/tool-scope-support.ts@@ -5,7 +5,7 @@ export const TOOL_SCOPE_SUPPORT = {grok: "native-and-mcp", grokAgent: "native-and-mcp", piAgent: "native-and-mcp","openai-compat": "native-and-mcp", mistral: "native-and-mcp", minimax: "native-and-mcp", cerebras: "native-and-mcp", groq: "native-and-mcp", greenference: "native-and-mcp", modelgo: "native-and-mcp", meta: "native-and-mcp",claudeAgent: "mcp", codex: "mcp", geminiAgent: "mcp", kimiAgent: "mcp", droidAgent: "mcp",- cursorAgent: "mcp", opencodeGo: "mcp", qwenAgent: "mcp", hermesAgent: "mcp", clineAgent: "mcp", copilotAgent: "mcp", commandCodeAgent: "mcp", kiroAgent: "mcp", ompAgent: "mcp", deepseekAgent: "mcp", customAcp: "mcp", antigravityAgent: "mcp", museCode: "mcp",+ cursorAgent: "mcp", opencodeGo: "mcp", qwenAgent: "mcp", hermesAgent: "mcp", clineAgent: "mcp", copilotAgent: "mcp", commandCodeAgent: "mcp", kiroAgent: "mcp", ompAgent: "mcp", mistralVibeAgent: "mcp", deepseekAgent: "mcp", customAcp: "mcp", antigravityAgent: "mcp", museCode: "mcp",} as const;export function assertToolScopeSupported(engine: string, value: unknown): ToolScope | undefined {diff --git a/src/components/ProviderIcons.tsx b/src/components/ProviderIcons.tsxindex e000f43e34..d29f4f4d9a 100644--- a/src/components/ProviderIcons.tsx+++ b/src/components/ProviderIcons.tsx@@ -178,6 +178,7 @@ export function ProviderMark({ driverKind, size, className }: IconProps & { drivcase "claudeAgent":return <ClaudeMark size={size} className={className} />;case "mistral":+ case "mistralVibeAgent":return <PresetProviderMark preset="mistral" size={size} className={className} />;case "meta":case "museCode":diff --git a/src/lib/analytics-allowlist.ts b/src/lib/analytics-allowlist.tsindex 2dae5a50d4..e6fe6d0414 100644--- a/src/lib/analytics-allowlist.ts+++ b/src/lib/analytics-allowlist.ts@@ -32,7 +32,7 @@ export function credentialProvider(target: unknown): KeyProvider | "other" {export const ENGINE = ["claude", "codex", "gemini", "cursor", "opencode", "qwen", "hermes", "cline", "custom_acp", "pi", "openai_compat", "grok",- "grok_api", "kimi", "droid", "antigravity", "minimax", "mistral", "cerebras", "groq", "greenference", "modelgo", "meta", "muse_code", "deepseek", "copilot", "command_code", "kiro", "omp",+ "grok_api", "kimi", "droid", "antigravity", "minimax", "mistral", "cerebras", "groq", "greenference", "modelgo", "meta", "muse_code", "deepseek", "copilot", "command_code", "kiro", "omp", "mistral_vibe",] as const;export type Engine = (typeof ENGINE)[number];@@ -41,7 +41,7 @@ const ENGINE_BY_DRIVER = new Map<string, Engine>(Object.entries({qwenAgent: "qwen", hermesAgent: "hermes", clineAgent: "cline", customAcp: "custom_acp", piAgent: "pi","openai-compat": "openai_compat", grokAgent: "grok", grok: "grok_api", kimiAgent: "kimi", droidAgent: "droid",antigravityAgent: "antigravity", minimax: "minimax", mistral: "mistral", cerebras: "cerebras", groq: "groq", greenference: "greenference", modelgo: "modelgo",- meta: "meta", museCode: "muse_code", deepseekAgent: "deepseek", copilotAgent: "copilot", commandCodeAgent: "command_code", kiroAgent: "kiro", ompAgent: "omp",+ meta: "meta", museCode: "muse_code", deepseekAgent: "deepseek", copilotAgent: "copilot", commandCodeAgent: "command_code", kiroAgent: "kiro", ompAgent: "omp", mistralVibeAgent: "mistral_vibe",} satisfies Record<string, Engine>));export function engineForDriver(driverKind: unknown): Engine | "other" {diff --git a/src/lib/built-in-instances.ts b/src/lib/built-in-instances.tsindex e9b7058afe..d9cfd7c489 100644--- a/src/lib/built-in-instances.ts+++ b/src/lib/built-in-instances.ts@@ -4,5 +4,5 @@ export const BUILT_IN_INSTANCE_DRIVERS: Readonly<Record<string, string>> = {chatgpt: "codex", antigravity: "antigravityAgent", opencodeGo: "opencodeGo", openaiCompat: "openai-compat",mistral: "mistral", cerebras: "cerebras", groq: "groq", greenference: "greenference", modelgo: "modelgo", meta: "meta", museCode: "museCode", deepseek: "deepseekAgent", openai: "openai-compat",claudeApi: "claudeAgent", xaiApi: "grok", openrouter: "openai-compat", qwen: "qwenAgent", hermes: "hermesAgent",- cline: "clineAgent", pi: "piAgent", omp: "ompAgent", gemini: "geminiAgent",+ cline: "clineAgent", pi: "piAgent", omp: "ompAgent", mistralVibe: "mistralVibeAgent", gemini: "geminiAgent",};