mBm TUI (mbm2)
Menu

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
  1. The browser asks for a user name and password: mbm and the password printed above (or your MBM_SERVER_USERNAME and MBM_SERVER_PASSWORD).
  2. Press New session, type explain the layout of this project and press Enter (Shift+Enter is a new line).
  3. 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.
  4. 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

  1. Pick the safe agent and ask write hello into note.txt with a shell command.
  2. A card reads Permission: bash with the command below it.
  3. Press Allow once. The bash call's badge turns completed and the reply continues.

Security

Limits

Published from revision f88fc66f 2026-11-30