Infrastructure · Agent toolingCase study 19 / 20
Browser Hand-off
A shared browser my AI agents drive themselves — and hand back to me the moment they hit a login, a 2FA code or a CAPTCHA. One persistent Chromium on the server, streamed live to my phone, so a human does the one thing only a human can, then the agent carries straight on where it left off.
Role
Designer & engineer · personal infrastructure
Status
● Live · the web access behind every agent I run
The trick
Agents can't pass logins, 2FA or CAPTCHAs — this hands those back to me without stopping the job
Stack
Node · Chrome DevTools Protocol · WebSocket screencast · Tailscale
The short version
- One persistent Chromium lives on the server; my agents drive it over the DevTools Protocol, and logins stay signed in between sessions.
- When an agent hits something only a person can clear,
handoffposts a "needs you" card and the live page lets me take over — mouse, keys and all — then hands control back. - Nothing is recorded: frames and keystrokes only pass through memory, and the whole thing is reachable on my private network alone.
01Why I built it
I run a fleet of AI agents that get real work done on the web — prospecting, dashboards, sign-ups, forms. They all hit the same wall: a login, a one-time code, a CAPTCHA, a payment. The honest state of the art is that an agent shouldn't clear those on its own, and often simply can't. The usual answer is for the agent to give up and leave a note.
I wanted the opposite: the agent keeps its place, and I get pulled in for the ten seconds only I can do. Browser Hand-off is the shared browser that makes that possible — one real Chromium my agents drive, that I can seize live from my phone and hand straight back.
02How it works
- One browserA single headless Chromium runs under a supervisor that restarts it on exit and keeps a saved profile, so sign-ins persist between agent sessions.
- Agents driveSessions attach over the Chrome DevTools Protocol on localhost and drive the active tab — navigate, click, read — like any automation.
- It gets stuckOn a login, 2FA prompt or CAPTCHA, the agent runs one command instead of giving up.
- You're paged
handoff "Sign in to X"posts a "needs you" card to my assistant's Discord and waits. - You take overA live page streams the tab as video and relays my mouse, wheel, keystrokes and pasted text back into it — I do the human bit from my phone.
- Agent resumesThe command returns success and the agent carries on exactly where it paused — the task never restarts.
03The pieces
The shared surface
One persistent Chromium
A supervised browser with a saved profile, so logins stick and every agent works against the same live session instead of its own throwaway one.
Live take-over
Screencast + input relay
The active tab streams as JPEG frames over a WebSocket; mouse, wheel, keys and paste go back the other way, so taking over feels like it's my own browser.
The page-me loop
handoff → Discord card
A one-line CLI posts a card through my assistant and blocks until I've done my part, so the agent's code just awaits a human the way it awaits anything else.
Passing the bot checks
Headless stealth
The obvious headless tells are removed so sign-in pages behave — the real UA and client hints, software-GL masking, the automation flags stripped.
04The hand-off, in detail
The whole design turns on one idea: a human and an agent sharing the same browser, not passing files between two. Because the session is live and shared, I don't have to recreate anything — I land on the exact page the agent is stuck on, do the login or the code, and the agent is already authenticated for everything that follows.
- Same session, both of us. I take over the live tab; when I hand back, the agent inherits the cookies and the signed-in state I just created.
- Three outcomes, cleanly. The CLI returns done, handed-back, or timed-out, so the agent can finish, re-plan, or move on — it's never left hanging.
- Reachable anywhere, privately. The take-over page is served over my private network only, so I can clear a login from my phone without exposing the browser to the world.
05Privacy & safety
This browser signs in to real accounts, so I built it to hold as little as possible. Nothing is recorded or logged — the video frames and my keystrokes only pass through memory on their way between the browser and my screen. Access is restricted to my own private network, every request is checked against its own origin and host, and the control plane for the "needs you" cards is the only thing that ever leaves the box.
06Trade-offs I made
Chose
One shared browser
Over
A fresh browser per agent
Chose
Human-in-the-loop
Over
Auto-solving CAPTCHAs
Chose
Nothing recorded
Over
Session replay logs
Chose
Private-network only
Over
A public URL with a password
07What this shows
Agent infrastructure
The unglamorous plumbing that makes autonomous agents actually useful: a clean way to borrow a human for the parts machines can't do.
Browser automation
Driving real Chromium over the DevTools Protocol, streaming it live and relaying input both ways — with the headless tells handled.
Judgement about limits
Knowing which walls to hand back rather than tunnel through, and building the product around that line instead of against it.
About this one: this is personal infrastructure, not a product — the quiet layer that lets the rest of the fleet touch the web. The demo shows the take-over interface on a neutral sign-in page; the browser's real sessions are never filmed, and nothing it does is recorded.
Hiring for applied AI, product or solutions work? I'd like to hear about it.