mBm TUI (mbm2)
Menu

Remote Control

/rc makes the session open in mbm2 reachable from anywhere through tui.mbm.mn. /rc machine does it for the whole machine, in mbm code. mbm2 connects out to tui.mbm.mn, so nothing is opened on your computer or your network, and only your own tui.mbm.mn account can open the pages.

Sign In This Computer

Each computer signs in once, like Claude Code and Codex do: mbm2 login shows a code, you approve it in the browser, and the computer keeps its own token. Your account's licence is what lets it use mbm code.

$ mbm2 login
To sign this computer in, open https://tui.mbm.mn/account/device
and enter the code: BCDF-GHJK
Waiting for the approval…
Signed in as [email protected]. /rc and mbm code use this device's sign-in.
  1. Run mbm2 login. mbm2 opens the page in your browser where it can; otherwise open it on any device.
  2. Sign in to tui.mbm.mn, type the code, check where it was asked from and press Approve.
  3. The computer is listed under Devices at tui.mbm.mn/account/devices with its name (the host name; Rename changes it), OS, mbm2 version, and when it was first and last seen. Revoke signs that one computer out and ends its mbm code connection at once; nothing else changes.

No need to run it first: on a computer that is not signed in, /rc and /rc machine show the same page, the code and a QR code in their dialog, and the status row says remote: sign in BCDF-GHJK until you approve. Then the link or machine opens by itself. A computer with remote_control: "always" shows the code on the status row only. A code lasts ten minutes.

You have Remote control
A signed-in computer, and your account holds an active paid licence (pro, business, team, enterprise, custom, personal) or a trial, yours or a team licence you are a member of Works
A computer linked by its licence (mbm2 license apply before sign-in existed) Keeps working. mbm2 offers Link this device once (a toast) and in the /rc dialogs (press l); tui.mbm.mn/account/devices lists it as «linked by licence — link this device». After mbm2 login the machine moves to the sign-in and keeps its name
No licence, a free licence, or one that expired or was revoked mbm2 says mbm code needs an active licence — renew at tui.mbm.mn/pricing; the pages say the same
Only an mBm API key (mbm2 auth mbm, MBM_API_KEY) API keys are for CI and headless runs and never link a new computer to mbm code: /rc asks you to sign in. A computer already in mbm code by its key keeps working, is offered Link this device, and is listed as «linked by API key — link this device»

If the licence expires while a machine is on, the machine goes offline within a minute: mbm2 shows Remote control: mbm code needs an active licence — renew at tui.mbm.mn/pricing (the licence has expired) and mbm code shows offline, last seen … — mbm code needs an active licence — renew at tui.mbm.mn/pricing (the licence has expired). After you renew, run /rc machine again (or restart mbm2).

Team Licences

On a team licence (one with members), every computer belongs to the person who uses it. mbm code lists your own computers only: a member never sees another member's, and the owner sees only the owner's.

