Skip to content

Web Mode

rafageist edited this page Dec 5, 2026 · 1 revision

Web Mode

Turbodoo can run in a web browser on your machine: the same interface, menus and keys, drawn by a terminal in the page. It is TurboFrame's web mode.

turbodoo --web ~/src/my-addons                         # serves on 127.0.0.1:8000
turbodoo --web 127.0.0.1:9090 --res 120x40 ~/src/my-addons

Turbodoo prints an address with a token, such as http://127.0.0.1:8000/?token=.... Open it in your browser. Ctrl+C in the terminal stops the server.

Options

Option Meaning
--web [HOST:]PORT where to serve: 127.0.0.1:8000 by default, :9090, localhost:9090 or [::1]:9090. Only this machine's addresses are served.
--res COLSxROWS the screen's size in characters, such as 120x40, whatever the window's size (the page scales it)
--res auto the screen follows the browser window (the default)

Every other option of the interface works as usual (--python, --odoo, --addons, --workspace, --palette...). Turbodoo checks them before it serves, so a mistake is reported once, in the terminal. --web serves the interface only: it does not go with addons, models or the other commands.

Tabs and sessions

  • Each tab is its own Turbodoo, with its own windows, language server and debugger. A second tab of the same browser gets in without the token. At most 4 tabs at once.
  • Alt+X ends that tab's Turbodoo (asking about unsaved changes, as always), and the page says the session ended.
  • Closing the tab ends its Turbodoo: the page asks first. It quits as it would on Alt+X, and if it does not quit within 5 seconds it is stopped.
  • Ctrl+C on the server ends every session and every program they started (language servers, the program being debugged).
  • Reloading the page (or a new tab) starts a new Turbodoo; the old one ends.

Keys the browser keeps

Most keys reach Turbodoo, F5 (Zoom) among them. A few the browser never gives to a page:

Browser key In Turbodoo use
Ctrl+W (close the tab) Alt+F3 to close a window
Ctrl+N (new window) Ctrl+Space or Edit > Complete

Clipboard

Ctrl+C, Ctrl+X and Ctrl+V in Turbodoo use your system's clipboard. The browser may ask once for permission to read it.

Security

  • Only addresses of this machine are served (127.0.0.1, localhost, ::1). Serving to a network is not supported.
  • The address works once, within 10 minutes. The browser that opened it then stays in for 12 hours through a cookie.
  • When the cookie expires, new tabs and reloads are refused, but tabs already open keep running. Restarting the server gives a new address and ends every session.
  • Anyone who can use your account on this machine can reach a loopback address. Treat the address like a password and stop the server when you are done.

Installed program and binary

Both the turbodoo that pip or uv installs and the standalone binary serve the web mode with nothing else to install. As in the terminal, the binary finds basedpyright where you installed it (see Installation).

Clone this wiki locally