Web client
rove --web serves Rove in a browser. It runs the same bridge the iOS and
Android apps pair with (IOS.md), and the page is one more client of
it: same daemon, same tasks, same terminal sessions as the TUI.
rove --web # 127.0.0.1:7878 only
rove --web --port 7900 # another portIt prints two links and keeps running until you stop it:
open: http://127.0.0.1:7878/#token=…
pair: ws://127.0.0.1:7878/?token=…Open the first in a browser. The second is the phone pairing URL. A phone
already paired with rove-bridge keeps working: the two share one token.
What it does today
- The Tasks rail: projects, tasks and their tabs, with the TUI's status marks
(
?waiting on you,!needs you,●unseen turn,○quiet, a spinner while working) and the+N/−N/↑N/ PR marks. A task row is named as in the TUI: by the title its engine gave the conversation, else the stored title. The bridge computes that name (TaskRow.label) and updates it within a few seconds of the engine retitling, with the task closed; sort by name and search read it too. The web is bundled with its bridge, so it readslabelwith no fallback. - Click a task or tab to open its terminal session, and type into it. That includes answering an engine's prompts.
- Right-click a project, task or tab for the same menu the TUI has: new conversation, close tab, rename, rename branch, pin, set status, change engine, copy the task ID, branch or path, land, delete.
- Drag a project header up or down among projects, or a task among its project's tasks (pinned and unpinned tasks stay in their own groups). The other rows slide aside to show where it lands. The order is the daemon's, so the TUI and phones follow. Only in the default sort, outside a search.
+ New taskat the bottom of the rail, and+in the tab strip for a new conversation. The first message is optional, as in the TUI's picker: without one you get a plain engine (or shell) tab. A fork to new tasks needs one.- Mods: while a plugin's
[mod]has a pane open, the rail lists Mods. The page draws the same panes as the TUI's Mods page, and a button pressed here updates both (PLUGIN-AUTHORING.md). - A plugin's input dialog (
rove api prompt) opens here too; the first answer from the web or a TUI wins. - On a touch screen an engine tab has a message field under its terminal,
above the key row: type, dictate or paste there (images and PDFs too, or
pick them with the paperclip) and Send pastes and submits the whole message
through the engine's own composer (
tab.send, asrove api send). While the agent is working, the message waits for that turn to end (send --queue) instead of landing in it: a "queued" chip above the field shows it, and its × takes it back. A draft is kept per tab until the engine takes it or it is queued. Another machine's tasks have none: they are read-only here. - New session takes images and PDFs (paperclip, paste or drop) for its first
message.
/?prompt=<text>&repo=<path>opens New session with that draft and project, for a bookmark or a home-screen shortcut. It only fills the composer; nothing starts until you press Start. - One prompt, several engines: the New session engine chip's
[ compare engines ]turns it into a check-list (Claude + Codex …), and Start fans the prompt out as one attempt per engine (add --agents, each in its own worktree, sharing agroupId) and opens Compare. Compare is also on any attempt's row menu: each attempt's status, latest reply, and changed files side by side (stacked on a phone), with its terminal and diff one click away.[ keep this one ]marks it kept (update --kept) and offers to archive the others behind the usual confirm. Not available in place, ungrouped, or on another machine. - The Issues page has a second source,
[ PRs waiting on me ](also the palette's Review queue): open PRs that ask for your review, in the projects Rove knows, read through this Mac's owngh(one read-only search, cached for a minute;rrereads). Each row shows the PR, author, draft / fork / checks,+/-and age.[ review ](or Enter) fetches the PR's head into a local ref (refs/rove/pr/<n>, the same for a branch and a fork) and opens New session on that project, starting from it, with a review prompt as an editable draft: nothing starts until you press Start, so you pick the engine and the agent never begins on someone else's code from a click in a list. Nothing is written to GitHub. - The Chat tab (first of the panel's buttons) reads the task's conversation from
the engine's own history (
output.read, claude and codex alike): user and assistant turns as Markdown, each tool call folded to one line,[ copy ]per message, a find box,[ export .md ]for the whole thread, and new messages as the engine writes them. A palette conversation hit opens it scrolled to that message. An engine with no readable history shows its labelled terminal tail. It never takes input: the composer stays in the terminal. - The side panel holds several tabs per task (Files, a diff per file, a
Browser per page), optionally in two stacked groups, and its views answer to
agents. It starts closed: the Chat, Files, Diff and Browser buttons at the
workspace's top right open it on that view (the shown kind is tinted;
pressing it again closes the panel), and its top row has an expand button
and a close ×. A phone keeps its Terminal / Chat / Files / Diff / Browser switch
and shows no buttons. A page
reports whether it has a panel, whether it is open, and its width, so
rove api viewerstells an agent what you can see (and whether the page is on the daemon's machine or behind a tunnel).rove api panel-showmakes every page remember a view for a task: an address focuses the Browser tab already on it or opens a new one,--pathopens or focuses that file's Diff tab, and it opens the panel on a page that is on that task with a panel, without taking focus or switching task. The Browser asks the bridge (browser.probe) whether a page forbids framing before it loads it. - Command palette (
ctrl+a /): the commands, then the tasks whose title, branch or project matches, then what you and the agents wrote in any task's conversation (rove api search, from two characters), newest first, the words around each hit shown. A task or hit opens its task; the terminal does not scroll to the line. Tool output is not searched, and a task on another machine is not. A machine that is not connected greys its rows in the rail; the cloud mark's hover says why, androve machine doctor <alias>fixes it (MACHINES.md). - The Inbox: click
INBOX nat the top of the rail.↑↓moves, Enter opens the session and clears it,dclears it without opening.
The keyboard works as in the TUI: the rail's own keys (j/k, Enter, n,
/, r, d and the rest of the sidebar chords), the ctrl+a prefix layer
with its guide, F1 help and the command palette, and the direct chords such as
Ctrl+E, Ctrl+1..9, F2–F5 and F7. Your ~/.rove/settings/keybindings.yaml
applies here too. Chords the browser keeps for itself never reach the page:
close a tab with ctrl+a w or the menu instead of Ctrl+W, open one with + or
Ctrl+E instead of Ctrl+T, and there is no Ctrl+Q (a page cannot quit itself).
web/PARITY.md lists every TUI action and whether the web has it yet.
Dictation (optional, local)
Typing on a phone is the worst part of driving a session from one, so the new-session composer has a
[ Say ] button. The page records 16 kHz mono PCM and the op voice.transcribe hands it to a
sidecar on this machine; the transcript is inserted at the caret and never submitted.
The sidecar is opt-in — nothing in Rove bundles a model:
scripts/voice/asr_server.py # uv resolves the environment; 127.0.0.1:8791
scripts/voice/dictionary.py seed # your repos, branches and daily terms
scripts/voice/dictionary.py learn # how the model actually hears each termWhile it is not running the button is disabled and says so. It listens on loopback and takes the
shared token in <ROVE_HOME>/.rove/voice/token; the bridge is the only public path to it, so the
microphone never depends on a port you have to expose.
- Model.
mlx-community/whisper-large-v3-mlx, on this Mac's GPU. Large-v3 over turbo because code-switched speech is the case that matters: "把 rove-web 的 composer 改成 voice first" decodes verbatim on large-v3 and as "Barov with the composer" on turbo. Measured here: 15 s of speech in 1.7 s, ~1.2 s round trip for one sentence. - Dictionary.
~/.rove/voice/dictionary.json. Terms ride in the decode prompt for spelling and casing (without them a clip gives "Roveweb", "Demon", "Vlog"), andlearnmines the spoken forms the decode still gets wrong, which are rewritten afterwards.learnsynthesizes each term with macOSsayinside a carrier sentence, transcribes it, and keeps the mishearing only when it looks like one — the round-trip trick the Wispr Flow reverse-engineering uses, with a carrier added because a bare word round-trips clean. - Context. The composer sends its project, branch and what is already typed. That ranks terms, so the ones you are looking at survive the prompt budget. Shell text is deliberately kept out of the decode prompt: it bled into transcripts ("da composer", "da log").
- Privacy. Audio, model and dictionary stay on this machine. Nothing leaves it, and no audio is written to disk.
Security
- It listens on
127.0.0.1only unless you pick a bridge preset (--preset tailscaleor--preset cf, see IOS.md; or--preset relay, below). There is no flag that opens it to the whole network by default. - The token rides in the link's
#fragment, which browsers never send to a server, so it reaches no access log. The page stores it in the browser's local storage and removes it from the address bar. - The page sends the token as a
Sec-WebSocket-Protocolvalue, because a browser cannot set theAuthorizationheader phones use. A socket opened from another site is refused even with the token. --rotate-tokenrevokes every browser and phone at once: the shared token and every device token, password sign-ins included. The web password itself stays; change it with--set-password.--device <name>gives one phone or browser its own token and prints its link;--revoke-device <name>revokes just that one, and--list-devicesshows them. Only a SHA-256 of each device token is kept (<home>/.rove/bridge/devices.json, owner-only).- Every action that loses work (delete or land a task, close a tab, remove a worktree, delete a routine) is written to the bridge's stderr with the time, the device that sent it and its address, never the token. See TROUBLESHOOTING.
--setupchecks for Tailscale and cloudflared on this machine and prints the commands to reach the bridge from another device. It changes nothing.
The page's files are served without the token (they carry none); every
operation needs it. With --preset cf, Cloudflare Access gates the page too.
Password login
So you can open the page on a phone or another computer without carrying the token link, you can set a password:
rove --web --set-password # asks twice, nothing echoed
rove --web --clear-password # remove it
rove --web --unlock # lift a lockoutThe password is only ever typed at that prompt, never passed as an argument
or an environment variable, so it reaches no shell history or process list.
Only a scrypt hash with a random salt is kept, in
<home>/.rove/bridge/web-password.json (owner-only).
With a password set, a browser that has no token shows a password field
instead of asking for the link. A right password mints a new device token
named web-login-<date>-<time> (UTC) and the page keeps it as it would a
#token= link. Each login shows in --list-devices, and
--revoke-device <name> signs that browser out. Sign out in Settings →
General forgets the token in this browser and revokes it on the host.
Wrong guesses are slowed and counted, and the counts survive a restart:
- 5 wrong passwords from one address lock that address for 15 minutes.
- 20 wrong passwords in 24 hours, from anywhere, lock password login for
everyone until you run
rove --web --unlock(or--set-passwordagain). - Each failure and each lock is logged with its time and address; the password never is.
To reach it from elsewhere through a plain tunnel to 127.0.0.1 (cloudflared
without Access):
cloudflared tunnel --url http://127.0.0.1:7878 # or a named tunnel to your hostname
rove --web --public-host rove.example.com--public-host keeps the bridge on 127.0.0.1; it only tells the bridge the
page's https address, so a page served from it is accepted and every other
site is still refused. Behind such a tunnel the address counted is the one
Cloudflare reports (CF-Connecting-IP); otherwise it is the connecting socket.
What the password changes: it is one more door in front of the token, not a
replacement for it. Anyone who can reach the page can try passwords, slowly,
until the lockout stops them; a long, unique password matters. Token links,
phone pairing and device tokens keep working as before. Cloudflare Access
(--preset cf) is still the stronger choice when you have it, because nobody
reaches the page at all without passing Access first. With no password set,
none of this exists: there is no login route and the page asks for the link.
Through an encrypted relay
--preset relay reaches this machine from a phone browser with no VPN app and
no Cloudflare Access, and the relay in the middle sees only ciphertext. It uses
relay-kit (MIT): a Cloudflare
Worker you deploy to your own account, and its relay-e2e/v1 protocol.
Set it up once (rove --web --setup prints the same steps):
git clone https://github.com/nanami-0713/relay-kit && cd relay-kit/workers/relay
rove --web --relay-shell public # writes public/index.html
printf '\n[assets]\ndirectory = "public"\n' >> wrangler.toml
npx wrangler login && npx wrangler deploy # prints https://<worker>.<account>.workers.dev
rove --web --preset relay --relay-server https://<worker>.<account>.workers.dev--relay-server can also live in <home>/.rove/bridge/config.json as
relayServer. *.workers.dev is blocked on many mainland China networks; bind
a custom domain (the commented routes in wrangler.toml).
The bridge prints a link and a QR code:
https://<relay>/#code=<pairing code>&token=<bridge token>. Both ride in the
fragment, so the Worker never receives them.
- What the Worker serves. Only the page
--relay-shellwrote: a small loader. It runs the encrypted handshake, then fetches the real client from this machine through the tunnel, so the client always matches the bridge. Redo--relay-shellandwrangler deployonly when the loader changes. - Pairing code. 32 random bytes in
<home>/.rove/bridge/relay-code(owner-only). It derives the relay room and keys the handshake.--rotate-relaymints a new one, which unpairs every browser paired through the relay. - The bridge token still applies. The relay is a layer on top: a browser
with the pairing code but no token, or a revoked device token, gets no
socket.
--device,--revoke-deviceand password login work as on any other preset. - The bridge opens a second listener on
127.0.0.1(a random port) that only the relay agent dials. The agent opens its sockets without headers, so that listener alone takes the token from?token=; the main listener still refuses a token in the URL.
What it does not protect against: the relay can drop or delay traffic and see message sizes and timing. The loader is served by Cloudflare, so you trust it the way you trust any page you load. relay-kit's handshake is its own design and has not been audited. One relay link per browser origin: a second machine needs its own Worker.
Install to the home screen
The page carries a web app manifest, so a browser can install it: Safari's Share → Add to Home Screen on iOS, Install on desktop and Android Chrome. It opens in its own window without browser chrome and starts at the page root of whatever host and port serve it.
On iOS an installed app keeps its own storage, apart from the Safari tab it
was added from, so it does not inherit the token. The first launch shows the
connect screen (paste the #token= link) or, with a password set, the
password field. Do that once; the app keeps the token after that. Chrome's
install shares the browser profile, so it is already paired.
Notifications when the page is closed
Settings → General → Notifications → "Notify when this page is closed"
subscribes this browser to Web Push. When a task finishes, needs you or fails
and no Rove page is on screen, the bridge sends an encrypted push (RFC 8291,
signed with its own VAPID key in ~/.rove/bridge/push.json) through the
browser's push service; clicking the notification opens that task. While a
page is visible nothing is pushed: the page notices on its own. The switch
follows Cross-task, and a revoked device token stops its pushes.
Push needs a secure page: https (a tunnel or --public-host) or
localhost. On iPhone and iPad it also needs the page installed to the home
screen first (iOS 16.4 or later); the switch says so when it cannot turn on.
Limits
- The standalone
rovebinary does not include the page;rove --websays so. The npm package does. - A browser tab resizes the shared session to its own width, as the phone apps do, so the TUI may redraw at the browser's size while it is open.
- Through the relay, one message is capped near 700 KB (the Worker's 1 MiB per message, after encoding), so a large image paste fails; the notification sound does not play there either.