Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
title: AI agent browser: your Chrome or Docker
description: Watch your bots browse live in the app. Run the browser on your own Chrome in Local mode, or isolated in a Docker container in VM mode.
card_title: Browser
path: docs/browser.html
nav: browser
card: A bot browser shown live in the app: your own Chrome, or isolated in Docker.
card_art: avatar:user
---
<p class="kicker">Docs</p>
<h1>AI agent browser: your Chrome or Docker</h1>
<p class="intro">Bots can browse the web, read pages and look at screenshots of them, and you watch it live in the app's browser panel. Take over at any time to sign in, solve a CAPTCHA or click around yourself.</p>
<h2 id="how">How it works</h2>
<p>kwant runs one long-lived Chromium per installation, with a separate browser context for each bot, channel or team. The app connects to kwant over a same-origin WebSocket. kwant relays the screen frames and your input, so your browser never talks to Chromium directly.</p>
<ul>
<li><strong>Take over</strong> gives you an exclusive hold. Bot navigation waits until you hand it back, close the panel or disconnect.</li>
<li>Closing the panel stops its stream. Slow viewers don't build up a backlog of frames.</li>
<li>Restarting kwant reconnects to the existing sessions while Chromium keeps running.</li>
</ul>
<h2 id="take-over">Take over the page</h2>
<p>Click the bot's page in the browser panel, or press <strong>Take over</strong>, and the page opens on a large stage at its real size, with back, forward, reload, the address and <strong>Hand back</strong>.</p>
<ul>
<li><strong>Everything works:</strong> clicks, double-clicks, right-clicks, hover, scrolling and the full keyboard, with copy, paste and input methods. On a Mac, Cmd shortcuts reach the page as Ctrl. F6 moves between the page and the top bar.</li>
<li><strong>Menus and dialogs:</strong> a drop-down list on the page opens as kwant's own menu (a sheet on a phone), and a page's alert, confirm or prompt shows as a card you answer in kwant.</li>
<li><strong>On a phone</strong> the page fills the screen, with Hand back, and Done while a sign-in step is open.</li>
<li><strong>Links to other apps:</strong> a link that would open an app, such as an app-store link or a site's "open in the app" button, isn't followed. A banner says so and the page keeps taking your clicks and keys.</li>
</ul>
<figure>
<div class="frame">{{shot:v69-takeover-stage|The take-over stage for Rook's browser: You're in control, a Northwind sign-in page with [email protected] and a hidden password typed in, and Hand back and Done, I'm signed in at the top.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>You're in control: the bot waits until you hand it back or press Done.</figcaption>
</figure>
<figure>
<div class="frame">{{video:clip-v69-takeover|Demo: Rook needs a sign-in. Take over opens the page on a large stage, the email [email protected] and a password are typed in, and Done, I'm signed in hands the browser back to Rook: the card reads Done. Rook is carrying on, and the pane is back to Watching on Northwind's billing page.}}</div>
<figcaption>Take over, sign in on the page, then Done.</figcaption>
</figure>
<h2 id="watch-live">Watch a bot's browser live</h2>
<p>A globe on a chat's row means its bot is using the browser right now. Click it to watch the page as the bot works. <strong>Watch</strong> on the chat's working line does the same.</p>
<figure>
<div class="frame">{{video:clip-v075-watch-live|Demo: a message asks Ann to check the tent page. The globe appears on Ann's row, it opens her live browser, and the shop's tent page loads under a Watching badge.}}</div>
<figcaption>From the globe on a chat's row to the bot's live page.</figcaption>
</figure>
<ul>
<li>Each chat's live view has its own <code>/live</code> address, and a notification can open it directly.</li>
<li>With two or more chats browsing, the panel's name becomes a switcher. Chats that need you come first.</li>
<li>Watching changes nothing. To act on the page yourself, use <a href="#take-over">Take over</a>.</li>
</ul>
<h2 id="show-once">Show it once</h2>
<p>Some tasks are quicker to show than to explain. Do the task once in a bot's browser while kwant writes the steps down, and the bot turns them into a skill.</p>
<figure>
<div class="frame">{{shot:v075-show-once|A "Check the steps" dialog over a shop's orders page, listing four recorded steps: open the orders page, choose Paid, choose Last 7 days and click Export CSV.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Check the steps before the bot writes the skill.</figcaption>
</figure>
<ol>
<li><strong>Start</strong> from <strong>Show it once</strong> in the bot's Skills tab, or press <strong>Record steps</strong> while you've taken over its browser.</li>
<li><strong>Do the task.</strong> Clicks, typing and picks from a dropdown are recorded, and each field is named by its own label. Add a note after a step if it needs one.</li>
<li><strong>Stop and check the steps.</strong> Discard, keep recording, or choose <strong>Write the skill</strong>.</li>
<li><strong>Review the draft</strong> under To review in the bot's Skills tab. Edit it, then press <strong>Try it once</strong> to run it in the bot's chat. The trial never changes the skill. Approve it when it's right.</li>
</ol>
<p class="note">Passwords, one-time codes, card details, secrets and anything filled in by a saved login or a script are recorded as placeholders, never as their text.</p>
<h2 id="sign-in">Bots ask you to sign in</h2>
<p>Ask a bot to log in to one of your accounts and it opens the site's sign-in page in its browser. If you're already signed in, it carries on. Otherwise it posts a sign-in card: <strong>Open browser</strong> takes you straight to the page with control, you sign in yourself, and <strong>Done</strong> lets the bot look again. Bots never ask for a password or one-time code in chat.</p>
<ul>
<li><strong>One card per site:</strong> while a sign-in for a site is open, another turn of the same bot in that chat waits on the same card instead of posting a second one.</li>
<li><strong>Sign-in popups:</strong> when a page opens a popup, such as "Continue with Google", the live view and the bot's browser tools move to the popup, so you or the bot can sign in there. When it closes, both go back to the page that opened it. Only popups from the bot's own page are followed.</li>
<li><strong>One page per job:</strong> each bot has its own page in the team's browser for each chat it works in, and a sign-in holds only that page, so the team's other bots keep working. The pages share the team's sign-ins. When there are 2 or more, a strip above the address bar lists them by bot and site and marks the one that needs you. A team has at most 4 job pages at once. A 5th job waits up to a minute for one to free up, then the bot is told that all 4 are in use. A page nobody has used for 30 minutes closes.</li>
<li><strong>Decline stays declined:</strong> after you decline, the bot says what it couldn't do and doesn't ask again for that request.</li>
</ul>
<figure>
<div class="frame">{{shot:v69-signin-step|In #launch-waitlist, asked to check how the waitlist teaser did on TikTok, Designer posts a Sign in needed card for @trailhead.trips on tiktok.com, with Open browser, Done, I'm signed in and Skip, and the line Designer is paused and waiting for you.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>A sign-in card. Open browser takes you to the page with control.</figcaption>
</figure>
<figure>
<div class="phone">{{shot:phone-v093-page-strip|The tiktok team's browser on a phone. Above the address bar, a strip of pages: Architect on tiktok.com with a yellow needs-you dot, Community on labs.google, and Shared. The view shows Architect's TikTok login page with the line @Architect needs you to sign in and a Take over button.|300px}}</div>
<figcaption>Each job has its own page. The strip marks the one that needs you.</figcaption>
</figure>
<h2 id="human-check">When a site asks if you're human</h2>
<p>If a page shows a CAPTCHA or a "Just a moment…" check, the bot stops and posts a <strong>Human check needed</strong> card in the chat where it met the check: the thread it was working in, else its channel or direct chat. The card never goes to another bot or another thread. <strong>Solve it</strong> opens the page in the browser panel. Solve the check yourself within 10 minutes (the default), and the bot carries on by itself; <strong>Done, I solved it</strong> says so straight away. If nobody solves it in time, the card closes and the bot moves on without that page. The card comes up for a page opened from a link you sent, for the bot's own web tools and for a browser step, and kwant never solves or bypasses a check itself.</p>
<figure>
<div class="frame">{{shot:v611-human-check|Researcher's chat after a link to a tent on gearhub.example: a Human check needed card, spotted automatically, says the site is showing a CAPTCHA to the bot browser, with Solve it, Done, I solved it and Skip.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The card a bot posts when a site asks if it's human.</figcaption>
</figure>
<figure>
<div class="frame">{{shot:v611-human-check-browser|The bot browser panel open on gearhub.example's Verify you are human page, next to the card's Done, I solved it button.|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>Solve it opens the check in the bot's browser. Done hands it back.</figcaption>
</figure>
<h2 id="screenshots">Bots can see the page</h2>
<p>Besides reading a page's text, a bot can take a screenshot with <code>browser_screenshot</code> and look at the picture, to check layout, colours, spacing and images that text can't show.</p>
<ul>
<li><strong>A set width:</strong> the bot can take the shot at a width from 320 to 1280 pixels, such as 390 for a phone or 1280 for a desktop. The browser goes back to its own size afterwards, and the picture you see in the panel isn't changed.</li>
<li><strong>Waits for you:</strong> like the other browser tools, it won't take a shot while you're signing in, solving a CAPTCHA or holding the browser with Take over.</li>
<li><strong>Which bots:</strong> Claude and Codex bots get the picture. Bots on other engines get a short text note in its place for now.</li>
</ul>
<h2 id="citations">Bots cite what they read</h2>
<p>When a bot backs a fact with a web page, it passes the exact words it read (or a block id from its read). kwant checks the words are on the page once, word for word, and returns the quote, its address and a link that opens the page with the quote highlighted.</p>
<ul>
<li><strong>Nothing made up:</strong> a quote that isn't on the page, or is on it more than once, is refused with the reason.</li>
<li><strong>The right spot:</strong> a link never opens at a lookalike higher up the page (the same words with other capitals or accents, like "résumé" for "resume"). kwant adds nearby words to the link, or refuses when nothing tells the two apart.</li>
<li><strong>No model calls:</strong> the check is plain text matching. Bots are told to back web facts with these links.</li>
</ul>
<h2 id="steps">Each step says what it changed</h2>
<p>After every click, key or typing, the bot gets one line saying what changed: the page it went to, or the new and gone lines. If its last 3 steps changed nothing, or it asks a 3rd time in a row for the same click that changed nothing, it is told to stop and try something else.</p>
<ul>
<li><strong>Numbered controls:</strong> the page a bot reads lists its buttons, links and fields as numbered refs with their role (<code>[9] button "Add to cart" · Sauce Labs Bike Light</code>), naming the product or row when several share a name. A click by ref hits exactly that control, also inside frames.</li>
<li><strong>Never through a banner:</strong> if the control has gone, been hidden or renamed, or a cookie banner or dialog covers it, nothing is clicked and the bot gets a fresh list with the reason.</li>
<li><strong>No re-reading:</strong> reading a page that hasn't changed since the last look gives a one-line "unchanged". On a page with more than 40 controls, the bot can say what it looks for ("add to cart bike light") and the matches are listed first, with the same numbers.</li>
<li><strong>Asks before paying:</strong> before a bot clicks or presses Enter or Space, kwant reads the page: the button the click would really hit, card number or CVC fields, a payment provider's card frame (Stripe, Braintree, Adyen, …) and forms that post to a checkout. Any of these gets the <a href="approvals.html">payment card</a> in every approval mode, even behind a plain "Continue". Bots using the browser through the shell leave that step to you.</li>
</ul>
<h2 id="sites">Browser sites: where each bot may go</h2>
<p>Each bot can have its own rules for where its browser goes. Open the bot's settings and expand <strong>Browser sites</strong>:</p>
<ul>
<li><strong>Allowed sites:</strong> when the list isn't empty, the bot's browser opens only these sites. <code>example.com</code> includes its subdomains; <code>*.example.com</code> means only the subdomains. A pasted address keeps just its site.</li>
<li><strong>Blocked sites:</strong> never opened, even if they're also allowed.</li>
<li><strong>Block local and private network addresses:</strong> refuses localhost, 192.168.x.x, 10.x.x.x and names that point to them, such as your router.</li>
</ul>
<p>Each list holds up to 200 entries. With both lists empty and the switch off, which is the default, nothing is checked. The rules hold in Local and VM mode for every page a bot's actions load: a page it opens, a link it clicks, a redirect, a form it submits and a new tab its page opens. A refused page isn't opened, and the bot is told which rule stopped it, for example "Not opened: tiktok.com is on this bot's blocked sites". Your own browsing, after Take over, isn't limited.</p>
<ul>
<li><strong>Only you set them:</strong> kwant takes a change to Browser sites from you, in the app or with your API token. A change sent with a bot's key is refused, for its own sites and for any other bot's. A bot that can run commands on the computer kwant runs on can still reach kwant directly, as it can for any setting only you may change. This lock covers Browser sites, not Good for and Not for.</li>
<li><strong>Whole pages only:</strong> the rules check the pages a bot loads, not what those pages load. A frame inside an allowed page, and a page's own images, scripts and requests, can come from anywhere.</li>
</ul>
<figure>
<div class="frame">{{shot:v64-browser-sites|The Researcher's settings with Browser sites open: allowed sites outdoorgearlab.com, rei.com and wikipedia.org; blocked sites facebook.com and tiktok.com; and "Block local and private network addresses" ticked. The summary line reads "Only 3 sites, never 2 sites, no local network".|(max-width: 860px) 100vw, 760px}}</div>
<figcaption>The Researcher browses three sites, never two others, and nothing on your network.</figcaption>
</figure>
<h2 id="modes">Local or VM mode</h2>
<p>Choose where bots' browser and shell commands run in <strong>Settings → All spaces → Computer for browsing and commands</strong>, or with the browser panel's mode toggle. Switching takes effect at once, without a restart.</p>
<div class="table-wrap"><table>
<thead><tr><th></th><th>Local computer</th><th>VM</th></tr></thead>
<tbody>
<tr><td><strong>Default on</strong></td><td>macOS</td><td>Everywhere else, including a VPS</td></tr>
<tr><td><strong>Browser</strong></td><td>Your installed Chrome or Chromium, windowless, with its own profile</td><td>A Chromium container</td></tr>
<tr><td><strong>kwant's shell</strong></td><td>On your computer, in the bot's folder. Every command asks first.</td><td>A separate execution container</td></tr>
<tr><td><strong>Needs</strong></td><td>A Chrome binary</td><td>Docker, or your own Chromium service</td></tr>
</tbody>
</table></div>
<p>In Local mode, <strong>Open as window</strong> reopens the same profile as a real window, with each bot's page, so you can sign in yourself. <strong>Show it here instead</strong> brings it back into the panel. kwant never uses your everyday Chrome profile.</p>
<div class="note warn"><strong>Local mode gives up isolation.</strong> Commands run with your user's access to your files, and other programs on the computer can reach Chrome's debugging port while it runs. Use VM mode for untrusted browsing and shell work. In both modes, the Claude, Codex and Grok CLIs run on the host with their own tools.</div>
<h2 id="vm">VM mode with Docker</h2>
<p>Install Docker and start kwant. The first browser request builds the browser image from a recipe embedded in the binary and starts a private container, so a VPS with only the binary works too. No desktop or display server is needed. Prebuild the images to skip the first-use wait:</p>
<pre><code>docker build -t kwnt-browser:v3 -f docker/browser.Dockerfile docker
docker build -t kwnt-executor:v1 -f docker/executor.Dockerfile docker</code></pre>
<p>The browser shares a 1.5 GiB memory limit across all bots, rather than one Chromium per bot. Browser contexts keep cookies and local storage apart. They aren't OS isolation between users who don't trust each other.</p>
<h2 id="own-service">Your own Chromium service</h2>
<p>If you manage Chromium separately, point kwant at its debugging endpoint:</p>
<pre><code>KWNT_BROWSER_CDP_URL=http://browser:9222 kwnt serve --host 0.0.0.0 --port 8799</code></pre>
<p>Keep that endpoint private: it grants full control of the browser. Use a dedicated browser, never a person's everyday profile.</p>
<h2 id="settings">Settings</h2>
<div class="table-wrap"><table>
<thead><tr><th>Environment</th><th>What it does</th></tr></thead>
<tbody>
<tr><td><code>KWNT_COMPUTER_MODE</code></td><td><code>local</code> or <code>vm</code>, unless a choice is saved in Settings</td></tr>
<tr><td><code>KWNT_CHROME_PATH</code></td><td>The browser binary Local mode launches</td></tr>
<tr><td><code>KWNT_BROWSER_CDP_URL</code></td><td>Use an existing Chromium service</td></tr>
<tr><td><code>KWNT_BROWSER_PROXY</code></td><td>Send only the browser through a SOCKS5 or HTTP proxy. See <a href="browser-proxy.html">Browser proxy</a></td></tr>
</tbody>
</table></div>
<p>Saved website logins for the browser are covered in <a href="approvals.html#passwords">Approvals & saved passwords</a>.</p>