Web Client
mbm2 web starts the mBm engine as a server and opens its web client in your browser. The page is
part of the engine: nothing is installed, and it talks to the same engine the terminal interface
uses.
| You want | Run or do | What happens |
|---|---|---|
| Chat in a browser | mbm2 web |
The engine starts on port 8027 (any free port if 8027 is taken) and the browser opens http://127.0.0.1:8027/ |
| A port of your choice | mbm2 web --port 9000 |
It listens on 9000, or exits 1 if 9000 is taken |
| The page on your phone or another computer | mbm2 web --hostname 0.0.0.0 |
It listens on every address, prints a password made up for this start and a Network access: URL per network address with the user name and that password in it; with MBM_SERVER_PASSWORD=<secret> it uses yours |
| Find it on the local network by name | mbm2 web --mdns |
It is advertised as mbm.local (or --mdns-domain <name>) |
| Use the terminal interface's engine | mbm2 web while mbm2 is open in the same account |
It opens the open interface's engine instead of starting another, and exits; the page stays as long as that mbm2 runs |
| Stop it | Ctrl-C | The engine stops |
| The same options every time | "server": {"port": 9000, "hostname": "0.0.0.0", "mdns": true} in the global ~/.config/mbm/mbm.json |
Each is the default a flag still beats (Server defaults); with server.port set a taken port exits 1 instead of moving |
Example: First Prompt In The Browser
$ mbm2 web
! Using default server password: mbmTUI123
Change password: MBM_SERVER_PASSWORD=<your-password> mbm2 web
Change username: MBM_SERVER_USERNAME=<name> mbm2 web (default: mbm)
____
_ __ ___ | __ ) _ __ ___
| '_ ` _ \| _ \| '_ ` _ \
| | | | | | |_) | | | | | |
|_| |_| |_|____/|_| |_| |_|
Web interface: http://127.0.0.1:8027/
Tips: mbm2 web --port 9000 · --hostname 0.0.0.0
Manual: https://tui.mbm.mn/docs/guides/web
- The browser asks for a user name and password:
mbmand the password printed above (or yourMBM_SERVER_USERNAMEandMBM_SERVER_PASSWORD). - Press New session, type
explain the layout of this projectand press Enter (Shift+Enter is a new line). - The reply streams in. The model's thinking is folded under Thinking; each tool call shows its
name, a status badge (
running,completed,error), and folds its input, output and, for an edit, the diff. - While the agent works, Abort stops the turn.
The Page
| Part | What it does |
|---|---|
| Session list | Every session of the engine, the most recently updated first; click one to open its transcript |
| Agent and model pickers | The primary agents and the configured providers' models; "Default model" uses the configured default |
| Permission card | When the agent asks to run a command or edit a file, the request, its patterns and its diff, with Allow once, Allow always, Reject (the agent carries on without that call) and Reject & stop (the turn ends); with ask_timeout it counts down (rejects in 42s), and an ask a mbm2 send caused names its sender; Allow always then asks This session, This team (workers of ) in a lead's team, This project (permanent), This agent (permanent) when the asking agent's own rule asks, or Cancel, as the terminal does (Permissions) |
| Question card | When the agent asks you something, its options (one or several) and a box for your own answer; Answer or Dismiss |
| Changes | The files the session changed, with their added and removed line counts and the patch |
| Theme | System, light or dark; the browser remembers your choice |
Example: Answer A Permission In The Page
- Pick the
safeagent and askwrite hello into note.txt with a shell command. - A card reads
Permission: bashwith the command below it. - Press Allow once. The
bashcall's badge turnscompletedand the reply continues.
Security
- Every page and request needs the server's user name and password (Basic authentication). Without
MBM_SERVER_PASSWORDthe password is the defaultmbmTUI123only on127.0.0.1. With--hostnameset to another address, or with--mdns, mbm2 makes up a random password at each start, prints it once, and puts it in the URLs it prints and opens (http://mbm:<password>@localhost:8027), so the browser signs in without asking. Anyone who has that URL can use the engine: share it only with devices you trust. v1 usedmbmTUI123here too. - The engine accepts the page's own requests and refuses requests that another website's page makes from your browser.
- Model output is shown as text: markup the model writes is displayed, never run.
Limits
- Windows still runs v1's
mbm web. - The page sends text prompts; attaching files, slash commands and sharing are in the terminal interface.
- Exit codes: 0 after Ctrl-C or after opening an open interface's engine; 1 for a bad option, a
taken
--port, or an engine that failed to start or stopped.
Published from revision f88fc66f 2026-11-30