Start a session
Turn on Live collaboration for a temporary share (in New Tunnel, the share's detail view, or opentraffic share 5173 --collab) and everyone who opens the link sees each other: a presence pill with names, live cursors anchored to page elements, and — after Open as Host — a Lead switch that brings everyone to the page and scroll position you're on.
People can also pin comments to any element (the Comment button in the pill) and point at things for everyone (the Point button, or ⌥-click). A coding agent working on a comment appears in the session too, its cursor on the element; when the comment is resolved, its author is told and can confirm the fix or reopen it. Comments appear in the share's Feedback tab (⌘4), where you can resolve or delete them for everyone and copy them as Markdown or as a GitHub issue; they're kept between sessions. OpenTraffic can notify you when someone joins or comments, and shows your name from Settings → General → Live Collaboration to the people you share with.
OpenTraffic runs a small proxy on 127.0.0.1 between cloudflared and your dev server. It forwards everything unchanged, with two exceptions:
- HTML pages get two script tags,
/__opentraffic/bridge.jsand/__opentraffic/collab.js. - OpenTraffic answers
/__opentraffic/*itself.
Hot-reload WebSockets are relayed byte for byte. The hub lives in OpenTraffic, with no account or outside service.
What visitors share:
- Everyone sees each other's chosen names and cursors, and which page (path only, never the query string) they're on.
- Cursor and presence messages do not send page content or form-field values. Explicit comments and element screenshots carry the selected feedback described below.
- When someone pins a comment, it carries a short label of the element, the page title, a picture of the element (with text fields blanked), their browser and window size, and, if you turned on error collection, the browser errors they hit. For you and your agent only, it also records where the element comes from: a CSS selector, a few computed styles, and on development builds of React, Vue, Svelte, or Angular, the component and its source file.
- Everyone in the session sees each other's window size and system (for View at their size).
Areas, drawing, and devices
- Comment on an area. In comment mode, drag a box instead of clicking: the comment covers that region (like "the gap between these cards") and shows as a dashed box on the page.
- Draw. The pen in the pill draws strokes everyone on the same page sees for a few seconds. Nothing is saved.
- Everyone's device. The people list (click the avatars) shows each person's window size, and View shows the page they're on at their exact size: a phone, tablet, or browser window over your (blurred) page. Follow keeps it on the page they're on and their pointer in view; scrolling it yourself stops following. Fit scales it to your window, 100% shows it at actual size, and the arrow pops it out as a window of their size. When their phone turns, so does the view. OpenTraffic's Live Collaboration card shows each person's size and system too.
- Phone or Desktop. The View button in the pill shows the page as a phone (390 × 844; the arrows turn it) or as your own window (Desktop). In any device view, yours or someone's, Comment, Point, Draw, and suggested edits work on the page inside the device; the comment box and bubbles open beside it at full size, always in the same centred place, and comments record the device's size.
- Leading in a phone. When the host leads with Phone open, everyone following sees that phone, with the host's page and scrolling, and it turns when the host turns it. Followers can turn Follow off to look around in it, or close it. Back on Desktop, everyone has their own window, at their own size; the host can switch on Followers match my window (in the View menu) when everyone should see their exact layout.
Who can do what
In OpenTraffic's Live Collaboration card, each person has a role, kept for their browser:
- Trusted: comments, and their comments may start your agent by itself.
- Can comment (the default): comments, replies, and resolves; the agent only runs for their comments when you Send to ….
- View only: looks, points, and draws, but can't comment, reply, or resolve.
New people can sets the role everyone else gets. Roles follow a browser, not a verified identity: someone can clear their browser data and come back as new. Combine them with a password to control who gets in at all.
Live collaboration works with Quick Tunnel and OpenTunnel shares of http:// addresses. Other providers and HTTPS local origins are not currently supported for collaboration.
Work on a branch
Turn on Work on a branch in a share's Live Collaboration card (or opentraffic share 5173 --branch, opentraffic set Orbit --branch on) and, while the share runs, its project is on a branch of its own:
- When the share starts, OpenTraffic finds the project from the folder your dev server runs in (or the one you chose in the Feedback tab), and switches its git repository to a new branch,
opentraffic/<share>-<date>, made from the branch you're on. Your files don't change, so the dev server keeps serving, and uncommitted changes stay uncommitted. - When a comment is resolved by an agent or by you, what changed for it is committed there, with the comment as the message. For a claimed comment, that's the files that changed since the agent claimed it. Changes you'd already made aren't included unless the agent changed the same file, but files you edit while an agent works on a comment go into its commit.
- When the share stops, the branch is merged back into the one it came from, if that's clean. Usually that's a fast-forward that leaves your working folder exactly as it is. If that branch moved on meanwhile, OpenTraffic merges only when nothing is uncommitted and nothing conflicts. Otherwise the branch stays checked out, OpenTraffic says why, and the next start carries on with it. A restart keeps the same branch.
It needs the project on a branch (not a detached HEAD), with no merge or rebase in progress. Commits use your git name and run your hooks, and .env files are never committed.
No git yet? Turning the switch on checks the project first. If it isn't in a git repository, OpenTraffic offers to Set Up Git: it creates a local repository there (no remote, nothing leaves your Mac), adds a .gitignore if there isn't one, and commits the project as it is, leaving out dependencies, build output, .env files, and files over 10 MB. Continue Without leaves the switch off. If git itself isn't installed, it offers Apple's Command Line Tools, which include it. From the command line, --branch on such a project fails and says what to do. If a project loses its repository later, the switch turns itself off when the share starts, and says so.
Multi-service apps
See Localhost bridge when your frontend calls another local API or WebSocket server.
Feedback workflow
See Comments & feedback to resolve threads or connect an agent.