Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

docs(site): a page for custom ACP engines, and the picker's real refresh label

subfocusx55d722c966a6
diff --git a/apps/docs/content/docs/providers/custom-acp.mdx b/apps/docs/content/docs/providers/custom-acp.mdx
new file mode 100644
index 0000000000..88d77b480d
--- /dev/null
+++ b/apps/docs/content/docs/providers/custom-acp.mdx
@@ -0,0 +1,57 @@
+---
+title: Custom engines
+description: Run a bot on any agent CLI that speaks the Agent Client Protocol, from one entry in your config file.
+icon: Terminal
+---
+
+An agent CLI that speaks [ACP](https://agentclientprotocol.com) over stdio — an agent that ships its own `acp` mode, a Zed-style agent server, or a small wrapper of your own — runs as a MausBot engine without a code change. MausBot starts the CLI, signs in with the account it already has, and shows its models, approvals and questions in the chat like any built-in engine.
+
+This is for a CLI that has its own ACP entry point. If the CLI only speaks chat completions, use an OpenAI-compatible provider instead: see [Other model providers](./model-providers.mdx).
+
+## Add the instance
+
+Add an entry under `"instances"` in `~/.openmausbot/config.json`, then restart the app. Instance entries are read at boot, so an engine added while the app runs is not picked up until the restart.
+
+```json
+{
+ "instances": {
+ "my-agent": {
+ "driver": "customAcp",
+ "displayName": "My Agent",
+ "config": { "cli": "my-agent acp" }
+ }
+ }
+}
+```
+
+`config.cli` is the whole command, arguments included, so `"npx -y some-agent acp"` is valid. Use the executable's full path when it lives somewhere the app does not have on its `PATH` — `/home/you/.local/bin/vibe-acp`, or a Windows `.cmd` shim — because a desktop app started from the dock or the Start menu usually has a shorter `PATH` than your terminal.
+
+Every instance needs its own `driver`, `displayName` and `config.cli`. Give `displayName` the name you want to see in the model picker; the per-bot picker lists the instance, not a generic driver name.
+
+You can also set the command without editing the file: **Settings → Engines**, then **Set CLI…** on the instance's row. An instance that has no command yet stays visible with that hint instead of failing on its first message.
+
+## Sign in once from a terminal
+
+The custom driver has no sign-in flow of its own. Run the CLI once in a terminal and complete its login; MausBot spawns the CLI with that login intact. A chat that reports a missing sign-in or authentication error means the CLI itself has none — repeat that login step in a terminal and send the message again.
+
+## Choose the engine and its models
+
+Pick the instance in a bot's model picker. The picker lists the models the agent advertises, which MausBot reads in a temporary ACP session before a prompt is sent. Use **Refresh models** to read the catalog again after you sign in, upgrade the CLI, or change plan. A failed refresh keeps the last catalog that worked.
+
+**Agent default** leaves the model the CLI would use itself, and it is the only choice an agent makes when it advertises no models. Where the agent offers thinking levels, the picker lists them next to each model. A bot's default model and a single conversation's override are saved separately.
+
+## What MausBot passes to the CLI
+
+- **Environment.** Add an `"environment"` object to the instance to give the CLI variables such as an API key. They reach the child process.
+- **No borrowed keys.** MausBot strips its own provider keys from the child's environment, including the ones saved for other engines, so a custom CLI can only ever bill the account it signed in to itself.
+- **Your files.** The CLI runs in the folder the bot works in, exactly as a built-in engine does, so it sees that bot's project and nothing else of yours.
+
+## Approvals and questions
+
+Tool permissions ride ACP's own `session/request_permission`. When the agent asks, the request becomes a normal approval card in the chat, and Ask and Full access keep their usual meaning for that bot. An agent that never asks is never asked to; MausBot cannot add approvals a CLI does not offer.
+
+## More than one agent
+
+Add one instance per agent, each with its own `displayName` and command, and one bot can use each. Instances are independent: a different account, a different build, or two versions of the same CLI side by side all work.
+
+Vendor-written ACP modes work the same way, for example Mistral Vibe's `vibe-acp` with a Vibe sign-in, or Command Code's `cmd acp` with a `cmd login`.
diff --git a/apps/docs/content/docs/providers/index.mdx b/apps/docs/content/docs/providers/index.mdx
index a06fc4db9d..6bf30de23b 100644
--- a/apps/docs/content/docs/providers/index.mdx
+++ b/apps/docs/content/docs/providers/index.mdx
@@ -27,7 +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 |
-Additional driver instances can be declared in local configuration. Unavailable engines remain visible with a reason instead of crashing the provider fleet.
+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.
GitHub Copilot runs the official Copilot CLI (`npm install -g @github/copilot`) in its ACP mode and bills the signed-in Copilot plan, unless the CLI is set up to bring its own key: `COPILOT_PROVIDER_*` variables in the `githubCopilot` instance's `environment`, or a `providers.json` in the Copilot CLI home (`~/.copilot`, or `COPILOT_HOME`), send model requests to that provider, which bills them. A `GH_TOKEN` or `GITHUB_TOKEN` in MausBot's own environment never reaches it, because either would take precedence over the CLI's login; put one in the `githubCopilot` instance's `environment` to use it. `COPILOT_ALLOW_ALL` is always removed, so tool approvals stay with MausBot.
diff --git a/apps/docs/content/docs/providers/meta.json b/apps/docs/content/docs/providers/meta.json
index c5f6c5cc8e..15cd9be2ce 100644
--- a/apps/docs/content/docs/providers/meta.json
+++ b/apps/docs/content/docs/providers/meta.json
@@ -1,5 +1,5 @@
{
"title": "Agent engines",
"icon": "BrainCircuit",
- "pages": ["index", "model-providers", "antigravity", "troubleshooting"]
+ "pages": ["index", "model-providers", "custom-acp", "antigravity", "troubleshooting"]
}
diff --git a/apps/docs/content/docs/providers/model-providers.mdx b/apps/docs/content/docs/providers/model-providers.mdx
index 30d4fb772f..0a5ab0c92f 100644
--- a/apps/docs/content/docs/providers/model-providers.mdx
+++ b/apps/docs/content/docs/providers/model-providers.mdx
@@ -26,7 +26,8 @@ The Cline row lists its hosted model service. To run Cline's own coding agent,
use the [Cline engine](#cline-engine).
Other engines (Antigravity, Cursor, Gemini, Qwen, Grok, Droid, Kimi, Hermes,
-Pi and custom agents) use their own sign-in.
+Pi and custom agents) use their own sign-in. For an agent CLI with its own ACP
+entry point, see [Custom engines](./custom-acp.mdx).
Keys you export in your shell (`~/.zshrc`, `~/.bashrc`) don't reach the
desktop app when you open it from the Dock, Finder or an app menu: it copies
diff --git a/docs/custom-engines.md b/docs/custom-engines.md
index a7bac2c983..ab3d435542 100644
--- a/docs/custom-engines.md
+++ b/docs/custom-engines.md
@@ -46,7 +46,7 @@ instance at it:
hint instead of failing at first message.
- **Sign in first.** The driver has no auth flow of its own — run the CLI once
in a terminal and log in there; OpenMausBot spawns it with your login intact.
-- **Choose models per bot.** Open the bot's model picker and use **Re-detect**
+- **Choose models per bot.** Open the bot's model picker and use **Refresh models**
to load the models advertised by the agent. Select a model and, when offered,
its thinking level. Bot defaults and individual conversation overrides are
saved independently. **Agent default** leaves the native session's model
@@ -129,7 +129,7 @@ a custom ACP engine with your own Command Code sign-in. (Checked with
is not on the app's `PATH`: `which cmd` on macOS or Linux, or
`where.exe cmdc` on Windows.
4. Pick **Command Code** for a bot. Its model menu shows **Agent default**,
- which runs Command Code's own default model; **Re-detect** lists the models
+ which runs Command Code's own default model; **Refresh models** lists the models
it advertises once you're signed in.
Without a sign-in the chat shows ``Not authenticated. Run `cmd login` in a