Local web interface
In the browser, Waibee Code gives you chats, a file and diff viewer, and a terminal for running commands. The agent and the web server run on your computer, and models are called through Waibee Router.
By default, the page opens only on this computer. To use it from a phone or another device, turn on network access separately.
Starting the server
Section titled “Starting the server”From the shell, start the server with waibee serve. It creates new sessions and opens saved ones from disk.
waibee serveThe command prints a link with a token. Open it to see your list of sessions. Closing the browser does not stop a session: the work goes on in the waibee serve process.
| Flag | What it does |
|---|---|
--port <number> | Port instead of 8787 |
--host 0.0.0.0 | Listen on the whole network from the start. Usually unnecessary: a button in the interface does the same |
--read-only | Read-only: every write is rejected, including the browser terminal |
--new-token | Issue a new link: the old one stops working |
--model <model> | Model for new sessions: an alias (sonnet) or a full ID. A saved session opens on its own model; change it with the model picker in that conversation |
A separately started waibee serve does not see chats already open in the terminal. To work on them from the browser, type /web in the TUI: it starts a server on the current sessions and prints a link. If port 8787 is taken, /web picks a free one.
The sessions in the browser are the same as in the terminal. The browser adds what a text screen lacks: a diff with comments on selected lines, a file tree next to the conversation, diagrams and tables in a side panel, and sign-in from a phone by link or QR code.
What’s inside
Section titled “What’s inside”- Session list. Running sessions and recent saved ones, with their folder and time, most recently active first. Search looks for words in your messages and the agent’s replies across every session on disk, so it finds older ones too. Star the sessions you need and delete the ones you don’t.
- Session folder. Choosing a folder moves an empty chat. If the conversation has already started, the folder opens in a new session and the earlier history stays where it was.
- Conversation. A resumed session keeps its history, tool call durations, and compaction marks. The agent’s reply streams in as it is generated. Tool calls appear as cards: file edits show a colored diff, commands show their output, and long output has an expand button. Permission requests come to the page, and you can answer them there with the same four answers as in the terminal, including a refusal with an explanation; see Approvals. A card does not steal your typing: while the input field has text, focus stays there. The keys for cards and questions are under Keys. Below the input field you can see how full the context window is, and the Summarise now button requests compaction, like
/compact; a short history stays as it is. - While the agent works. A new message joins a queue above the input field and goes to the agent at its next step. The “Send now” button stops the model’s current reply and sends the queued text right away: what was already written stays in the conversation, and long-running commands keep going in the background. Commands and messages with images wait for the next turn and keep their order. Closing a session stops it without sending the queue. For what in the queue survives a
waibee serverestart, see Recovery after a restart. - Commands. Of the built-in commands, the browser supports
/modeland/effort(they open the model and reasoning level pickers),/compact,/bug,/again,/memory add, and/reload, plus your own commands and skills. The other built-in commands are terminal-only; see the Commands reference. - Model and effort. The model sheet has a slider from Faster to Smarter, like
/effortin the terminal. A choice there is saved for the model. See Reasoning level. - Go back to a message. The fork button on a message branches the conversation before that message, like
/rewind. The fork opens with the message in the input to edit. Files are not rolled back, and the old conversation stays in the session list; see Session history. - Data protection. Under a message, the chat shows whether your organisation’s DLP policy sent data as written, masked it, or blocked it, with the kinds of data and counts. The values are also marked in the message text, with the policy’s reaction in a tooltip. The exact notices are in Data protection.
- Stopped replies. If the provider’s filter stops a reply before anything was shown, Waibee Code retries once. Otherwise, the text shown so far stays and tool calls in that reply do not run. The note says “The provider’s filter stopped this reply.” and offers Try again and Switch model. A
/goaldoes not continue after it. - Changed files. After a turn that changed files with
EditorWrite, their names appear under the turn’s receipt and open the file when clicked. The list shows the first five names and a count of the rest. Changes made by shell commands are not listed. - Returned messages. If sending fails, the text and images come back to the input field. If you cancel a command that has not been answered yet, the
/name argumentsline you typed comes back. - Attachments. You can attach text files and images up to 20 MiB, if the model accepts them. For text larger than 256 KiB, only the beginning is attached, with a truncation mark. Unsupported files and files that could not be read are skipped with a notice.
- Goal. The target button next to the input field pins a condition the agent works toward on its own, shows the pinned condition, and removes it. If a condition fits the work at hand, the agent proposes one itself, and you accept it with one click. See Goal mode for details.
- Files and terminal. The project tree, a file viewer and editor, and a shell in the session folder. Open tabs keep working while another tab is in front: the terminal stays alive and edits are not lost.
- Agent panel. The column on the right: pages the agent writes itself (plans, tables, diagrams) and running subagents with their progress. Open a subagent to read its conversation and send it a follow-up. Continued work is marked as addressed to the same agent, and you can continue a finished subagent even after
waibee serverestarts. An empty column collapses. - Extensions. Everything this folder picked up: MCP servers, plugins, skills, commands, agent definitions, hooks, and instruction files. You can turn MCP servers, plugins, skills, and hooks on and off in place. You can also create a skill, command, or agent here, and an MCP server gets a connection check before it is saved; see MCP.
- Security. The sandbox profile, the folders the agent can write to, allowed and blocked domains, and protected paths. You can change the profile and the domain lists here, and the change is global, for the whole machine. Below is a log of what was refused and what failed, with a time window, a text search, and a “refused or failed / everything” toggle.
- Other pages. Settings and themes, interface language, agent memory, the API key, diagnostics (
waibee doctoras a page), background tasks with the option to stop any of them, and a list of what is new in the latest version.
The Context section of the Settings page offers context.compact_at, context.idle_compact, and context.prompt_cache. They are also in /settings and waibee config. See Context settings for the allowed values, and Context window for compaction while idle and cache duration.
Reviewing changes
Section titled “Reviewing changes”Open the Review tab and pick a file. Changed files are listed with line counts; removed lines are marked red and added lines green. To ask the agent to rework a fragment, select lines in the line number column and send a comment: it goes to the agent together with a reference to those lines. You can revert unwanted changes for a whole file or for a single diff hunk.
From a phone or tablet
Section titled “From a phone or tablet”By default, the server answers only on this machine. The page runs commands in your name, so network access is a separate switch.
The agent keeps working while you are away from your desk. From your phone you can see what it is doing, answer a permission request, or steer it in the right direction. This is useful when:
- You stepped away from the computer. The agent runs on your work machine, the phone is on the same Wi-Fi network, and you don’t need a tunnel.
- The agent lives on a machine that never sleeps. A home server, a Mac mini, or a Raspberry Pi on a 64-bit OS:
aarch64builds exist for both Linux and macOS. - Your laptop stayed at home. A long task keeps running where you started it, and you follow it on the go through a tunnel. The machine must not go to sleep: a closed laptop does not continue the work.
Same Wi-Fi network. Click Open on your phone, then Open on this network. The server starts answering on its network address too, and a QR code appears on the page: point your phone’s camera at it. Nothing needs a restart. If the machine has several addresses, pick the right one in the list under the code: on a laptop with a VPN, the top address is not always the one the phone can see.
Another network. You need a tunnel program: it connects from inside the machine to the outside and gives you an address that opens from anywhere. The Open a public address button (Open an address for your own devices for Tailscale) uses the first installed program from the table that manages to open an address. You can pick a different one next to the button.
| Program | Install (macOS) | Who can open the link | Replies |
|---|---|---|---|
tailscale | brew install tailscale && sudo tailscale up | only your own devices signed in to your tailnet | streamed |
ngrok | brew install ngrok && ngrok config add-authtoken <token> | anyone with the link | streamed |
cloudflared | brew install cloudflared | anyone with the link | polled, with a delay |
cloudflared needs no account, but it does not pass the event stream through, so the agent’s replies arrive with a delay. On ngrok’s free plan, the first visit shows an ngrok page: click Visit Site on it once.
If none of the programs is installed, the page shows the install command for your system (winget on Windows) and a link to the program’s site. Installed one without closing the page? Click Check again: no restart needed. Close the public address with its button; it does not survive a server stop.
As an app. You can install the page on your phone from the browser menu (“Add to Home Screen”): it opens without the address bar and keeps the session.
Watch only. The link comes in a second variant that shows the conversation but rejects every write, including sending messages and using the terminal. Use it to show your work to a colleague without handing over control. The “can act / watch only” toggle is above the QR code. A page opened with this link says that access is view-only and does not offer actions that would be rejected anyway.
Access and security
Section titled “Access and security”- Token. It is in the link the first time you open it. After that it lives in a cookie and does not stay in the address bar. Without the token the page does not open. After several wrong attempts, the address is temporarily blocked.
- Who is connected. The same window shows the addresses of recent connections and their permissions. Through a tunnel, you see the tunnel program’s address, not each device’s.
- The same permissions, visible and changeable. The browser gives the agent nothing beyond what the terminal does: the same approval mode and the same sandbox apply. But the mode and the sandbox profile can be switched from the page, so anyone who opened the full link can loosen both approvals and the sandbox.
- One link for everyone. You cannot revoke access for a single device. Stopping the server does not cancel the link: the token is stored in
~/.waibee/state/serve.token(%APPDATA%\waibee\state\serve.tokenon Windows) and survives restarts. If the link ended up in the wrong hands, restart with--new-token: a new link is issued and the old one stops opening the page. The watch-only link changes along with it. - Public address. While it is open, anyone with the link can open the page (except with Tailscale). Close it when you are done.
On Windows and Linux, press shortcuts that use Cmd with Ctrl instead; on macOS both work. Letter keys also work in the Russian keyboard layout.
| Keys | Action |
|---|---|
Cmd+K | Palette: sessions, commands, settings, and search through past messages |
Cmd+P | Open a project file by name |
Cmd+S | Save the file in the editor |
Cmd+/ | Keyboard shortcuts |
Cmd+1 … Cmd+9 | Open a session by its position in the list |
g, then h, e, m, s, k, or , | Home, extensions, memory, security, API key, or settings. Does not work while focus is in the input field |
Input field:
| Keys | Action |
|---|---|
Enter | Send |
Shift+Enter | New line |
/, @ | Command and file suggestions; Tab or Enter inserts the selected one, ↑ ↓ move through the list |
↑ in an empty field | Bring the last queued message back into the field; with no queue, scroll through earlier prompts |
↑ on the first line while a permission request is waiting | Go to the request |
! at the start of a message while the agent works | Send right away: calls that have not started yet are postponed, and the running command moves to the background and keeps going |
Esc | The first that applies: close suggestions, send the answers already chosen for a question, reject a permission request, stop the turn. In a subagent’s window, stops only that subagent |
Permission request, when focus is on the card:
| Keys | Action |
|---|---|
y | Allow once |
Y | Allow for the rest of this session |
p | Allow in this project from now on |
n, Esc | Reject this call; the turn continues |
Tab | Reject with an explanation: Enter sends the refusal with your text |
A risky command offers only y and n. Right after a card appears, the answer keys other than Esc do nothing for a moment, so a stray keypress does not answer for you.
Agent question:
| Keys | Action |
|---|---|
1 … 9 | Choose an option; the number after the last option opens a custom answer |
↑ ↓ | Move through the options |
| Space | Check an option, if multiple choice is allowed |
Enter | Choose the option under the cursor and move on |
Tab, Shift+Tab | Next or previous question |
Esc | Send what has been chosen so far; the turn continues |
Files and changes:
| Keys | Action |
|---|---|
F2 | Rename a file or folder in the tree, or a session in the list |
Delete, Backspace | Delete a file or folder in the tree, after confirmation |
↑ ↓ in a diff | Move between lines; with Shift, extend the selection |
Space, Enter in a diff | Select a line to comment on |
Next steps
Section titled “Next steps”- Features: agent tools and the terminal interface.
- Permissions: approval modes and the sandbox.
- Goal mode: working until a condition is met.
- IDEs (ACP): the same agent in your editor.