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.
- Run
mbm2 login. mbm2 opens the page in your browser where it can; otherwise open it on any device. - Sign in to tui.mbm.mn, type the code, check where it was asked from and press Approve.
- The computer is listed under Devices at
tui.mbm.mn/account/deviceswith 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:
- 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). - 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. - Run
/rc machineon the computer. Until the code is typed,/rc machineshows the same page, its QR code and the code instead oftui.mbm.mn/code. A code lasts a day;mbm2 license syncgives 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:
- In mbm2 on the machine, run
/rc machineonce. The dialog showshttps://tui.mbm.mn/codeand its QR code. - Scan the code, or open
tui.mbm.mn/codein any browser, on any device. - 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
-
In mbm2, open the session you are working on and type
/rc. -
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. -
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.
-
Type
run the tests and fix what failsand 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)). Withask_timeoutset, the card counts down. -
Back at the computer, type
/rcto end the link.
Example: The Work Laptop In mbm code
-
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. -
On the phone, open
tui.mbm.mn/codeand sign in. mbm code listswork-laptopunder Your machines, online. -
Tap it: its sessions are listed, newest first,
busybeside the one that is working. Tap one to open it; All sessions in its sidebar goes back. -
To start fresh, choose
/home/me/shopunder New session in and press Start, then type the prompt. -
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. -
To stop, type
/rc offon 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
- Only the tui.mbm.mn account the computer belongs to can open the pages: the account that approved its
mbm2 login(a computer linked by licence: the licence owner, or on a team licence the member who claimed it); another account seesThis session belongs to another tui.mbm.mn account.orThis machine belongs to another tui.mbm.mn account. - Each computer's sign-in is its own: an hourly access token and a refresh token in
console.json, stored by tui.mbm.mn only as hashes. Revoke attui.mbm.mn/account/devices, ormbm2 logouton the computer, ends it at once. A computer linked by licence has its own remote credential incredentials.json; removing it from the licence, or its seat being freed, ends that one; a member removed from a team licence no longer sees their computers. - Type a claim code only if mbm2 on your own computer shows it: it adds that computer to your mbm code.
- tui.mbm.mn carries only the routes in the table above. mbm2 checks every request itself too: a link carries only its session's routes and events; a machine only the listed routes, and only session events leave your computer. A prompt arrives as its text only.
- A link and a machine each have their own secret, kept on your computer; tui.mbm.mn stores only its hash. Stopping a link revokes it at once; turning a machine off ends its connection at once.
remote_controlis read only from your globalmbm2.json, never from a project's.mbm/mbm2.json, so a repository you open cannot turn your machine on.- Anyone holding your signed-in browser can use a live link, and every session of a machine that is on: stop
them with
/rcand/rc off, or sign out of tui.mbm.mn on a shared browser.
Limits
- Needs a signed-in computer (
mbm2 login) and an active paid or trial licence on the account. Without one,/rcsaysmbm code needs an active licence — renew at tui.mbm.mn/pricing. - One link per session;
/rcworks in a session, not on the home screen./rc machineworks anywhere. - One mbm2 per machine holds the machine: when a second mbm2 runs
/rc machineor starts withremote_control: "always", the first showsanother mbm2 on this machine took over remote control. - If mbm2 is closed or loses its connection, a link's page waits; after a minute calls answer
the terminal is not connected. A machine shows offline and calls answerthis machine is offline. - After Turn off in mbm code, the next start does not turn the machine on again; run
/rc machine. - The pages send text prompts; attachments and slash commands stay in mbm2.
Published from revision f88fc66f 2026-11-30