Self-hosting MausBot
Run the harness and desktop app on infrastructure you control.
MausBot 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) instead.
On a server, with one command
On a fresh Ubuntu 22.04 or 24.04 server (x86-64) with a domain name pointing at it, the installer checks the server, installs MausBot with Docker under /opt/openmausbot and ends with HTTPS on your domain:
curl -fsSL https://raw.githubusercontent.com/milind-soni/OpenMausBot/main/deploy/install.sh | sudo sh -s -- --domain maus.example.comAdd --check to only check the server; it changes nothing. Run the command again to update or repair, and --uninstall to stop the server while keeping your data. Deploy on a VPS lists every check, the files it writes and how the first admin signs in.
On your own computer, or by hand
- Run MausBot on your personal macOS, Windows, or Ubuntu computer.
- Install and authenticate the agent CLIs you want to use separately; the npm OpenMausBot package does not include them. Use the same operating-system account for setup and the running server.
- Add optional third-party keys only for the services you need.
- Keep the harness on loopback.
- Use it from other devices by pairing them.
openmausbot serveprints one pairing link for the way in you choose; paste it into the desktop app under + → Connect to another computer, open it in a browser, or scan its QR with a phone.
| You have | Run |
|---|---|
| HTTPS in front already (cloudflared, Caddy, nginx) | npx openmausbot serve --public-url https://maus.example.com |
| A domain name, ports 80 and 443 open | npx openmausbot serve --domain maus.example.com |
| Tailscale | npx openmausbot serve --tailscale |
| Only this network | npx openmausbot serve --lan |
| Nothing at all | npx openmausbot account login, then npx openmausbot serve --tunnel |
A code works once, for 10 minutes. npx openmausbot pair makes another, and npx openmausbot devices lists the paired devices. See Deploy on a VPS for a server from scratch, and Networking.
For a Linux service, the VPS guide covers account setup, browser installation, and unattended startup. Installing browser libraries as administrator still requires installing the browser in the service user's home. The service runs an installed, chosen release; upgrading it is an explicit step.
Stop the server before a filesystem backup. Application state under .openmausbot is only part of a complete backup: preserve the service user's engine credentials, browser state, and external workspaces too. See Data and backups.
What is still third party
Self-hosting MausBot does not self-host every service it talks to. A standalone server, or its web UI, contacts these:
- Agent providers authenticate and bill through their own CLI or API.
- Composio owns connected-app OAuth grants. MausBot's connected-apps service serves only the desktop app and MausBot's Clouds; a server you run yourself needs your own Composio project key, in Settings → AI → Other services.
- The MausBot account service (
accounts.openmausbot.com) sends emailed sign-in codes unless you set your own mail server (OMB_SIGNIN_SMTP_URL), reserves theserve --tunneladdress, and signs a server in to MausBot Relay for phones (OMB_PHONE_RELAY). - Cloudflare carries path A's traffic:
serve --tunnelis a Cloudflare tunnel. - GitHub answers update checks (the release list and the stable channel's file), and by default serves the model list, refreshed about hourly (
OMB_DISABLE_MODEL_MANIFEST_FETCH=1turns it off), and the announcements feed (OMB_DISABLE_ANNOUNCEMENTS=1). - PostHog receives usage analytics from the web UI, on unless each person turns it off under Settings → General → Privacy (shown in Advanced mode). Analytics lists what is sent.
- The npm registry serves engine installs and a Codex version check; on an npm install, Google's
storage.googleapis.comserves the bots' Chrome for Testing. - MausBot's own page publishing and sharing to the community go through MausBot from a Cloud or the desktop app only; a standalone server does not offer them.
- Boat owns managed cloud computers.
- ElevenLabs or Fish Audio synthesizes speech when its hosted voice engine is enabled. On Windows and Linux, Fish Audio also turns what you say into text for Take turns calls and dictation.
Local chat through a locally installed agent CLI needs none of the optional ones, but the model list, announcements and analytics are contacted by default until switched off as above.
Run headless during development
pnpm install --frozen-lockfile
pnpm dev:serverThe main harness listens on 127.0.0.1:8799 by default. Keep it private; it owns agent processes, approvals, computers, and workspace configuration.