Open-source Grok Bot alternative with a virtual machine that bots can use
Bring Your Own VPS
OpenMausBot can turn a Linux server you already own into a bot's computer. The agent process stays on your machine; Docker's own SSH transport reaches the daemon on the VPS, and each bot gets one managed, hardened Cua container there — a Linux desktop it can see and control. SSH is the only credential involved and the only surface exposed: OpenMausBot never opens a public port on the VPS, never stores your SSH key or passphrase, and never runs an agent remotely.
Choosing the backend
The published Your own VPS guide
shows the setup steps and configuration fields. In 0.1.151 and 0.1.152, 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.
What works
- A per-bot Linux desktop in a managed container on your VPS, driven through the official Cua tools.
- Live screen preview in the Computer panel and in transcripts, same as a Boat.
- Explicit Cloud with the Self-hosted VPS backend provisions or starts the container. Auto reuses a ready container by default; an off-by-default Start VPS automatically switch lets that bot prepare or wake its managed container when needed. Scheduled and manually triggered routine runs always start it, and never fall back to this computer's own desktop when the VPS cannot be reached.
- Interactive Take control locally or from a paired desktop client: the Computer panel's picture becomes the
live desktop. The host binds noVNC only to a random
127.0.0.1port, closes the tunnel soon after you hand control back, and never publishes VNC on the VPS. A paired client receives a short-lived, device-scoped relay through managed HTTPS or Tailscale only after Cloud desktop access is enabled for that device on the host.
Prerequisites
- Locally: a
dockerCLI, version 18.09 or newer (that is whendocker -H ssh://shipped). The Docker daemon does not need to run locally — only the CLI is used; install it with the one line for your platform below. - On the VPS: a running Docker daemon (
dockerd) on x86_64 or arm64 Linux. - The SSH user must be in the
dockergroup on the VPS, sodocker infoworks without sudo.
Be clear-eyed about that last point: membership in the docker group is root-equivalent on that machine.
Anyone who can talk to the daemon can mount the host filesystem into a container. Using this feature means
trusting the VPS — and whoever else can reach its Docker daemon — completely. Give bots a dedicated server,
not one that also holds things you would not hand to the agent.
Install the Docker client
Only the client belongs on your own computer; the daemon stays on the VPS. One line per platform:
brew install docker # macOS
winget install -e --id Docker.DockerCLI # Windows 10 or 11
sudo apt install docker-ce-cli # Debian or Ubuntu, Docker's apt repository
Windows also needs its OpenSSH client (ssh.exe, included since Windows 10 1809), because Docker's SSH
transport runs it. Podman cannot replace the Docker CLI here: this backend only ever runs
docker -H ssh://<alias>.
The required SSH config alias
OpenMausBot connects only through a named alias in your ~/.ssh/config — you type the alias into
Settings → API keys, nothing else. Every bot action becomes a docker exec over SSH, so the app
supplies connection sharing and fail-fast timeouts itself: it runs each VPS command through its own
ssh_config (under ~/.openmausbot/ssh/) that includes your file first and fills in ControlMaster,
ControlPersist, keepalives and a connect timeout wherever your alias leaves them unset. Anything your
alias sets wins. Startup, previews, bot tools and their connection probes use the same settings.
The live desktop's tunnel is the exception: it opens its own connection (ControlPath=none), so
closing it never takes down a connection that docker commands share.
For long data-directory paths, the app keeps its control socket in a private, user-owned directory
under /tmp to stay within OpenSSH's socket-path limit; the config stays in the app data directory.
On macOS and Linux, the block below is the recommended shape, and it is what your own ssh uses outside the app.
On a Windows server, leave out the three Control… lines: Windows OpenSSH does not support connection sharing, so the
app never adds them there, and ssh on Windows can fail when your alias sets them.
Host my-vps
HostName 203.0.113.7
User deploy
IdentityFile ~/.ssh/id_ed25519
ControlMaster auto
ControlPath ~/.ssh/cm-%r@%h-%p
ControlPersist 60m
ServerAliveInterval 15
ServerAliveCountMax 3
ConnectTimeout 10
ControlMaster/ControlPath/ControlPersist(macOS and Linux only) — every bot action is a docker-over-SSH exec; multiplexing turns per-command connects into milliseconds over one persistent connection. The live-desktop tunnel does not share it.ServerAliveInterval/ServerAliveCountMax/ConnectTimeout— a dropped VPS must fail fast (under a minute, and ten seconds to connect), not hang a turn waiting on a dead TCP session.
One server per bot
The app-level alias (Settings → API keys) is the default server for every bot. A bot can also be pointed at
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).
If the selector is missing, follow the stopped-app workaround in the published guide.
The bot's own server then wins for everything
that matters to that bot — provisioning, status checks, previews, screenshots, watched desktop sessions, its
computer tools, and deletion cleanup. The Settings inventory spans every server in play and tags each
computer with the alias that holds it.
To pick servers from a list instead of typing aliases, add them under Named servers below the default alias
(Settings → AI → Other services → Self-hosted VPS): a name you choose plus its SSH config alias. Each saved VPS bot
then gets a server picker in Bot settings → Computer → Where … works: the default server, every named server, or
Other SSH alias… for one that is not on the list, then Save. The list is stored as vpsServers in config.json
([{ "name": "Home lab", "sshAlias": "home-lab" }]); saving or removing an entry never moves a bot, and the
picker writes the same vpsAlias field. Only owner and admin sessions see the list.
A bot cannot be moved to another server while its computer still lives on the old one, and the default alias
cannot change while any computer it manages still exists: remove the computer first from Settings → Local VM →
Self-hosted VPS computers (or by hand: docker -H ssh://old-server rm -f openmausbot-vps-<bot>-<hash>). A server
that cannot be reached never traps a bot: moving the bot to another server, switching its computer, or deleting
it goes ahead, and the app says what may be left on that server and the command that removes it once the server
is back. Changing or clearing the default alias works the same way: the app lists the command that finds this
installation's computers left on that server. Only a name lookup or connection failure that SSH reports, or a
timeout, counts as not reached: a server that answers but refuses (a changed host key, a Docker error) keeps the
alias until it can be listed. Any alias from your
~/.ssh/config, host key already verified by hand, is all it takes. A new bot starts on the default server.
A server that pauses when idle
Some cloud boxes pause after a while without traffic and refuse SSH until they are resumed. On macOS and Linux
you can give the app a wake step: put an executable script named wake in the app's SSH folder
(~/.openmausbot/ssh/wake, or ssh/wake in your data directory). When a server cannot be reached, the app
runs it once with the alias as its only argument (wake my-vps), then tries the connection once more. Make the
script resume the box with your provider's command or API and return once the server accepts SSH again; it gets
up to two minutes. If it exits with an error, the app shows that error next to the SSH one. Without the file
nothing changes. Only someone who can write to the data directory can add it; nothing in the app sets it.
#!/bin/sh
# ~/.openmausbot/ssh/wake: $1 is the SSH alias the app could not reach.
my-provider resume "$1" && my-provider wait-ready "$1"
Host key first, by hand. Connect once manually before pointing OpenMausBot at the alias:
ssh my-vps true
That puts the host key in known_hosts on your terms. The app never auto-accepts a host key — an alias whose
host is unknown simply fails until you have done this once.
A machine on your Tailscale network
The server does not have to be a rented VPS. Any x86_64 or arm64 Linux machine that runs Docker and that you can reach over SSH works the same way: a home server, a spare desktop, or a computer on your Tailscale network. The bot still gets its own managed desktop container on that machine; it does not take over the machine's own screen.
On that machine: install Docker and Tailscale, sign in to Tailscale, and add the SSH user to the
dockergroup.On the computer running OpenMausBot: join the same tailnet and add an alias whose
HostNameis the machine's Tailscale name (its MagicDNS name or100.xaddress):Host home-box HostName home-box.your-tailnet.ts.net User deploy IdentityFile ~/.ssh/id_ed25519Check it by hand as in Troubleshooting:
ssh home-box true, thendocker -H ssh://home-box info.Enter
home-boxas the alias in Settings → API keys (or as one bot's own server), then choose Self-hosted VPS for the bot.
The same trust rules apply: the bot gets full control of what Docker can reach on that machine, so prefer one that holds nothing you would not hand to the agent. Tailscale does not close ports that are already open to the internet, so firewall the machine: its SSH and Docker ports should accept connections only from the tailnet.
Security
- No public ports. The managed container is created with no published ports, and OpenMausBot refuses to use a container that publishes any — the check runs before every attach, not just at creation. Live view reaches the container's private bridge address through SSH and is loopback-only on your computer.
- Firewall the VPS to SSH only, ideally from your IP. Nothing OpenMausBot does needs any other inbound port open, so anything else open is pure attack surface.
- Nothing sensitive is stored. The only thing OpenMausBot persists is the alias name itself
(
~/.openmausbot/config.json, plus a bot's own alias inbots.jsonwhen it has one); keys, passphrases, and agent state stay with SSH. Aliases are also kept out of the settings and bot records that paired phones and members of a shared workspace receive — they get configured-or-not, never the name. An SSH or Docker error that a bot reports in its conversation can still quote a server's name. - The container itself runs hardened: capabilities dropped, private network/IPC/cgroup namespaces, no host mounts or devices, and no automatic removal. Ownership, pinned-image and isolation checks still apply when reusing a container; a container that fails them is refused, not repaired.
Container lifecycle
Each bot owns one container on the VPS, named openmausbot-vps-<bot>-<hash> — stable across restarts and
independent of the bot's display name. It lives on the bot's server: the default alias, or the bot's own
when it has one.
New containers default to 4 GiB memory with no extra swap, 2 CPUs, 512 PIDs, 512 MiB shared memory and an
unless-stopped restart policy. These are creation defaults, not compatibility requirements. Existing
managed containers can keep customized resource and OOM settings, unlimited budgets, or other restart
policies, including the legacy no policy. OpenMausBot does not reset those settings or recreate a
container to enforce its defaults. Restart behavior follows the chosen Docker policy; for example,
always can wake a slept container after a Docker daemon restart.
Memory (2–128 GiB) and CPU cores (1–64) are set in Settings under Self-hosted VPS, for the default server and, separately, for each named server. The default server uses 4 GiB and 2 cores until you change them; a named server that leaves memory or cores empty uses the default server's.
A new container takes the limits at once. A stopped one takes them when it next starts. A running container keeps its limits until it stops; the next start applies the current ones, so recreating it is not needed. When you save a limit, OpenMausBot asks the VPS's Docker engine for its CPU count and memory over SSH and refuses cores or memory the machine does not have. A host that does not answer does not hold the save up.
- Provision (choosing Cloud for the bot, or the panel's button): builds the pinned Cua image on the VPS if needed, creates the container if missing, starts it if stopped, and waits until the desktop answers.
- Start only wakes an existing stopped container; it never creates one.
- Sleep stops the container. The VPS stops spending CPU on it; the filesystem stays put.
- Remove is yours, done by hand when a bot no longer needs the server:
docker -H ssh://my-vps rm -f <container>. OpenMausBot never deletes a container on its own.
What survives what: sleep/start preserves the container's filesystem; removal — including the recreate that follows a Cua image upgrade, since a container pinned to an old image is refused rather than reused — wipes it. Treat the container filesystem as disposable: anything a bot must keep should leave the VPS (pushed, uploaded, or pasted back into chat) before the container is removed.
A bot set to Auto is lifecycle-read-only by default. It attaches only when the container is already running and verified. If no local fallback exists, the turn still runs, so work that needs no screen (a teammate's write-up, a Chief's follow-up) is never stopped by a VPS it doesn't use, and the bot is told why the VPS is unavailable and what to do about it, so it says so instead of claiming screen work. A scheduled run fails and says why instead. Enable Start VPS automatically per bot to let Auto prepare or wake that bot's managed container; the switch is deliberately off by default.
Each turn checks the container when it starts, because the computer tools connect into the running container the moment the engine launches them. Turns that start together share one check instead of queueing one each.
Several turns at once
Each bot has one container, but the container is not the bottleneck — the desktop inside it is. Any number of the bot's threads (chats, tasks, routines) can run with the VPS mounted at the same time. The desktop goes to the first thread that calls a computer tool (a screenshot, a click, a command through the Cua driver) and stays with that turn until it ends; threads that never touch the computer tools are never held up. A thread that reaches for the screen while another holds it shows
Waiting for its turn on this computer — position in queue — bot is running thread. Starts automatically when the turns ahead of it finish.
and its computer call waits for the desktop, up to 45 seconds, and answers the moment it is free; a call that runs out tells the model the desktop is still taken and to keep waiting with another call rather than end its turn. A call that waited more than five seconds is not performed even then — an action started that late could outlast the engine's limit for one tool call and run twice when the model retries — so the model calls again, and that call acts at once: the desktop is its turn's by then. The chip settles as "Computer free — continuing" when the desktop lands, or "Stopped waiting for the computer" if the turn ends first. A long wait parks the turn at the ceiling (30 minutes by default), still naming the holder, and it resumes on its own when the computer is free. A call made while a person has taken control waits for them the same way; once they hand it back it is not performed (the screen may have moved), and the model takes a fresh screenshot. A hold older than the same ceiling is not waited for: the bot stops and says it is waiting for control back. Container lifecycle actions (create, start, stop) are still one at a time per container.
Troubleshooting
Normal screen refreshes should not abort new turns with “the VPS is being prepared.” Turn setup waits for a pending preview, and overlapping preparation requests share the same operation. Stop and Delete remain exclusive; they do not race a pending capture or silently recreate its container. If a Docker-over-SSH command times out, the app cleans up that command's Docker/SSH processes before releasing it. Retry is explicit: potentially mutating commands are never automatically replayed.
Work up the same path the app takes, cheapest signal first:
- The alias works by hand:
ssh my-vps truereturns silently. A password prompt means the key/agent is not set up; a host-key prompt means the first manual connect has not happened yet. - Docker over SSH reaches the daemon:
docker -H ssh://my-vps infoprints server details. A permission error means the SSH user is not in thedockergroup. - Provision: choose Cloud with the Self-hosted VPS backend in the bot's Computer panel. The first provision pulls and builds the Cua image on the VPS, which can take minutes; later ones are fast.
- Read the status states. The panel surfaces exactly what the server found, in check order: alias not configured → daemon unreachable → image missing → container missing / stopped → container unmanaged or unsafe (ports, mounts, hardening) → desktop not ready. Each message names the step to fix.