Browser Docs menu
Docs
AI agent browser: your Chrome or Docker
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.
How it works
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.
- Take over gives you an exclusive hold. Bot navigation waits until you hand it back, close the panel or disconnect.
- Closing the panel stops its stream. Slow viewers don't build up a backlog of frames.
- Restarting kwant reconnects to the existing sessions while Chromium keeps running.
Take over the page
Click the bot's page in the browser panel, or press Take over, and the page opens on a large stage at its real size, with back, forward, reload, the address and Hand back.
- Everything works: 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.
- Menus and dialogs: 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.
- On a phone the page fills the screen, with Hand back, and Done while a sign-in step is open.
- Links to other apps: 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.
Watch a bot's browser live
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. Watch on the chat's working line does the same.
- Each chat's live view has its own
/liveaddress, and a notification can open it directly. - With two or more chats browsing, the panel's name becomes a switcher. Chats that need you come first.
- Watching changes nothing. To act on the page yourself, use Take over.
Show it once
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.
- Start from Show it once in the bot's Skills tab, or press Record steps while you've taken over its browser.
- Do the task. 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.
- Stop and check the steps. Discard, keep recording, or choose Write the skill.
- Review the draft under To review in the bot's Skills tab. Edit it, then press Try it once to run it in the bot's chat. The trial never changes the skill. Approve it when it's right.
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.
Bots ask you to sign in
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: Open browser takes you straight to the page with control, you sign in yourself, and Done lets the bot look again. Bots never ask for a password or one-time code in chat.
- One card per site: 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.
- Sign-in popups: 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.
- One page per job: 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.
- Decline stays declined: after you decline, the bot says what it couldn't do and doesn't ask again for that request.
When a site asks if you're human
If a page shows a CAPTCHA or a "Just a moment…" check, the bot stops and posts a Human check needed 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. Solve it opens the page in the browser panel. Solve the check yourself within 10 minutes (the default), and the bot carries on by itself; Done, I solved it 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.
Bots can see the page
Besides reading a page's text, a bot can take a screenshot with browser_screenshot and look at the picture, to check layout, colours, spacing and images that text can't show.
- A set width: 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.
- Waits for you: 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.
- Which bots: Claude and Codex bots get the picture. Bots on other engines get a short text note in its place for now.
Bots cite what they read
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.
- Nothing made up: a quote that isn't on the page, or is on it more than once, is refused with the reason.
- The right spot: 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.
- No model calls: the check is plain text matching. Bots are told to back web facts with these links.
Each step says what it changed
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.
- Numbered controls: the page a bot reads lists its buttons, links and fields as numbered refs with their role (
[9] button "Add to cart" · Sauce Labs Bike Light), naming the product or row when several share a name. A click by ref hits exactly that control, also inside frames. - Never through a banner: 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.
- No re-reading: 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.
- Asks before paying: 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 payment card in every approval mode, even behind a plain "Continue". Bots using the browser through the shell leave that step to you.
Browser sites: where each bot may go
Each bot can have its own rules for where its browser goes. Open the bot's settings and expand Browser sites:
- Allowed sites: when the list isn't empty, the bot's browser opens only these sites.
example.comincludes its subdomains;*.example.commeans only the subdomains. A pasted address keeps just its site. - Blocked sites: never opened, even if they're also allowed.
- Block local and private network addresses: refuses localhost, 192.168.x.x, 10.x.x.x and names that point to them, such as your router.
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.
- Only you set them: 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.
- Whole pages only: 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.
Local or VM mode
Choose where bots' browser and shell commands run in Settings → All spaces → Computer for browsing and commands, or with the browser panel's mode toggle. Switching takes effect at once, without a restart.
| Local computer | VM | |
|---|---|---|
| Default on | macOS | Everywhere else, including a VPS |
| Browser | Your installed Chrome or Chromium, windowless, with its own profile | A Chromium container |
| kwant's shell | On your computer, in the bot's folder. Every command asks first. | A separate execution container |
| Needs | A Chrome binary | Docker, or your own Chromium service |
In Local mode, Open as window reopens the same profile as a real window, with each bot's page, so you can sign in yourself. Show it here instead brings it back into the panel. kwant never uses your everyday Chrome profile.
VM mode with Docker
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:
docker build -t kwnt-browser:v3 -f docker/browser.Dockerfile docker
docker build -t kwnt-executor:v1 -f docker/executor.Dockerfile docker
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.
Your own Chromium service
If you manage Chromium separately, point kwant at its debugging endpoint:
KWNT_BROWSER_CDP_URL=http://browser:9222 kwnt serve --host 0.0.0.0 --port 8799
Keep that endpoint private: it grants full control of the browser. Use a dedicated browser, never a person's everyday profile.
Settings
| Environment | What it does |
|---|---|
KWNT_COMPUTER_MODE | local or vm, unless a choice is saved in Settings |
KWNT_CHROME_PATH | The browser binary Local mode launches |
KWNT_BROWSER_CDP_URL | Use an existing Chromium service |
KWNT_BROWSER_PROXY | Send only the browser through a SOCKS5 or HTTP proxy. See Browser proxy |
Saved website logins for the browser are covered in Approvals & saved passwords.






