Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
docs: publish the BYO VPS computer setup and selector workaround
leonongoing8c2425dd13ae
diff --git a/apps/docs/components/product-screenshot.tsx b/apps/docs/components/product-screenshot.tsxindex df5c03281e..1cf88d0088 100644--- a/apps/docs/components/product-screenshot.tsx+++ b/apps/docs/components/product-screenshot.tsx@@ -1,5 +1,6 @@const screenshotNames = ['hero',+ 'byo-vps-0.1.151','model-picker','computer-panel','approval-card',diff --git a/apps/docs/content/docs/computers/byo-vps.mdx b/apps/docs/content/docs/computers/byo-vps.mdxnew file mode 100644index 0000000000..8858e81bc5--- /dev/null+++ b/apps/docs/content/docs/computers/byo-vps.mdx@@ -0,0 +1,122 @@+---+title: Your own VPS (BYO)+description: Use a Docker desktop on your Linux server as a bot’s computer, with setup steps and the 0.1.151 selector workaround.+icon: Server+---++Use this guide when MausBot already runs on your computer and you want a bot to+control a desktop container on a server you own. The agent and its Google, Claude+or other engine sign-in stay on the computer running MausBot; Docker commands and+the managed desktop container run on the VPS over SSH.++To move the **whole MausBot server**, including its agent processes and chats, to+a VPS instead, follow [Deploy on a VPS](/docs/self-hosting/deploy-vps). Pairing a+phone or adding a remote MausBot server does not select this computer backend.++## Prepare the connection++You need the Docker **client** on the computer running MausBot, a Docker daemon on+an **x86_64 Linux** VPS, and an SSH user that can run Docker without `sudo`.+Podman and a Windows Docker host do not replace this VPS backend.++1. Add an alias such as `my-vps` to that computer’s `~/.ssh/config`.+2. Connect manually once to verify the host key, then check Docker over SSH:++ ```sh+ ssh my-vps true+ docker -H ssh://my-vps info+ ```++3. In **App Settings → API keys**, enter that alias for the self-hosted VPS.+ Use the alias name, not a password, private key, URL or SSH command.++Docker access is root-equivalent on that server. Use a dedicated VPS, keep its+inbound firewall limited to SSH, and verify the host key yourself. MausBot never+auto-accepts it. See the [detailed SSH setup and security notes](https://github.com/milind-soni/OpenMausBot/blob/main/docs/byo-vps.md).++## Select it for a bot++Create a bot normally, then open **Bot settings → Computer → Where … works**.+Builds with the selector fix expose **Self-hosted VPS** beside Boat there. Select+it, then choose the cloud desktop to provision or start its managed container.+This uses your SSH alias; a Boat API key or a MausBot Cloud subscription is not+needed. In **Let it choose** (Auto), the per-bot+**Start VPS automatically** switch permits creating or waking that container;+leave it off to reuse only an already-ready VPS.++<Callout type="warn" title="Existing bots in 0.1.151">+ The Simple layout can hide this selector and show **Connect Boat first** even+ when your SSH alias works. A connected alias alone does not change the bot’s+ backend. The selector regression is tracked in [#5225](https://github.com/milind-soni/OpenMausBot/issues/5225),+ with the UI fix in [#5228](https://github.com/milind-soni/OpenMausBot/pull/5228).+ If your installed build still lacks the selector, use the stopped-app workaround+ below. The older **Bot Settings → Access → Server (SSH alias)** directions do+ not apply to that Simple-only layout.+</Callout>++<div className="mx-auto max-w-xs">+ <ProductScreenshot name="byo-vps-0.1.151" alt="The existing-bot computer picker without a Self-hosted VPS selector" caption="The affected existing-bot picker before the selector fix. Setting up the SSH alias does not add the missing control." />+</div>++## Workaround when the selector is missing++1. Fully quit the desktop app, including its background process, or stop the+ headless MausBot service. Closing a window alone may leave it running. Do this+ on the computer **hosting** MausBot, not on a paired phone or desktop client.+2. Back up `config.json` and `bots.json` in that host’s application data directory+ (normally `~/.openmausbot`; a custom data directory takes precedence).+3. If the default alias was not saved through App Settings, merge this fragment+ into `config.json`, preserving every other setting:++ ```json+ {+ "vps": { "sshAlias": "my-vps" }+ }+ ```++4. In the existing bot’s object inside the `bots.json` array, set these fields.+ This is a **fragment**, not a replacement for the file or the bot’s other fields:++ ```json+ {+ "computer": "cloud",+ "cloudBackend": "vps",+ "vpsAlias": "my-vps",+ "autoStartVps": false+ }+ ```++5. Save valid JSON, restart MausBot, and open that bot’s Screen panel. Provision+ the container if requested. If it fails, follow the connection checks below.++Keep the application stopped while editing so a running process cannot overwrite+your changes. Restart afterward to reload the bot record and apply the saved+configuration.++| Bot field | Meaning |+| --- | --- |+| `computer: "cloud"` | Explicitly use the selected cloud computer; it may provision/start the container. |+| `cloudBackend: "vps"` | Use your SSH/Docker server instead of Boat. An absent backend defaults to Boat. |+| `vpsAlias` | Override the default SSH alias for this bot. Omit it to use App Settings’ alias. |+| `autoStartVps` | Permit **Auto** to create/wake this bot’s managed container. Defaults to `false`; it is not needed for an explicit cloud selection. |++To use **Auto**, leave the bot’s `computer` field unset rather than storing the+string `"auto"`. Set `autoStartVps` to `true` only if you want Auto to create or+wake its container. Scheduled and manually triggered routine runs may start the+configured VPS even when this Auto permission is off.++## Check the result++- Run `ssh my-vps true` and `docker -H ssh://my-vps info` from the host running+ MausBot. A prompt or permission error must be fixed before the app can connect.+- First provisioning builds the pinned desktop image on the VPS and may take+ several minutes. Read the Screen panel’s status for the exact failing step.+- The container publishes no public ports and has no host mounts. **Take control**+ uses a temporary SSH tunnel to a loopback port on the MausBot host.+- Sleeping the container preserves its filesystem; removing or replacing it does+ not. Copy important results out before removal or an image upgrade. The VPS+ itself is never stopped by MausBot.++For per-bot server changes, container cleanup and concurrent desktop ownership,+see the [full BYO VPS reference](https://github.com/milind-soni/OpenMausBot/blob/main/docs/byo-vps.md).+For a container on the same host instead, see [Local VM](/docs/computers/local-vm).diff --git a/apps/docs/content/docs/computers/cloud-and-vps.mdx b/apps/docs/content/docs/computers/cloud-and-vps.mdxindex 8c71e289a9..9a1ff2f0e9 100644--- a/apps/docs/content/docs/computers/cloud-and-vps.mdx+++ b/apps/docs/content/docs/computers/cloud-and-vps.mdx@@ -51,6 +51,8 @@ your own Boat key and with the cloud computers included in a Cloud plan.## Bring your own VPS+Follow [Your own VPS (BYO)](/docs/computers/byo-vps) for the setup steps, where to select the backend, and the existing-bot workaround for 0.1.151. This keeps the agent on the MausBot host; [deploying the whole server](/docs/self-hosting/deploy-vps) is a different setup.+MausBot can control Docker on an x86_64 Linux server through an SSH config alias. The agent process stays on your local machine; only Docker commands and the managed desktop container run on the VPS.Your SSH alias should include connection multiplexing, keepalives, and a connect timeout. Connect manually once to approve the host key, then verify:diff --git a/apps/docs/content/docs/computers/index.mdx b/apps/docs/content/docs/computers/index.mdxindex 9b3aae9bdc..86d481fcc7 100644--- a/apps/docs/content/docs/computers/index.mdx+++ b/apps/docs/content/docs/computers/index.mdx@@ -15,6 +15,8 @@ A bot can work without a computer, use the computer running MausBot, or work ins| Boat cloud computer | Hosted remote desktop | Always-available isolated Linux work || Self-hosted VPS | Hardened container over SSH | Using infrastructure you own |+To use your own Linux server as the desktop, start with [Your own VPS (BYO)](/docs/computers/byo-vps), including the 0.1.151 existing-bot selector workaround.+## Auto, local, and cloud selectionComputer selection is explicit per bot. Auto may reuse a ready, verified backend, but it does not silently provision every backend or turn on host control.diff --git a/apps/docs/content/docs/computers/local-vm.mdx b/apps/docs/content/docs/computers/local-vm.mdxindex bdf58a222f..69b1ce1ab5 100644--- a/apps/docs/content/docs/computers/local-vm.mdx+++ b/apps/docs/content/docs/computers/local-vm.mdx@@ -6,6 +6,8 @@ icon: BoatThe Local VM gives each bot a containerized Linux desktop on the same machine as MausBot. It is useful for browser work, downloads, and repeatable automation that should not run directly on your host desktop.+To put the desktop container on your own Linux server instead of this host, follow [Your own VPS (BYO)](/docs/computers/byo-vps). Hosting the whole MausBot server is covered separately in [Deploy on a VPS](/docs/self-hosting/deploy-vps).+## Requirements- Docker Desktop, Docker Engine, or a supported Podman setupdiff --git a/apps/docs/content/docs/computers/meta.json b/apps/docs/content/docs/computers/meta.jsonindex 3e0b36eaaf..ca4a3e060c 100644--- a/apps/docs/content/docs/computers/meta.json+++ b/apps/docs/content/docs/computers/meta.json@@ -1,5 +1,5 @@{"title": "Computers","icon": "Monitor",- "pages": ["index", "local-computer", "local-vm", "cloud-and-vps"]+ "pages": ["index", "local-computer", "local-vm", "cloud-and-vps", "byo-vps"]}diff --git a/apps/docs/content/docs/self-hosting/deploy-vps.mdx b/apps/docs/content/docs/self-hosting/deploy-vps.mdxindex 41b94bd3dd..c9de988f8f 100644--- a/apps/docs/content/docs/self-hosting/deploy-vps.mdx+++ b/apps/docs/content/docs/self-hosting/deploy-vps.mdx@@ -4,6 +4,8 @@ description: From a blank Linux server to MausBot running around the clock, reacicon: Cloud---+This guide moves the whole MausBot server and its agents to the VPS. To keep MausBot on your current computer and use only a remote desktop container, follow [Your own VPS (BYO)](/docs/computers/byo-vps).+<Callout title="Three ways in, one login">A public address with one command, your own domain with Docker, or your Tailscale network. Whichever you pick, devices pair once with a short code and stay signed in: a session lasts 30 days, and using it with half that or less left renews it to a full 30, up to 180 days from pairing. A device in regular use re-pairs twice a year; one that goes quiet for a month re-pairs. No password.</Callout>diff --git a/apps/docs/content/docs/self-hosting/index.mdx b/apps/docs/content/docs/self-hosting/index.mdxindex 47ced09d41..6c99d68296 100644--- a/apps/docs/content/docs/self-hosting/index.mdx+++ b/apps/docs/content/docs/self-hosting/index.mdx@@ -6,6 +6,8 @@ icon: ServerMausBot is local-first by default: the harness listens on loopback, agent CLIs run on your machine, and application state lives under `~/.openmausbot`.+If you only want to use a remote Docker desktop while MausBot and its agents stay on your current computer, follow [Your own VPS (BYO)](/docs/computers/byo-vps) instead.+## Typical self-hosted setup1. Run MausBot on your personal macOS, Windows, or Ubuntu computer.diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjsindex 457dcf29d2..7e76f15529 100644--- a/apps/docs/next.config.mjs+++ b/apps/docs/next.config.mjs@@ -5,6 +5,9 @@ const withMDX = createMDX();/** @type {import('next').NextConfig} */const config = {reactStrictMode: true,+ redirects() {+ return [{ source: '/docs/byo-vps', destination: '/docs/computers/byo-vps', permanent: true }];+ },};export default withMDX(config);diff --git a/docs/byo-vps.md b/docs/byo-vps.mdindex 588d49685b..8fe4eeef47 100644--- a/docs/byo-vps.md+++ b/docs/byo-vps.md@@ -6,6 +6,17 @@ Cua container there — a Linux desktop it can see and control. SSH is the onlyonly surface exposed: OpenMausBot never opens a public port on the VPS, never stores your SSH key orpassphrase, and never runs an agent remotely.+## Choosing the backend++The published [Your own VPS guide](https://docs.openmausbot.com/docs/computers/byo-vps)+shows the setup steps and configuration fields. In 0.1.151, the Simple layout can+hide the backend selector for an existing bot (#5225; selector fix #5228). The guide+includes a stopped-app `bots.json` workaround for affected builds. Do not look for+an Advanced-only Access page in that layout.++Using a VPS only as a bot’s computer leaves MausBot and its agents on their current+host. To move the whole server to a VPS, use [Deploy on a VPS](deploy-vps.md).+## What works- A per-bot Linux desktop in a managed container on your VPS, driven through the official Cua tools.@@ -83,8 +94,10 @@ Host my-vps### One server per botThe app-level alias (Settings → API keys) is the default server for every bot. A bot can also be pointed at-its own alias: Bot Settings → Access → **Server (SSH alias)** appears whenever the **Self-hosted VPS**-backend is chosen, and an empty field means "use the default". The bot's own server then wins for everything+its own alias through the `vpsAlias` field in `bots.json`; omit the field to use the default.+The older Advanced layout exposes this as Bot Settings → Access → **Server (SSH alias)**.+For 0.1.151’s Simple-only layout, follow the stopped-app workaround in the published guide.+The bot's own server then wins for everythingthat matters to that bot — provisioning, status checks, previews, screenshots, watched desktop sessions, itscomputer tools, and deletion cleanup. The Settings inventory spans every server in play and tags eachcomputer with the alias that holds it.@@ -95,8 +108,7 @@ Self-hosted VPS computers (or by hand: `docker -H ssh://old-server rm -f openmauthat cannot be reached never traps a bot: moving the bot to another server, switching its computer, or deletingit goes ahead, and the app says what may be left on that server and the command that removes it once the serveris back. (Changing the default alias still waits until its server can be listed.) Any alias from your-`~/.ssh/config`, host key already verified by hand, is all it takes. The field is in a saved bot's settings; a new-bot starts on the default server.+`~/.ssh/config`, host key already verified by hand, is all it takes. A new bot starts on the default server.**Host key first, by hand.** Connect once manually before pointing OpenMausBot at the alias:diff --git a/docs/deploy-vps.md b/docs/deploy-vps.mdindex 4ec5e9eb25..ca6adc5776 100644--- a/docs/deploy-vps.md+++ b/docs/deploy-vps.md@@ -1,5 +1,9 @@# Deploy OpenMausBot on a VPS+To keep MausBot and its agents on your current computer and use a VPS only as a+bot’s remote desktop, see [Bring Your Own VPS](byo-vps.md) and the+[published setup guide](https://docs.openmausbot.com/docs/computers/byo-vps).+From a blank Linux server to OpenMausBot running on it around the clock, reachable from your laptop, the desktop app and your phone, with your bots working while every laptop is closed. It assumes nothing beyond being able to open a terminal and paste commands. About twenty minutes, most of it waiting.Three ways to make the server reachable are covered. Pick one; the rest of the guide is the same. The short version of every path, including `--lan` and your own cloudflared or proxy (`--public-url`), is at the top of [Self-hosting](self-hosting.md#pick-a-way-in); this guide adds the server setup around it.diff --git a/docs/screenshots/byo-vps-0.1.151.png b/docs/screenshots/byo-vps-0.1.151.pngnew file mode 100644index 0000000000..76d5c8ff2dBinary files /dev/null and b/docs/screenshots/byo-vps-0.1.151.png differdiff --git a/docs/self-hosting.md b/docs/self-hosting.mdindex 4d795a1a89..4b72f4cb3f 100644--- a/docs/self-hosting.md+++ b/docs/self-hosting.md@@ -1,5 +1,9 @@# Self-hosting the MausBot server+To keep MausBot and its agents on your current computer and use a VPS only as a+bot’s remote desktop, see [Bring Your Own VPS](byo-vps.md) and the+[published setup guide](https://docs.openmausbot.com/docs/computers/byo-vps).+Run the server on a machine you control (a VPS, a home server, a Mac mini in acloset). Then connect the desktop app, browsers and phones to it. Every pathbelow ends the same way: the server prints **one link**, and you paste it intodiff --git a/docs/verification/evidence/byo-vps-docs/after.png b/docs/verification/evidence/byo-vps-docs/after.pngnew file mode 100644index 0000000000..16623b8d83Binary files /dev/null and b/docs/verification/evidence/byo-vps-docs/after.png differdiff --git a/docs/verification/evidence/byo-vps-docs/before.png b/docs/verification/evidence/byo-vps-docs/before.pngnew file mode 100644index 0000000000..7e702fbe44Binary files /dev/null and b/docs/verification/evidence/byo-vps-docs/before.png differdiff --git a/docs/verification/evidence/byo-vps-docs/workaround.png b/docs/verification/evidence/byo-vps-docs/workaround.pngnew file mode 100644index 0000000000..8ce59db741Binary files /dev/null and b/docs/verification/evidence/byo-vps-docs/workaround.png differ