With mbm2 login each member signs in their own computer with their own account, and nothing more is needed: the membership entitles it. The steps below are for a computer linked by its licence only:

  1. Each member runs mbm2 license apply <team key> on their computer. It prints one more line: mbm code: sign in at tui.mbm.mn/account/machine and type BCDF-GHJK (for a day).
  2. On any device, open tui.mbm.mn/account/machine, signed in with your own account (the owner's, or the email you were invited with), type the code, check the computer's name and press Add to mbm code.
  3. Run /rc machine on the computer. Until the code is typed, /rc machine shows the same page, its QR code and the code instead of tui.mbm.mn/code. A code lasts a day; mbm2 license sync gives a new one.

A licence without members needs none of this: its computers are the owner's.

mbm code

mbm code is your machines and their sessions on the web, like claude.ai/code for Claude Code. It lives at https://tui.mbm.mn/code.

Address What it shows
tui.mbm.mn/code Your machines: every machine where /rc machine was run with your account, with a dot, its name, and online or offline, last seen …; Rename and Turn off beside each
tui.mbm.mn/code/<machine> Needs you (when the machine's mbm2 has it): everything that waits for you on that machine — permissions, questions and escalations of any session with their buttons (Allow once, Allow always, Deny with a reason; a question's options, Answer… and Dismiss), and the team's reviews, blocked tasks, budgets, unassigned work and failing syncs with the command that settles them (Permissions); Notify me shows a browser notification for a new item while the page is open in a background tab. Older mbm2: Waiting for an answer: every permission request and question of the machine's sessions that no one has answered yet, with its session, who sent the message that caused it (from zbackup/cloud for a mbm2 send) and, with ask_timeout, rejects in 42s; and each auto-mode escalation that waits for a person, with Allow, Always and Deny (a question: its options and Dismiss), answered from the page (Permissions); then the machine's sessions, newest first, with their directory, last update and busy or idle; New session in a directory and Start
tui.mbm.mn/code/<machine>/<session> The session itself: its transcript, replies as they stream, the prompt, permission requests and questions; All sessions in the sidebar goes back to the machine

To open it:

  1. In mbm2 on the machine, run /rc machine once. The dialog shows https://tui.mbm.mn/code and its QR code.
  2. Scan the code, or open tui.mbm.mn/code in any browser, on any device.
  3. Sign in with the tui.mbm.mn account the machine signed in with (mbm2 login; a machine linked by licence: the licence owner's). mbm code opens on Your machines.

Addresses from before mbm code had its name, tui.mbm.mn/remote and tui.mbm.mn/remote/<machine>…, open the same page under /code. Links from /rc, tui.mbm.mn/remote/rc_…, are not part of mbm code and keep their address.

What You Can Do

You want Run or do What happens
Control this session from your phone /rc (or /remote-control) in a session A dialog shows https://tui.mbm.mn/remote/rc_… and its QR code; the status row says remote
Reach every session of this machine in mbm code, now and at every start /rc machine A dialog shows https://tui.mbm.mn/code and its QR code; remote_control: "always" is saved in your global mbm2.json; the status row says remote
Open a link Scan the code, or open the link in any browser Sign in to your tui.mbm.mn account if asked; the page shows the session and streams its replies
Pick a machine and a session Open tui.mbm.mn/code Your machines, online or offline with when they were last seen; a machine's sessions with their directory, last update and busy or idle
Start a new session there On a machine's page choose a directory under New session in and press Start The session starts in mbm2 on that machine, in that directory, and opens
Prompt from the page Type and press Enter The prompt runs in mbm2; mbm2 shows From remote control with its first line
Stop one session's link /rc again, or quit mbm2 The link is revoked at once; the page says remote control ended
Turn the machine off /rc off in mbm2, or Turn off in mbm code The machine leaves mbm code and the setting is removed; /rc off also ends the open session's link
Rename a machine Rename in mbm code The new name is kept; mbm2 uses the host name for a new machine
Know how long a link lasts The dialog's Ends at HH:MM A link lasts 8 hours, then ends by itself; a machine stays on until you turn it off

Example: Continue From The Phone

  1. In mbm2, open the session you are working on and type /rc.

  2. The dialog reads:

    Remote control                                         esc
    
      Open this link signed in to your tui.mbm.mn account:
      https://tui.mbm.mn/remote/rc_3f9a…
    
              ▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄▄▄▄▄▄
              █ ▄▄▄ █ ▀█▄ █ ▄▄▄ █
              …
    
      Ends at 18:30. Run /rc again to stop.
    
  3. Scan the code with the phone's camera and open the link. Sign in with the tui.mbm.mn account this computer signed in with.

  4. Type run the tests and fix what fails and press Enter. The reply streams on the phone and in mbm2; a permission request shows Allow once, Allow always, Reject (the agent carries on without that call) and Reject & stop (the turn ends) on the page (Allow always then asks This session, This project (permanent) or, when the agent's own rule asks, This agent (permanent)). With ask_timeout set, the card counts down.

  5. Back at the computer, type /rc to end the link.

Example: The Work Laptop In mbm code

  1. On the laptop, in mbm2, type /rc machine. The dialog reads:

    Remote control                                         esc
    
      Every session of this machine (work-laptop) is in mbm code,
      signed in to your tui.mbm.mn account:
      https://tui.mbm.mn/code
      …
      On at every start of mbm2. Run /rc off to turn it off.
    
  2. On the phone, open tui.mbm.mn/code and sign in. mbm code lists work-laptop under Your machines, online.

  3. Tap it: its sessions are listed, newest first, busy beside the one that is working. Tap one to open it; All sessions in its sidebar goes back.

  4. To start fresh, choose /home/me/shop under New session in and press Start, then type the prompt.

  5. When the laptop's mbm2 is closed, the machine shows offline, last seen … and its sessions cannot be reached; nothing you send waits for it. The next mbm2 start turns it on again.

  6. To stop, type /rc off on the laptop, or press Turn off beside it in mbm code.

What The Pages Can Do

Can Cannot
Read a session's transcript and watch replies stream Change the agent or the model (mbm2's choice is used)
Send a text prompt, abort the running turn Send files or attachments, or run slash commands
Answer the session's permission requests and questions Open files, run shell commands, change settings, or reach any other route of the engine
In mbm code: list the machine's sessions and their state, and open any of them Delete or rename a session, or see a machine that is not turned on
In mbm code: start a session in a directory where the machine already has sessions, or where mbm2 runs Start a session in any other directory

Security

Limits

Published from revision f88fc66f 2026-11-30