# AIAgentSandbox.io > Browser and computer-use sandboxes for AI agents, explained: headless and headed browsers, isolation, session state, credentials, network rules and recordings. --- # Accessibility tree or screenshots: how should a browser agent see the page? URL: https://www.aiagentsandbox.io/accessibility-tree-vs-screenshots-for-browser-agents/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Start a browser agent on the accessibility tree, a text outline of the page that is cheap and lets it act on exact elements. Add screenshots when the task depends on images, layout, charts or canvas. Use screenshots alone, with clicks by coordinates, only where no tree exists, such as desktop apps. A browser agent can see a page in two main ways: as text, through the accessibility tree or a cleaned copy of the DOM, or as an image, through screenshots. The choice decides how the model names its target, what each step costs, and which pages the agent can handle. The short answer is to start with the tree and add images where the page needs them. ## What are the two ways an agent can see a page? The two ways are a structured text view of the page's elements and a picture of the screen. - **The accessibility tree.** MDN explains that browsers turn markup into the DOM tree and then "create an accessibility tree based on the DOM tree, which is used by platform-specific Accessibility APIs to provide a representation that can be understood by assistive technologies, such as screen readers" ([MDN, Accessibility tree](https://developer.mozilla.org/en-US/docs/Glossary/Accessibility_tree), read 2026-11-26). Playwright's ARIA snapshots "provide a YAML representation of the accessibility tree of a page", for example `- heading "Title" [level=1]` ([Playwright ARIA snapshots](https://playwright.dev/docs/aria-snapshots), read 2026-11-26). - **Screenshots.** The model receives an image of the viewport and names a target by pixel position, or by a label drawn on the image. Our guide to [how computer use works](https://www.aiagentsandbox.io/how-computer-use-works/) covers the coordinate side. ## How do the two compare? They compare on cost, precision and coverage. Table: Accessibility tree compared with screenshots for a browser agent | | Accessibility tree | Screenshots | |---|---|---| | What the model receives | Text: roles, names, states, element references | An image of the viewport | | How it names a target | An element reference | Pixel coordinates, or a number from drawn marks | | Model needed | Any text model | A model that reads images | | Precision of the action | Exact element | Depends on grounding and coordinate scaling | | Images, charts, canvas, visual layout | Only what labels and alt text say | Visible | | Pages with poor labels | Weak | Unaffected | | Very large pages | The text can get long | One image per viewport | | Desktop apps outside the browser | Only where an accessibility API exposes them | Works on any screen | ## What does the research say? The research says each view wins on different tasks, and that the visual side has improved since the first benchmarks. Table: Published results by observation type | Study | Setting | Text view | With images | Source | |---|---|---|---|---| | OSWorld (2024) | Desktop tasks, best result per setting | Accessibility tree alone: 12.24% | Screenshot alone: 5.80%; screenshot with tree: 12.17%; set-of-marks: 11.77% | [arXiv 2404.07972](https://arxiv.org/html/2404.07972) | | VisualWebArena (2024) | 910 visually grounded web tasks, best model | Text only: 7.25%; with image captions: 12.75% | Screenshot and tree: 15.05%; set-of-marks: 16.37% | [arXiv 2401.13649](https://arxiv.org/html/2401.13649) | | WebVoyager (2024) | 643 tasks on 15 live websites | Accessibility tree baseline | Screenshot with marks beat it on most sites; similar or lower on text-heavy sites | [arXiv 2401.13919](https://arxiv.org/html/2401.13919v4) | All read 2026-11-26. Three points from the papers explain the numbers. 1. **Text wins when the page is mostly text and labels.** The OSWorld authors wrote that "The setting that relies solely on screenshots exhibits the lowest performance". WebVoyager's screenshot agent did slightly worse than, or about as well as, the text-only agent on five of its 15 sites, which the authors put down to those sites being "more text-heavy than others": "dense text might not be easily recognizable from the image". 2. **Images win when the page is visual.** The VisualWebArena authors found that on dense pages "the accessibility tree does not provide sufficient information to disentangle elements that are spatially close", and that set-of-marks helped most on the visually crowded sites. 3. **Screenshot-only agents have improved.** A January 2025 paper on a model that "solely perceives the screenshots as input" reported 24.6 on OSWorld with 50 steps ([arXiv 2501.12326](https://arxiv.org/abs/2501.12326), read 2026-11-26), about twice the 2024 text-view baseline. Compare models on the version of the benchmark you care about, not on these older figures. ## What does each view cost in tokens? Each view costs tokens in a different way: the tree grows with the page's content, a screenshot grows with its pixel size. - **Tree.** The OSWorld authors note that the raw accessibility tree in XML "contains millions of tokens", that they filtered it, and that "a context length of 6000 is needed to accommodate about 90% of cases for a single observation" ([OSWorld paper](https://arxiv.org/html/2404.07972), read 2026-11-26). Trimming the tree to visible, interactive elements is what makes it cheap. - **Screenshot.** Chrome DevTools MCP's configuration guide advises resizing rather than compressing, "since image tokens scale with dimensions rather than encoded bytes" ([Chrome DevTools MCP configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26). ## Which view do the common browser tools use by default? The common open-source browser servers for agents use the accessibility tree by default and offer screenshots as a second view. - **Playwright MCP** says it "Uses Playwright's accessibility tree, not pixel-based input" and needs "No vision models". Its snapshot tool is described as "better than screenshot", and the coordinate mouse tools are opt-in with `--caps=vision` ([Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26). Its `--snapshot-boxes` option adds each element's bounding box to the snapshot, which helps a hybrid agent match text and image. - **Chrome DevTools MCP**'s snapshot tool says "Prefer taking a snapshot over taking a screenshot", and its `click_at` tool needs `--experimentalVision=true` ([Chrome DevTools MCP tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md), read 2026-11-26). See [what Playwright MCP is](https://www.aiagentsandbox.io/what-is-playwright-mcp/) and [what Chrome DevTools MCP is](https://www.aiagentsandbox.io/what-is-chrome-devtools-mcp/) for setup. ## How do I choose for my agent? Choose by checking what your target pages need, in this order. 1. **Start with the accessibility tree** for forms, tables, links, menus and text. It is cheap, works with any model, and the action lands on an exact element. 2. **Check the tree on your real pages.** Open a snapshot of each key page. If important buttons have no names, or the content is a canvas, a map, a chart or a grid of images, the tree will not carry it. 3. **Add a screenshot to the tree** for those pages, so the model sees the layout but still acts by element reference. 4. **Use set-of-marks** when the model must pick among many similar visual items, such as product images. 5. **Use screenshots alone with coordinates** only where no tree exists: desktop applications, remote desktops, or pages that render everything into a canvas. 6. **Measure on your own tasks.** Run the same task set with each view and compare success, steps and tokens per task. ## What we read for this article - [MDN, Accessibility tree](https://developer.mozilla.org/en-US/docs/Glossary/Accessibility_tree), read 2026-11-26 - [Playwright ARIA snapshots](https://playwright.dev/docs/aria-snapshots), read 2026-11-26 - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/html/2404.07972), read 2026-11-26 - [VisualWebArena paper (arXiv 2401.13649)](https://arxiv.org/html/2401.13649), read 2026-11-26 - [WebVoyager paper (arXiv 2401.13919)](https://arxiv.org/html/2401.13919v4), read 2026-11-26 - [Screenshot-only GUI agent model paper (arXiv 2501.12326)](https://arxiv.org/abs/2501.12326), read 2026-11-26 - [Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26 - [Chrome DevTools MCP tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md) and [configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26 ## FAQ ### What is the accessibility tree? It is the browser's outline of a page for assistive technology, built from the DOM, with each element's role, name and state. MDN describes it as containing accessibility-related information for most HTML elements. ### Are screenshots better than the accessibility tree for web agents? It depends on the page. In VisualWebArena, whose tasks need visual understanding, adding screenshots raised the best success rate from 7.25% (text only) to 15.05%. In OSWorld's 2024 baselines the accessibility tree alone scored 12.24% and screenshots alone 5.80%. ### What is set-of-marks prompting? It is drawing a numbered box on each clickable element of a screenshot, so the model can answer with a number instead of coordinates. VisualWebArena and WebVoyager both used it for their browser agents. ### Which one do Playwright MCP and Chrome DevTools MCP use? Both default to an accessibility-tree snapshot and describe it as preferred over screenshots. Both can add clicks by coordinates as an opt-in feature. --- # How computer use works, for developers: screenshots, coordinates and input URL: https://www.aiagentsandbox.io/how-computer-use-works/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Computer use is a loop your code runs: take a screenshot, send it to a model with the task, get back an action such as a click at a pixel position, and send it to the screen as real mouse and keyboard input. Most bugs come from coordinates, so fix the resolution and scale every point back. Computer use is a way for an AI model to operate a graphical interface by looking at screenshots and returning mouse and keyboard actions, which a program then performs. This article covers the mechanics a developer has to build: the loop, the coordinate systems, the input layer, and the checks that keep it reliable. For what a computer-use agent is and why it needs its own desktop, see [what is a computer-use agent](https://www.aiagentsandbox.io/what-is-a-computer-use-agent/). ## What does the computer-use loop look like in code? The computer-use loop is screenshot, model call, action, repeat, with a step limit. The model never touches the machine; your harness does. The following Python sketch shows the shape. It is an example: `call_model` stands for whatever model API you use, and the action format is one you define. ```python import pyautogui MAX_STEPS = 30 SCREEN_W, SCREEN_H = pyautogui.size() for step in range(MAX_STEPS): image = pyautogui.screenshot() # what the model will see action = call_model(task, image, history) # e.g. {"type": "click", "x": 640, "y": 360} if action["type"] == "done": break if action["type"] == "click": pyautogui.click(action["x"], action["y"]) elif action["type"] == "type": pyautogui.write(action["text"]) elif action["type"] == "key": pyautogui.hotkey(*action["keys"]) # e.g. ["ctrl", "s"] history.append(action) ``` Benchmarks use the same contract. OSWorld's actions are Python calls to "the widely used mouse and keyboard control library pyautogui", plus three special actions, WAIT, FAIL and DONE ([OSWorld paper, section 2.4](https://arxiv.org/html/2404.07972), read 2026-11-26). ## How do screen coordinates work? Screen coordinates count pixels from the top-left corner, with x growing to the right and y growing down. The pyautogui documentation states it directly: "The pixel at the top-left corner is at coordinates 0, 0. If your screen's resolution is 1920 x 1080, the pixel in the lower right corner will be 1919, 1079" ([pyautogui mouse documentation](https://pyautogui.readthedocs.io/en/latest/mouse.html), read 2026-11-26). A model returns a point in the coordinate system of the image it was shown. That is often not the screen's coordinate system, for two reasons. 1. **You resized the screenshot.** Many harnesses shrink screenshots to save tokens. The Chrome DevTools MCP server's configuration guide says why this works: "image tokens scale with dimensions rather than encoded bytes" ([Chrome DevTools MCP configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26). 2. **The display has more device pixels than CSS pixels.** In a browser, Playwright's `mouse.click(x, y)` takes an "X coordinate relative to the main frame's viewport in CSS pixels" ([Playwright Mouse API](https://playwright.dev/docs/api/class-mouse), read 2026-11-26). A screenshot taken at device scale on a high-density display is larger than that viewport. ## How do I map a model's coordinates back to the screen? Map coordinates back by multiplying each one by the ratio between the screen and the image the model saw. ```python screen_x = round(model_x * SCREEN_W / IMAGE_W) screen_y = round(model_y * SCREEN_H / IMAGE_H) ``` Table: Worked example of coordinate scaling (example numbers) | | Width | Height | Point | |---|---|---|---| | Screen | 1920 | 1080 | (960, 540) | | Image sent to the model | 1280 | 720 | (640, 360) | | Scale factor | 1.5 | 1.5 | | The model answers (640, 360) on the 1280 by 720 image; the harness clicks (960, 540) on the screen. Keep the aspect ratio when you resize, or the two axes need different factors. For a browser agent, pick one unit and keep it. Playwright MCP's screenshot tool has a `scale` option where "css" gives "a screenshot sized in CSS pixels (smaller, consistent across devices)" and "device" gives "a high-resolution screenshot using device pixels"; the default is css ([Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26). CSS-pixel screenshots line up with `mouse.click` with no conversion. ## How does the harness send input to the desktop? The harness sends input with a library or command that creates real mouse and keyboard events in the display server. Table: Common ways to send computer-use actions on Linux | Action | pyautogui (Python) | xdotool (command line) | |---|---|---| | Move and click | `pyautogui.click(960, 540)` | `xdotool mousemove 960 540 click 1` | | Type text | `pyautogui.write('quarterly report')` | `xdotool type 'quarterly report'` | | Key combination | `pyautogui.hotkey('ctrl', 's')` | `xdotool key ctrl+s` | | Screenshot | `pyautogui.screenshot()` | a separate tool, such as scrot | Three details from the tools' own documentation matter for agents: - xdotool's `type` command puts a delay between keystrokes: "Delay between keystrokes. Default is 12ms" ([xdotool manual](https://github.com/jordansissel/xdotool/blob/master/xdotool.pod), read 2026-11-26). Long text takes measurable time. - pyautogui's screenshots on Linux depend on another program: "Linux uses the `scrot` command" ([pyautogui screenshot documentation](https://pyautogui.readthedocs.io/en/latest/screenshot.html), read 2026-11-26). - With pyautogui's fail-safe on, "moving the mouse to the upper-left will raise a `pyautogui.FailSafeException` that can abort your program" ([pyautogui quickstart](https://pyautogui.readthedocs.io/en/latest/quickstart.html), read 2026-11-26). A model that clicks (0, 0) on purpose will trip it, so decide whether you want it on. On a server without a monitor, run the desktop on a virtual display. Xvfb is "An X server that can run on machines with no display hardware", and by default "only screen 0 exists and has the dimensions 1280x1024x8" ([Xvfb manual](https://www.x.org/releases/current/doc/man/man1/Xvfb.1.xhtml), read 2026-11-26). Set the size you want explicitly rather than relying on that default. ## Why does screen resolution change the results? Screen resolution changes the results because a model must find small targets in the image, and that gets harder as targets shrink or as the image is compressed. - The OSWorld authors ran their desktop at "1920×1080" and found that "an increase in resolution directly correlates with enhanced performance" ([OSWorld paper](https://arxiv.org/html/2404.07972), read 2026-11-26). - ScreenSpot-Pro tests grounding on high-resolution screens from professional applications, with "smaller target sizes". Its authors report that the best existing grounding model reached "only 18.9%", and that "strategically reducing the search area enhances accuracy": their search method reached 48.1% ([ScreenSpot-Pro, arXiv 2504.07981](https://arxiv.org/abs/2504.07981), read 2026-11-26). So fix one resolution per environment, keep it the same between runs, and record it with every result. If a target is small, crop the area around it and send the crop at full detail. ## How does the harness know an action worked? The harness knows an action worked only by looking again, after the screen has settled. 1. **Wait for the screen to settle.** Playwright MCP, for example, waits after each action "for triggered work to settle", 500 ms by default (`--timeout-settle`, Playwright MCP README, read 2026-11-26). On a desktop, wait for the window title or a pixel region to stop changing. 2. **Take a new screenshot** and send it with the next model call, so the model sees the result of its own action. 3. **Compare before and after.** If nothing changed after a click, tell the model so, instead of letting it click the same point again. 4. **Cap the steps.** A step limit and a time limit stop a loop that is stuck. 5. **Log every step**: the screenshot, the model's raw answer, the scaled coordinates and the input sent. Most bad clicks are found by comparing the second and third. ## Should the model return coordinates, element numbers or element names? The model can return any of the three, and each needs a different harness. Table: Three ways for a model to name its target | Target format | What the model sees | What the harness does | Trade-off | |---|---|---|---| | Pixel coordinates | A plain screenshot | Scales the point and clicks it | Works on any app; most sensitive to scaling and grounding errors | | Element number (set-of-marks) | A screenshot with a numbered box on each clickable element | Looks up the element and clicks its centre | Easier for the model; needs a list of elements to draw | | Element reference | A text outline such as the accessibility tree | Clicks the element by reference | Precise and cheap; only works where the tree exists | The set-of-marks idea comes from a 2023 paper that overlays "a set of marks e.g., alphanumerics, masks, boxes" on an image so a model can refer to regions by label ([Set-of-Mark prompting, arXiv 2310.11441](https://arxiv.org/abs/2310.11441), read 2026-11-26). For browser agents, our comparison of [accessibility trees and screenshots](https://www.aiagentsandbox.io/accessibility-tree-vs-screenshots-for-browser-agents/) covers when each wins. ## What we read for this article - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/html/2404.07972), read 2026-11-26 - [pyautogui mouse documentation](https://pyautogui.readthedocs.io/en/latest/mouse.html), [quickstart](https://pyautogui.readthedocs.io/en/latest/quickstart.html) and [screenshot documentation](https://pyautogui.readthedocs.io/en/latest/screenshot.html), read 2026-11-26 - [xdotool manual](https://github.com/jordansissel/xdotool/blob/master/xdotool.pod), read 2026-11-26 - [Xvfb manual](https://www.x.org/releases/current/doc/man/man1/Xvfb.1.xhtml), read 2026-11-26 - [Playwright Mouse API](https://playwright.dev/docs/api/class-mouse), read 2026-11-26 - [Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26 - [Chrome DevTools MCP configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26 - [ScreenSpot-Pro (arXiv 2504.07981)](https://arxiv.org/abs/2504.07981), read 2026-11-26 - [Set-of-Mark prompting (arXiv 2310.11441)](https://arxiv.org/abs/2310.11441), read 2026-11-26 ## FAQ ### Does the model control the mouse directly? No. The model only returns text, such as an action name and a pair of coordinates. Your harness turns that into input events with a tool such as pyautogui or xdotool, or with a browser library such as Playwright. ### Why does my computer-use agent click in the wrong place? Usually because the screenshot the model saw was a different size from the screen. If you resize the image before sending it, multiply the returned coordinates by the screen size divided by the image size. High-density displays add a second scale, between CSS pixels and device pixels. ### Can computer use run without a monitor? Yes. On Linux a virtual display server such as Xvfb gives programs a screen in memory. The agent's screenshots and clicks work against that screen as they would on a real one. ### How is computer use different from browser automation? Browser automation addresses elements by selector or by the accessibility tree. Computer use addresses the screen by pixel position, so it works on any app, including ones with no automation interface, at the cost of precision and speed. --- # How to give a browser agent a persistent profile safely URL: https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Give a browser agent a persistent profile only when a saved login file is not enough. Use one profile per agent identity in its own directory, never a person's profile, one browser at a time, no saved passwords, the folder treated as a secret, and a known-good copy you restore when it drifts. To give a browser agent a persistent profile safely, treat the profile as a credential that belongs to one agent identity. Keep it in its own directory, open it in one browser at a time, store nothing in it the task does not need, and keep a known-good copy you can restore. This article is about the cases where persistence is needed; for the usual case, a fresh session per task, see [resetting browser state between sessions](https://www.aiagentsandbox.io/reset-browser-state-between-agent-sessions/). ## What is a persistent browser profile? A persistent browser profile is a user data directory that the browser reuses between runs. Chromium's documentation says "The user data directory contains profile data such as history, bookmarks, and cookies, as well as other per-installation local state", and that "Each profile is a subdirectory (often `Default`) within the user data directory" ([Chromium, User Data Directory](https://chromium.googlesource.com/chromium/src/+/main/docs/user_data_dir.md), read 2026-11-26). Playwright opens one with `launchPersistentContext`, which "Launches browser that uses persistent storage located at userDataDir and returns the only context". Its `userDataDir` is the "Path to a User Data Directory, which stores browser session data like cookies and local storage" ([Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype), read 2026-11-26). ## When does a browser agent need a persistent profile? A browser agent needs a persistent profile only when a saved login file cannot carry the state the task depends on. A storage state file holds cookies and local storage, and that covers most logins. Table: Saved login file compared with persistent profile | Need | Saved login file (storageState) | Persistent profile | |---|---|---| | Stay signed in to a site | Yes | Yes | | IndexedDB | Only if saved with `indexedDB: true` | Yes | | Session storage | No | Kept while the browser runs | | Installed extensions and their settings | No | Yes | | Site permissions granted earlier | No | Yes | | Starts clean apart from the login | Yes | No, everything accumulates | If every row you need says Yes in the first column, use the file. The [Playwright authentication guide](https://playwright.dev/docs/auth) describes the file and its limits (read 2026-11-26). ## Step 1: Which account and directory should the profile use? The profile should belong to one agent identity, signed in to an account made for the agent, in a directory nothing else uses. 1. **One identity per profile.** Never let two customers, two tasks of different trust, or two agents share a profile. 2. **An account made for the agent**, with the least rights the task needs. See [keeping credentials out of a browser agent](https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/). 3. **Never a person's profile.** Playwright warns that "automating the default Chrome user profile is not supported" and that pointing at Chrome's main "User Data" directory "may result in pages not loading or the browser exiting" (Playwright BrowserType API, read 2026-11-26). Chrome made the same choice for security: the remote debugging switches "will no longer be respected if attempting to debug the default Chrome data directory", and "A non-standard data directory uses a different encryption key" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26). 4. **A dedicated directory per identity**, for example `/profiles/`, readable only by the account the browser runs as (`chmod 700`). ## Step 2: How do I launch the agent's browser with the profile? Launch the browser with the profile's directory and nothing that exposes it to other programs. These examples show the profile option of three common tools; the paths are examples. Playwright (Node.js): ```js import { chromium } from 'playwright'; const context = await chromium.launchPersistentContext('/profiles/billing-agent', { headless: true, serviceWorkers: 'block', }); // ... the agent's task ... await context.close(); // also closes the browser ``` Playwright MCP, with the option its README documents ([Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26): ```bash npx @playwright/mcp@0.0.86 --headless --user-data-dir=/profiles/billing-agent ``` Chrome DevTools MCP, whose default profile directory "is not cleared between runs" ([Chrome DevTools MCP advanced usage](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26): ```bash npx chrome-devtools-mcp@1.14.0 --headless --userDataDir=/profiles/billing-agent --no-usage-statistics ``` Do not open a remote debugging port for a profile that holds a login unless the port is reachable only from inside the agent's sandbox. The Chrome DevTools MCP guide warns that with the port open, "Any application on your machine can connect to this port and control the browser." ## Step 3: How do I stop two browsers opening the same profile? Stop two browsers opening the same profile with a lock in your own scheduler, because the browser's refusal is an error, not a queue. - Playwright: "browsers do not allow launching multiple instances with the same User Data Directory" (Playwright BrowserType API). - Playwright MCP: "A persistent profile can only be used by one browser instance at a time" (Playwright MCP README). - Chrome DevTools MCP: "Only one browser can use it at a time" (advanced usage guide). Take a lock named after the profile before launch, release it after the context closes, and make a second task for the same identity wait or fail clearly. ## Step 4: What should never be stored in the profile? Never store passwords, payment details or a person's data in an agent's profile. Log in by code, then let the session cookies persist. This matters most on Linux. Chromium's documentation says it can store passwords in GNOME Libsecret, KWallet or "plain text", that "Passwords stored in plain text are not encrypted", and that "Chromium will fall back to `basic` if a requested or autodetected store is not available" ([Chromium, Linux Password Storage](https://chromium.googlesource.com/chromium/src/+/main/docs/linux/password_storage.md), read 2026-11-26). A headless container usually has no desktop keyring, so assume anything saved there is readable by whoever can read the directory. ## Step 5: How do I protect the profile directory? Protect the profile directory the way you protect a password, because cookies in it can sign in as the agent's account. 1. **Restrict file access** to the browser's user, and mount the directory only into that identity's sandbox. 2. **Encrypt it at rest** wherever it is stored between runs: the volume, the backup and any copy. 3. **Keep it out of logs, artifacts and images.** Do not bake a signed-in profile into a container image or attach it to a bug report. 4. **Limit where the browser can go** with a network allow-list, so an injected instruction cannot send the session elsewhere. See [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/). ## Step 6: How do I keep the profile from drifting? Keep the profile from drifting by restoring it from a known-good copy instead of letting every run add to it. 1. After signing in and setting up the profile once, close the browser and save a copy as the known-good version. 2. For each run, give the agent a fresh copy of the known-good version, never the copy another run used. 3. When the login expires, refresh it in the known-good version and save a new copy. 4. Compare a run's profile with the known-good one if a task starts behaving differently. New extensions, permissions or cookies for unexpected sites are signs of trouble. Copy only a closed profile. Copying while a browser has it open can capture files mid-write. ## How do I check the profile setup is safe? Check the setup with a short test before giving the profile to an agent. 1. Start a second browser on the same profile while the first is running. It should be refused, and your lock should have stopped it earlier. 2. Open the browser's saved passwords page in the profile. It should be empty. 3. From inside the sandbox, try to reach a site that is not on the allow-list. It should fail. 4. Start a run from the known-good copy and confirm the login works and nothing from the previous run is present. ## What we read for this article - [Chromium, User Data Directory](https://chromium.googlesource.com/chromium/src/+/main/docs/user_data_dir.md), read 2026-11-26 - [Chromium, Linux Password Storage](https://chromium.googlesource.com/chromium/src/+/main/docs/linux/password_storage.md), read 2026-11-26 - [Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype), read 2026-11-26 - [Playwright authentication guide](https://playwright.dev/docs/auth), read 2026-11-26 - [Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26 - [Chrome DevTools MCP advanced usage guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26 - [Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26 ## FAQ ### What is a persistent browser profile? It is a user data directory that the browser keeps on disk between runs, holding cookies, local storage, history, settings and extensions. Chromium's documentation describes the user data directory as containing profile data such as history, bookmarks and cookies. ### Can two agents use the same profile at once? No. Playwright's documentation says browsers do not allow launching multiple instances with the same user data directory, and both Playwright MCP and Chrome DevTools MCP say a profile can only be used by one browser at a time. ### Can I point an agent at my own Chrome profile? Do not. Playwright says automating the default Chrome user profile is not supported, and since Chrome 136 the remote debugging switches are ignored for the default data directory. It would also give the agent every site you are signed in to. ### Are passwords in a Linux browser profile encrypted? Not always. Chromium on Linux picks a password store from the desktop environment and falls back to a plain-text store when none is available, which is common in a container. Keep passwords out of the agent's profile. --- # Playwright MCP vs Chrome DevTools MCP: which browser server should an agent use? URL: https://www.aiagentsandbox.io/playwright-mcp-vs-chrome-devtools-mcp/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Use Playwright MCP when an agent automates tasks on websites, needs Firefox or WebKit, or should start each session from a saved login. Use Chrome DevTools MCP when the agent debugs or measures pages in Chrome, with traces, audits and memory snapshots. Both read the page as an accessibility tree. Playwright MCP and Chrome DevTools MCP are the two open-source Model Context Protocol servers most often used to give an AI agent a browser. They overlap on basic automation and differ on what they are for: Playwright MCP is built for driving web tasks, Chrome DevTools MCP for inspecting and measuring pages in Chrome. For each one on its own, see [what Playwright MCP is](https://www.aiagentsandbox.io/what-is-playwright-mcp/) and [what Chrome DevTools MCP is](https://www.aiagentsandbox.io/what-is-chrome-devtools-mcp/). ## How do Playwright MCP and Chrome DevTools MCP compare? They compare as follows, from each project's own documentation read on 2026-11-26. Table: Playwright MCP compared with Chrome DevTools MCP | | Playwright MCP | Chrome DevTools MCP | |---|---|---| | npm package | `@playwright/mcp` | `chrome-devtools-mcp` | | Version on npm, 2026-11-26 | 0.0.86 | 1.14.0 | | Licence | Apache-2.0 | Apache-2.0 | | Built on | Playwright | Puppeteer and Chrome DevTools | | Browsers | `--browser` accepts chrome, firefox, webkit, msedge | Officially Chrome and Chrome for Testing only | | Node.js | 20 or newer | `^20.19.0`, `^22.12.0` or 23 and later | | Page view for the model | Accessibility snapshot with element references | Accessibility-tree snapshot with element uids | | Clicking by coordinates | Opt-in, `--caps=vision` | Opt-in, `--experimentalVision` | | Default profile | Persistent, per workspace | Persistent, one shared directory | | Throwaway profile | `--isolated` | `--isolated` | | Load a saved login into a clean session | `--storage-state ` | Not in its configuration guide | | Cookie and storage tools | Opt-in, `--caps=storage` | Not listed in its tool reference | | Request interception | Opt-in, `--caps=network` (routes) | Opt-in network mocks | | Network allow and block lists | `--allowed-origins`, `--blocked-origins`; "*does not* serve as a security boundary" | `--allowedUrlPattern` (Chrome 149+), `--blockedUrlPattern` | | Performance traces and insights | Tracing with `--caps=devtools` | Built in, with performance insights and Lighthouse audits | | Memory heap snapshots | Not listed | 14 tools, with `--memoryDebugging` | | Usage statistics | None described in the README | On by default; `--no-usage-statistics` | | Reduced tool set | Playwright CLI suggested for coding agents | `--slim`, three tools | | Says it is a security boundary | No: "**not** a security boundary" | No: it "exposes content of the browser instance to the MCP clients" | Sources: [Playwright MCP README](https://github.com/microsoft/playwright-mcp), [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), its [configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md) and [tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md), and the npm registry entries for [@playwright/mcp](https://registry.npmjs.org/@playwright/mcp/latest) and [chrome-devtools-mcp](https://registry.npmjs.org/chrome-devtools-mcp/latest), all read 2026-11-26. "Not listed" means we did not find it in that project's documentation on that date. ## When should an agent use Playwright MCP? An agent should use Playwright MCP when its job is to complete tasks on websites. - **Task automation across engines.** It can run Chromium, Firefox or WebKit, which matters when a site behaves differently per engine. - **Clean sessions with a login.** `--isolated --storage-state ` starts every session empty except for one saved login, which is the pattern in [resetting browser state between sessions](https://www.aiagentsandbox.io/reset-browser-state-between-agent-sessions/). - **State inspection.** With `--caps=storage`, the agent can list and set cookies and local storage directly. - **Generated test code.** Its `--codegen` option chooses the language for generated code: TypeScript by default, or Python, Java or C#. ## When should an agent use Chrome DevTools MCP? An agent should use Chrome DevTools MCP when its job is to find out why a page is slow, broken or leaking memory in Chrome. - **Performance work.** `performance_start_trace`, `performance_stop_trace` and `performance_analyze_insight` record a trace and return findings; `lighthouse_audit` runs an audit. - **Debugging.** Console messages come with source-mapped stack traces, and network requests can be listed and read one by one. - **Memory.** Heap snapshots can be taken and compared once memory debugging is enabled. - **Narrow network scope.** `--allowedUrlPattern` restricts the browser to listed URL patterns on Chrome 149 and later, and rejects patterns it cannot enforce on redirects or subresources. Its design principles include "Token-Optimized: Return semantic summaries" and "Small, Deterministic Blocks" ([design principles](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/design-principles.md), read 2026-11-26), which suits an agent that reports findings rather than clicking through long flows. ## What do both need before an agent uses them? Both need the same surroundings, because neither one isolates the agent by itself. 1. **A disposable environment.** Run the server and browser in a container or virtual machine that holds nothing else of value. 2. **A throwaway profile.** Start with `--isolated` unless the task truly needs a long-lived login; see [a persistent profile for a browser agent](https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/). 3. **A pinned version.** Replace `@latest` with a version number so tools do not change between runs. 4. **Network rules outside the browser.** Send traffic through a proxy with an allow-list and block internal addresses, as in [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/). 5. **No code execution for agents that read untrusted pages.** Keep Playwright MCP's `browser_run_code_unsafe` away from them, and consider Chrome DevTools MCP's `--javascriptEvaluation=false`, which its guide says "is not a JavaScript sandbox" but does remove the evaluation tools. 6. **Telemetry off where it exists.** For Chrome DevTools MCP, `--no-usage-statistics` and `--no-performance-crux`. ## What we read for this article - [Playwright MCP README and option list](https://github.com/microsoft/playwright-mcp), read 2026-11-26 - [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), read 2026-11-26 - [Chrome DevTools MCP configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), [tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md) and [design principles](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/design-principles.md), read 2026-11-26 - npm registry entries for [@playwright/mcp](https://registry.npmjs.org/@playwright/mcp/latest) and [chrome-devtools-mcp](https://registry.npmjs.org/chrome-devtools-mcp/latest), read 2026-11-26 ## FAQ ### Can I run Playwright MCP and Chrome DevTools MCP together? Yes, as two servers in one MCP client. Give each its own browser profile, because both keep a persistent profile by default and a profile can only be used by one browser at a time. ### Which one uses fewer tokens? Both default to a text snapshot of the accessibility tree rather than screenshots. Chrome DevTools MCP has a --slim mode with three tools, and Playwright MCP's README suggests its CLI for coding agents that need to save context. ### Which one can click by screen coordinates? Both, and in both it is opt-in. Playwright MCP adds coordinate mouse tools with --caps=vision; Chrome DevTools MCP adds click_at with --experimentalVision. ### Does either one send usage data? Chrome DevTools MCP collects usage statistics by default and can be opted out with --no-usage-statistics. The Playwright MCP README describes no usage statistics. --- # What is an agentic browser, and how is it different from a browser agent? URL: https://www.aiagentsandbox.io/what-is-an-agentic-browser/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 An agentic browser is a web browser with an AI agent built in, which reads the pages you have open and acts on them for you. A browser agent is a separate program that drives its own browser. The difference matters because a built-in agent works inside your signed-in sessions. An agentic browser is a web browser that has an AI agent built into its interface. You ask it, in plain language, to summarise a page, compare products across tabs or fill in a form, and the agent reads the page and does the work in the browser you are already using. ## How does an agentic browser work? An agentic browser works by giving a language model access to the pages you have open and, in many designs, the ability to act on them. A University of Washington study published at an ICLR 2026 workshop describes agentic browsers as browsers "which integrate LLM chatbots directly into the browser", and notes that some are "implemented with 'browser-use' capabilities, where the agent 'becomes' the user" ([Roesner and Kohlbrenner, Agentic Browsers and the Same-Origin Policy](https://homes.cs.washington.edu/~franzi/pdf/roesner_kohlbrenner_2026_agentic_sop.pdf), read 2026-11-26). The same paper found that designs differ widely. At one end, "the most restrictive agentic browsers provide only limited information about a webpage to the agent in a predefined prompt format". At the other, "most of the least restrictive systems are full-fledged browser use agents that 'act' like human users" (same paper, section 6). In practice, a request goes through four steps: 1. You type a request into the browser's assistant panel. 2. The browser passes the page content, and sometimes other tabs, to a model. 3. The model returns an answer, or a sequence of actions such as click, type and navigate. 4. The browser carries out the actions in your session, with your cookies and logins. ## How is an agentic browser different from a browser agent and a computer-use agent? An agentic browser puts the agent inside a person's browser; a browser agent and a computer-use agent are programs that control a browser or desktop from outside. Table: Agentic browser compared with related terms | Term | What it is | Whose session it uses | Who usually runs it | |---|---|---|---| | Agentic browser | A browser with an assistant built in that can act on open pages | The person's own, signed in | An end user | | Browser agent | A program that drives its own browser to complete a task | A session created for the task | A developer or a product | | Web agent or web browsing agent | Research names for a browser agent | A session created for the task | Researchers and developers | | Computer-use agent | An agent that controls a whole desktop from screenshots | A desktop created for the task | A developer or a product | | Cloud browser | A browser running on a remote server, often driven by an agent | Whatever the operator loads into it | A developer or a product | The research literature mostly says "web agent". WebArena's paper is titled "A Realistic Web Environment for Building Autonomous Agents" ([arXiv 2307.13854](https://arxiv.org/abs/2307.13854), read 2026-11-26), and BrowseComp calls the agents it tests "Browsing Agents" ([arXiv 2504.12516](https://arxiv.org/abs/2504.12516), read 2026-11-26). Treat "web browsing agent" and "browser agent" as the same question. For how one works step by step, see [what a browser agent is](https://www.aiagentsandbox.io/what-is-a-browser-agent/); for desktops, see [what a computer-use agent is](https://www.aiagentsandbox.io/what-is-a-computer-use-agent/). ## Why does an agentic browser raise new security questions? An agentic browser raises new security questions because the agent can cross the boundary between websites that the browser itself enforces. That boundary is the same-origin policy, "a critical security mechanism that restricts how a document or script loaded by one origin can interact with a resource from another origin" ([MDN, Same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), read 2026-11-26). It is why a page you visit cannot read your email in another tab. An agent with access to every tab does not follow that rule by itself. The University of Washington study tested seven agentic browsers and found that "In the least restrictive cases, we find that if a malicious website can mount a successful prompt injection, then it can leverage the browser agent to circumvent the same-origin policy", for example "to steal cross-origin content or forge user actions on other sites" (Roesner and Kohlbrenner, abstract). The authors put the consequence in one line: "the strength of the same-origin policy is reduced to the strength of the agent's defenses against prompt injections" (same paper, section 1). They also reported "the ability to read masked user input like passwords" in some designs, and argued that warnings and confirmation prompts are not enough, because "users do not reliably notice or act on warnings" (same paper, sections 1 and 6). ## What would a safer agentic browser design look like? A safer agentic browser would limit what the agent can see and do per site, instead of trusting the model to refuse bad instructions. The study's authors list seven directions for future designs (Roesner and Kohlbrenner, section 6): 1. Define the interface between the web and the agent clearly. 2. Separate and isolate agents per origin. 3. Keep provenance for everything the agent reads. 4. Track or limit the flow of information and actions between origins. 5. Let certain sensitive actions be taken only by a real user, for example through secure interface elements. 6. Work out what the user intended and what they permitted. 7. Standardise across agentic browsers. The authors present these as research directions, not finished features. They also make a useful checklist when you evaluate an agentic browser. ## How can I use an agentic browser more safely today? Use an agentic browser more safely by keeping what matters out of its reach. 1. **Use a separate browser profile for agent tasks**, with no banking, email or admin sessions signed in. See [giving a browser agent a persistent profile safely](https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/). 2. **Close sensitive tabs** before asking the agent to work on a page you do not trust. 3. **Do not type secrets** into a page while the agent is reading it. 4. **Confirm every irreversible action** yourself: payments, deletions, messages and posts. 5. **Prefer read-only requests**, such as summaries, on untrusted pages. The authors of the study went further: until these designs mature, they "would go so far as to recommend that users avoid them" (Roesner and Kohlbrenner, section 6). ## Should I build my product on an agentic browser or a separate browser for the agent? Build automated products on a separate, isolated browser for the agent, not on a person's agentic browser. A separate browser starts clean, holds only the login the task needs, sits behind network rules you control and can be thrown away after the task. Those controls are covered in [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/) and [keeping credentials out of a browser agent](https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/). ## What we read for this article - [Roesner and Kohlbrenner, Agentic Browsers and the Same-Origin Policy, ICLR 2026 Workshop on Agents in the Wild](https://homes.cs.washington.edu/~franzi/pdf/roesner_kohlbrenner_2026_agentic_sop.pdf), read 2026-11-26 - [MDN, Same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), read 2026-11-26 - [WebArena paper (arXiv 2307.13854)](https://arxiv.org/abs/2307.13854), read 2026-11-26 - [BrowseComp paper (arXiv 2504.12516)](https://arxiv.org/abs/2504.12516), read 2026-11-26 ## FAQ ### Is an agentic browser the same as a browser agent? No. An agentic browser is a browser a person uses, with an assistant built in that can act on their open pages. A browser agent is a program, usually run by developers, that drives its own browser to complete a task. Both use a language model to decide clicks and typing. ### Is a web browsing agent the same as a browser agent? Usually yes. Research papers say web agent, browsing agent or browser agent for an AI system that completes tasks on websites. Some use browsing agent more narrowly, for research agents that search and read many pages without filling in forms. ### Are agentic browsers safe to use? They carry a new risk. A 2026 study of seven agentic browsers found that, in the least restrictive designs, a web page that succeeds with a prompt injection can use the agent to read or act on other sites. Keep sensitive sites out of the browser the agent works in. ### Can an agentic browser read my passwords? Some can see more than a page shows. The same study reported that some designs could read masked input, such as a typed password. Do not type secrets into a page while an agent is reading it. --- # Chrome DevTools MCP explained: what it does, its tools, and a safe setup for agents URL: https://www.aiagentsandbox.io/what-is-chrome-devtools-mcp/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Chrome DevTools MCP (chrome-devtools-mcp) is an open-source MCP server that lets an AI agent control and inspect a live Chrome browser, with DevTools features such as performance traces and network and console inspection. It sends usage statistics by default; turn that off for agents. Chrome DevTools MCP is an open-source Model Context Protocol server, published as the npm package `chrome-devtools-mcp`, that gives an AI agent a Chrome browser to control and inspect. Its README calls it "Chrome DevTools for agents" and says it gives an assistant "access to the full power of Chrome DevTools for reliable automation, in-depth debugging, and performance analysis" ([Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), read 2026-11-26). ## What can Chrome DevTools MCP do? Chrome DevTools MCP can automate a page and also inspect it the way a developer does in DevTools. The README lists three main features: - **Performance insights.** It "Uses Chrome DevTools to record traces and extract actionable performance insights". - **Debugging.** It can "Analyze network requests, take screenshots and check browser console messages (with source-mapped stack traces)". - **Automation.** It "Uses puppeteer to automate actions in Chrome and automatically wait for action results". It is available as an MCP server and as a command-line tool, `chrome-devtools`, from the same package. ## Which tools does Chrome DevTools MCP provide? Chrome DevTools MCP provides tools in categories, and most categories can be turned off with a flag. The counts below come from its tool reference. Table: Chrome DevTools MCP tool categories, from its tool reference | Category | Tools | Examples | Default | |---|---|---|---| | Input automation | 10 | click, fill, fill_form, press_key, upload_file | On | | Navigation automation | 6 | navigate_page, new_page, list_pages, wait_for | On | | Emulation | 2 | emulate, resize_page | On | | Performance | 3 | performance_start_trace, performance_analyze_insight | On | | Network | 2 | list_network_requests, get_network_request | On | | Debugging | 10 | take_snapshot, take_screenshot, evaluate_script, lighthouse_audit | On | | Memory | 14 | take_heapsnapshot, compare_heapsnapshots | Off, `--memoryDebugging` | | Network mocks | 2 | mock_network, remove_network_mock | Off | | Extensions | 5 | install_extension, list_extensions | Off | | WebAuthn | 1 | configure_webauthn | Off | Sources: [tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md) and [configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26. A `--slim` flag "Exposes a 'slim' set of 3 tools covering navigation, script execution and screenshots only". ## How does an agent use Chrome DevTools MCP? An agent uses Chrome DevTools MCP by taking a text snapshot of the page and acting on elements by their identifier. 1. `navigate_page` or `new_page` opens a URL. 2. `take_snapshot` returns "a text snapshot of the target page based on the a11y tree", which "lists page elements along with a unique identifier (uid)". The tool's description adds "Always use the latest snapshot" and "Prefer taking a snapshot over taking a screenshot". 3. `click`, `fill` or another input tool acts on an element, given "The uid of an element on the page from the page content snapshot". 4. Page-scoped tools take a `pageId`, because page ID routing is on by default, "useful for concurrent agent sessions". Clicking by screen position is off by default. `click_at` "requires flag: --experimentalVision=true", which "Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots" (configuration guide, read 2026-11-26). ## How do I install Chrome DevTools MCP? Install Chrome DevTools MCP by adding it to your MCP client's configuration. The README's minimal configuration: ```json { "mcpServers": { "chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] } } } ``` It needs a Node.js LTS release and "Chrome current stable version or newer" (README). The package's own engine field asks for Node `^20.19.0 || ^22.12.0 || >=23`, and the latest version on npm was 1.14.0 when we checked ([npm registry entry](https://registry.npmjs.org/chrome-devtools-mcp/latest), read 2026-11-26). Pin that version for automated runs. The server starts the browser only when a tool needs one: "Connecting to the Chrome DevTools MCP server on its own will not automatically start the browser" (README). ## What does Chrome DevTools MCP send by default, and how do I turn it off? Chrome DevTools MCP sends usage statistics by default, and some performance tools send page URLs to an outside API. Both can be switched off. - **Usage statistics.** The README says the maintainers collect "usage statistics (such as tool invocation success rates, latency, and environment information)" and that "Data collection is **enabled by default**". Opt out with `--no-usage-statistics`. Collection is also disabled if the `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` environment variable is set. - **Field data lookups.** The README says performance tools may send trace URLs to the Chrome User Experience Report (CrUX) API, to show field data beside lab data. Turn this off with `--no-performance-crux`. - **Update checks.** The server "periodically checks the npm registry for updates"; set `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS` to stop it. For an agent that browses customer or internal pages, turn all three off. ## How does Chrome DevTools MCP handle the browser profile? Chrome DevTools MCP reuses one persistent profile by default. Its advanced usage guide says the default user data directory is `$HOME/.cache/chrome-devtools-mcp/chrome-profile` on Linux and macOS, that it "is not cleared between runs", and that "Only one browser can use it at a time" ([advanced usage guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26). `--isolated` "creates a temporary user-data-dir that is automatically cleaned up after the browser is closed". Use it for agents, and use `--userDataDir` only when a task needs a long-lived login; see [a persistent profile for a browser agent](https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/). ## Should an agent connect to an already running Chrome? An agent should connect to an already running Chrome only if that browser was started for the agent, with its own profile. There are two ways, and both have warnings in the guide: 1. **`--browserUrl`** connects to a Chrome started with `--remote-debugging-port`. The guide warns: "Any application on your machine can connect to this port and control the browser." Chrome also requires a non-default `--user-data-dir` with that switch; Chrome's team explained the change by noting "an increase in attackers using Chrome Remote Debugging to extract cookies" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26). 2. **`--autoConnect`** connects to a Chrome the user is already running (Chrome 144 or later), after a permission dialog. The guide says it connects to "the default profile" and "has access to all open windows for the selected profile". That is a person's real browser; do not use it for unattended agents. ## How do I lock Chrome DevTools MCP down for an agent? Lock Chrome DevTools MCP down by starting it isolated, limiting where the browser may go, and turning off tools the agent does not need. This example uses only options from the configuration guide; the URL pattern is a placeholder for your own site: ```json { "mcpServers": { "chrome-devtools": { "command": "npx", "args": [ "-y", "chrome-devtools-mcp@1.14.0", "--headless", "--isolated", "--no-usage-statistics", "--no-performance-crux", "--allowedUrlPattern=https://app.example.com/*", "--javascriptEvaluation=false", "--fileNavigations=false", "--redactNetworkHeaders=true", "--proxyServer=http://egress-proxy:3128", "--viewport=1280x720" ] } } } ``` Read the guide's own limits before relying on any of these: - `--allowedUrlPattern` "Requires Chrome 149+". `--blockedUrlPattern` works on earlier versions. Both reject patterns that would not be enforced on redirects or subresources. - `--javascriptEvaluation=false` disables the evaluation tools, but "This is not a JavaScript sandbox: page scripts and JavaScript triggered through other permitted browser interactions (e.g. clicks or typing) still run". - `--fileNavigations=false` "is not a filesystem sandbox"; the guide says "Use OS sandboxing for full filesystem confinement". - File tools are limited to the OS temp directory when the client does not negotiate roots, unless `--allowUnrestrictedPaths` is set. Leave it unset. - The configuration file can change all of the above, so "Ensure that the configuration file and its parent directory are not writable by the agent." The README's own disclaimer is the summary: the server "exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools". Run it in a disposable environment and enforce network rules outside the browser, as in [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/). ## When should I pick Chrome DevTools MCP over Playwright MCP? Pick Chrome DevTools MCP when the agent's job is to debug or measure a page in Chrome: performance traces, Lighthouse audits, memory snapshots or console errors with source maps. Pick [Playwright MCP](https://www.aiagentsandbox.io/what-is-playwright-mcp/) when the job is plain task automation, needs Firefox or WebKit, or needs a saved login loaded into an isolated session. Our [side-by-side comparison](https://www.aiagentsandbox.io/playwright-mcp-vs-chrome-devtools-mcp/) has the details. ## What we read for this article - [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), read 2026-11-26 - [Chrome DevTools MCP configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26 - [Chrome DevTools MCP advanced usage guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26 - [Chrome DevTools MCP tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md), read 2026-11-26 - [npm registry entry for chrome-devtools-mcp](https://registry.npmjs.org/chrome-devtools-mcp/latest), read 2026-11-26 - [Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26 ## FAQ ### Is Chrome DevTools MCP the same as Playwright MCP? No. Both are open-source MCP servers that give an agent a browser and an accessibility-tree snapshot. Chrome DevTools MCP is built on Puppeteer and adds DevTools features such as performance traces and memory snapshots; Playwright MCP is built on Playwright and supports more browser engines. ### Does Chrome DevTools MCP work with Chromium or other browsers? Its README says it officially supports Chrome and Chrome for Testing only. Other Chromium-based browsers may work but are not guaranteed. ### Does Chrome DevTools MCP send data anywhere? By default it collects usage statistics, and its performance tools may send trace URLs to the Chrome User Experience Report API. Pass --no-usage-statistics and --no-performance-crux, or set the documented environment variables, to turn both off. ### Where does Chrome DevTools MCP keep the browser profile? In $HOME/.cache/chrome-devtools-mcp/chrome-profile on Linux and macOS, reused between runs and not cleared. Pass --isolated for a temporary profile that is deleted when the browser closes. --- # Playwright MCP explained: what it is, how an agent uses it, and how to set it up URL: https://www.aiagentsandbox.io/what-is-playwright-mcp/ Author: AIAgentSandbox editors Published: 2026-11-26 Updated: 2026-11-26 Playwright MCP is an open-source Model Context Protocol server that lets an AI agent drive a real browser through Playwright. The agent reads an accessibility snapshot of the page and acts on elements by reference, so it needs no vision model. You add it to an MCP client with one npx command. Playwright MCP is an open-source server that exposes a browser to AI agents through the Model Context Protocol. Its README describes it as "A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright", which "enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models" ([Playwright MCP README](https://github.com/microsoft/playwright-mcp), read 2026-11-26). The package is `@playwright/mcp`. ## What is MCP, in one paragraph? MCP is a standard way for an AI application to call tools that live outside it. The protocol's own site calls it "an open-source standard for connecting AI applications to external systems" ([What is the Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro), read 2026-11-26). An MCP client, such as a coding assistant or your own agent, starts or connects to an MCP server, reads its list of tools, and lets the model call them. Playwright MCP is one such server, and its tools are browser actions. ## How does an agent use Playwright MCP? An agent uses Playwright MCP by asking for a snapshot of the page, choosing an element from it, and calling an action tool with that element's reference. 1. The agent calls `browser_navigate` to open a URL. 2. It calls `browser_snapshot`, which captures an "accessibility snapshot of the current page" and which the tool's own description calls "better than screenshot". 3. The snapshot is a text outline of the page's roles and names, with a reference for each element. 4. The agent calls an action such as `browser_click`, passing the "Exact target element reference from the page snapshot". 5. After the action, it reads the new state and decides the next step. The README lists the design goals that follow from this: "Uses Playwright's accessibility tree, not pixel-based input", "No vision models needed, operates purely on structured data", and "Avoids ambiguity common with screenshot-based approaches" (Playwright MCP README, read 2026-11-26). If you are deciding between this and screenshots, see [accessibility tree or screenshots](https://www.aiagentsandbox.io/accessibility-tree-vs-screenshots-for-browser-agents/). ## Which tools does Playwright MCP provide? Playwright MCP provides a core set of browser tools by default and further groups that you switch on with the `--caps` option. Table: Playwright MCP tool groups, from its README | Group | Examples | On by default | |---|---|---| | Core automation | browser_navigate, browser_snapshot, browser_click, browser_type, browser_fill_form, browser_select_option, browser_take_screenshot, browser_wait_for, browser_evaluate | Yes | | Tab management | browser_tabs | Yes | | Network | browser_route, browser_unroute, browser_network_state_set | No, `--caps=network` | | Storage | browser_cookie_list, browser_localstorage_get, browser_storage_state | No, `--caps=storage` | | DevTools | browser_start_tracing, browser_start_video | No, `--caps=devtools` | | Coordinate-based | browser_mouse_click_xy, browser_mouse_drag_xy | No, `--caps=vision` | | PDF | browser_pdf_save | No, `--caps=pdf` | | Test assertions | browser_verify_element_visible, browser_generate_locator | No, `--caps=testing` | One core tool needs special care. `browser_run_code_unsafe` runs a Playwright snippet and, in the README's words, "executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent". Treat any agent that can call it as able to run code wherever the server runs. ## How do I install Playwright MCP? Install Playwright MCP by adding it to your MCP client's server list; the client starts it with npx. It needs "Node.js 20 or newer" (Playwright MCP README, read 2026-11-26). The README's standard configuration, which most clients accept: ```json { "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } } } ``` For anything automated, pin a version instead of `@latest`, so a new release cannot change your agent's tools between runs. At the time of writing that would be `@playwright/mcp@0.0.86` ([npm registry entry](https://registry.npmjs.org/@playwright/mcp/latest), read 2026-11-26). ## How do I run Playwright MCP headless on a server? Run Playwright MCP headless on a server with `--headless`, and give it a port so clients connect over HTTP instead of starting it themselves. The browser is "headed by default" according to the option list, and the README's standalone mode uses `--port`. ```bash npx @playwright/mcp@0.0.86 --headless --port 8931 --host 0.0.0.0 --allowed-hosts mcp-browser ``` The client then points at the server's `/mcp` endpoint, for example `"url": "http://mcp-browser:8931/mcp"`, where `mcp-browser` is the server's name on your private network. Three options from the README matter here: - `--host` is "Default is localhost. Use 0.0.0.0 to bind to all interfaces." Bind to all interfaces only on a private network. - `--allowed-hosts` lists the hosts the server will serve from; it "Defaults to localhost, loopback IPs and the host passed via --host". - The project's Docker image "only supports headless chromium at the moment". ## How does Playwright MCP handle the browser profile? Playwright MCP keeps a persistent profile by default, and offers an isolated mode that keeps it in memory. Table: Playwright MCP profile modes | Mode | How to choose it | What persists | |---|---|---| | Persistent (default) | No option, or `--user-data-dir ` | Cookies, logins and storage, on disk, between sessions | | Isolated | `--isolated` | Nothing; "keep the browser profile in memory, do not save it to disk" | | Isolated with a saved login | `--isolated --storage-state ` | Only what the storage state file holds | | Extension | `--extension` | Connects to tabs in a browser you already run, with its logins | The README warns that "A persistent profile can only be used by one browser instance at a time, so concurrent MCP clients sharing the same workspace will conflict". For agents, isolated mode with a storage state file is usually the right default; see [resetting browser state between sessions](https://www.aiagentsandbox.io/reset-browser-state-between-agent-sessions/) and, when you do need persistence, [a persistent profile for a browser agent](https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/). Avoid the extension mode for unattended agents. It "allows you to connect to existing browser tabs and leverage your logged-in sessions and browser state", which gives the agent a person's real sessions. ## What should a Playwright MCP configuration for an agent sandbox include? A configuration for an agent sandbox should start clean, write files to a known place, and route traffic through a proxy you control. This is an example, built only from options in the README; adjust paths and the proxy address to your setup: ```json { "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@0.0.86", "--headless", "--isolated", "--storage-state=/run/secrets/site-login.json", "--block-service-workers", "--viewport-size=1280x720", "--output-dir=/work/out", "--proxy-server=http://egress-proxy:3128", "--redact-url-params=access_token,code" ] } } } ``` What each line buys you: `--isolated` discards the session at close; `--storage-state` loads one login without a profile; `--block-service-workers` keeps service workers from bypassing request routing; a fixed viewport keeps screenshots comparable; `--proxy-server` sends traffic through a proxy where your allow-list lives. The README is explicit that some of these are conveniences only: `--allowed-origins` "*does not* serve as a security boundary and *does not* affect redirects", and the `secrets` setting "is a convenience and not a security feature". Enforce network rules outside the browser, as in [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/). ## Is Playwright MCP safe to give to an agent? Playwright MCP is as safe as the environment you run it in. Its README states: "Playwright MCP is **not** a security boundary" (Playwright MCP README, read 2026-11-26). Run it in a container or virtual machine that holds nothing else of value, with no personal profile, a network allow-list enforced outside the browser, and `browser_run_code_unsafe` out of reach of any agent that reads untrusted pages. The README also notes a design choice worth knowing: by default, file access "is restricted to workspace root directories (or cwd if no roots are configured) only, and navigation to file:// URLs is blocked". `--allow-unrestricted-file-access` turns that off; leave it off. ## When is the Playwright CLI a better fit than Playwright MCP? The Playwright CLI is a better fit for coding agents that care most about context size. The README says coding agents "increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient", while MCP "remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure" (Playwright MCP README, read 2026-11-26). For a comparison with the other widely used browser server, see [Playwright MCP vs Chrome DevTools MCP](https://www.aiagentsandbox.io/playwright-mcp-vs-chrome-devtools-mcp/). ## What we read for this article - [Playwright MCP README and option list](https://github.com/microsoft/playwright-mcp), read 2026-11-26 - [npm registry entry for @playwright/mcp](https://registry.npmjs.org/@playwright/mcp/latest), read 2026-11-26 - [What is the Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro), read 2026-11-26 ## FAQ ### Does Playwright MCP need a vision model? No. Its README says it operates purely on structured data and needs no vision model, because the agent works from the page's accessibility snapshot. Screenshots and coordinate-based mouse tools exist, but the coordinate tools are opt-in with --caps=vision. ### Is Playwright MCP free and open source? Yes. The @playwright/mcp package is published under the Apache-2.0 licence. Version 0.0.86 was the latest on npm when we checked on 2026-11-26. ### Can several agents share one Playwright MCP profile? No. A persistent profile can only be used by one browser instance at a time. Start each extra client with --isolated or point it at its own --user-data-dir. ### Is Playwright MCP a security boundary? No, and its README says so. Its origin allow and block lists also do not serve as a security boundary. Run it inside an isolated container or virtual machine with network rules enforced outside the browser. ### Which browsers does Playwright MCP support? The --browser option accepts chrome, firefox, webkit and msedge. The project's Docker image supports headless Chromium only. --- # Headless vs headed browsers for AI agents URL: https://www.aiagentsandbox.io/headless-vs-headed-browsers-for-ai-agents/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 A headless browser runs without a visible window; a headed browser draws one. Most AI browser agents should use Chrome's new headless mode, which is the real browser without the screen. Use headed mode when the agent works from desktop screenshots or a site needs a window. A headless browser is a web browser that runs without drawing a window. It loads pages, runs JavaScript and keeps cookies like any browser, but nothing appears on a screen, and a program drives it. A headed browser is the ordinary kind, with a visible window that needs a display. AI agents can use either. The choice changes memory use, what the agent can observe, and how some sites respond. ## What changed in Chrome's headless mode? Chrome's headless mode changed in Chrome 112 from a separate browser implementation to the real browser. The Chrome team describes the old mode as "a separate, alternate browser implementation" that "didn't share any of the Chrome browser code". Then: "In Chrome 112, the Headless mode was updated so that Chrome creates, but doesn't display, any platform windows. All other functions, existing and future, are available with no limitations" ([Chrome headless mode docs](https://developer.chrome.com/docs/chromium/headless), read 2026-11-24). The old implementation did not disappear. "Since Chrome 132.0.6793.0 the old Headless mode is only available as a standalone binary named `chrome-headless-shell`" (same page). Chrome's announcement adds that running Chrome "with --headless or --headless=new runs the new Headless mode" ([Removing old headless from Chrome](https://developer.chrome.com/blog/removing-headless-old-from-chrome), published October 23, 2024, read 2026-11-24). So in 2026 there are three ways to run Chromium for an agent: Table: The three ways to run Chromium for an agent | Mode | What it is | Needs a display | Notes | |---|---|---|---| | New headless (`--headless`) | The full Chrome browser with windows created but not shown | No | Same code paths as headed Chrome | | chrome-headless-shell | The old headless implementation, a separate lightweight binary | No | Described as more performant for automation that does not need every feature | | Headed | The normal browser with a visible window | Yes, a real or virtual display | Needed for screenshot-of-desktop agents | ## What do Playwright and Puppeteer use by default? Playwright and Puppeteer both default to headless, but they pick different headless builds. - **Playwright** "ships a regular Chromium build for headed operations and a separate chromium headless shell for headless mode". You "can opt into the new headless mode by using `'chromium'` channel" ([Playwright browsers](https://playwright.dev/docs/browsers), read 2026-11-24). Its test option `headless` "Defaults to `true`" ([Playwright test options](https://playwright.dev/docs/test-use-options), read 2026-11-24). - **Puppeteer** says "By default Puppeteer launches the browser in the Headless mode", meaning the new mode, and `headless: 'shell'` selects chrome-headless-shell. "Before v22, Puppeteer launched the old Headless mode by default" ([Puppeteer headless modes](https://pptr.dev/guides/headless-modes), read 2026-11-24). Playwright's own page warns about the branded browsers' new headless mode: it is "closer to a regular headed mode" and you should "expect different behavior in some cases". That warning applies both ways. If an agent passes in one mode, test it in the other before you switch. ## When should an AI agent use headless mode? An AI agent should use headless mode when it reads the page through the browser itself: the accessibility tree, the DOM or a page screenshot taken by the driver. That covers most browser agents. Headless gives you: 1. **No display server.** Nothing to install or keep running beyond the browser. 2. **Lower memory per session.** No window compositing for a screen nobody sees. 3. **The same screenshots.** `page.screenshot()` works in headless mode, so a vision model still gets an image of the page. Pick the new headless mode over chrome-headless-shell when the agent visits arbitrary public sites. It is the real browser, so pages see the same features a normal Chrome has. Pick chrome-headless-shell when the agent only visits known pages and you want the lighter binary. ## When should an AI agent use a headed browser? An AI agent should use a headed browser when it observes a whole desktop rather than a single page, or when a site depends on a visible window. - **Computer-use agents.** An agent that takes screenshots of the screen and moves a mouse needs a real desktop with a window manager. Benchmarks such as OSWorld run a full desktop in a virtual machine for this reason ([OSWorld paper](https://arxiv.org/html/2404.07972), read 2026-11-24). - **Native dialogs and extensions.** File pickers, print dialogs and some extension pop-ups only exist with a window. - **Live viewing.** A person who watches or takes over the session needs something to see. A headed browser on a virtual display can be streamed. - **Debugging.** A visible window shows what the agent is doing in real time. On a Linux server, a headed browser runs against a virtual display such as Xvfb. That adds a process and some memory per session, which is why it is not the default. ## Does headless mode get blocked more often? Headless mode can be blocked more often on some sites, though less than before. The old headless implementation differed from Chrome in ways sites could test for. The new mode runs the same browser code, so most of those differences are gone. Sites can still see other signals: the automation flags set by drivers, the browser's language and screen settings, and the reputation of the network the request comes from. A headed browser does not change the last two. The honest approach for an agent is to respect a site's terms and robots rules, and to use an official API where one exists. ## How do I switch an agent between headless and headed? You switch modes with one launch option, and then check two settings that differ between them. 1. In Playwright, launch with `headless: false` for headed. For the new headless mode with the full Chromium build, set `channel: 'chromium'`. 2. In Puppeteer, `headless: true` is the new mode, `headless: 'shell'` is chrome-headless-shell, and `headless: false` is headed. 3. Set the viewport size explicitly. Headless and headed defaults differ, and an agent that works from screenshots is sensitive to layout. 4. On a server, start a virtual display before launching a headed browser. 5. Run the agent's test tasks in the new mode before changing production. ## Which mode is best for a browser sandbox? For a sandboxed browser agent, new headless mode is the common default: it is the real browser, it needs nothing extra in the container, and it keeps each session small. Move to headed mode for computer-use agents, for human takeover, or for sites that need a window. Whichever you choose, keep Chromium's own sandbox on and run each session in a disposable environment, as described in [what a browser sandbox is](https://www.aiagentsandbox.io/what-is-a-browser-sandbox/). ## What we read for this article - [Chrome headless mode](https://developer.chrome.com/docs/chromium/headless), read 2026-11-24 - [Removing old headless from Chrome](https://developer.chrome.com/blog/removing-headless-old-from-chrome), read 2026-11-24 - [chrome-headless-shell announcement](https://developer.chrome.com/blog/chrome-headless-shell), read 2026-11-24 - [Playwright browsers](https://playwright.dev/docs/browsers), read 2026-11-24 - [Playwright test options](https://playwright.dev/docs/test-use-options), read 2026-11-24 - [Puppeteer headless modes](https://pptr.dev/guides/headless-modes), read 2026-11-24 - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/html/2404.07972), read 2026-11-24 ## FAQ ### What is a headless browser? A headless browser is a web browser that loads and runs pages without showing a window on a screen. Programs control it through an automation protocol instead of a mouse and keyboard. ### Is headless Chrome the same browser as normal Chrome? Since Chrome 112, the new headless mode is the real Chrome browser with its windows created but not shown. The older, separate implementation now ships as its own binary called chrome-headless-shell. ### Is headless faster than headed? It usually uses less memory and needs no display server. chrome-headless-shell, the old mode, is described by Chrome and Puppeteer as more performant for automation that does not need the full feature set. ### Can websites tell that a browser is headless? Sometimes. The old headless mode differed from Chrome in visible ways. The new mode is much closer to a normal browser, but sites can still look at other signals, such as automation flags and network origin. --- # How to keep credentials out of a browser agent's context and logs URL: https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 Keep credentials out of a browser agent by letting code, not the model, handle logins. Load a saved login state or fill password fields from a secret store in the harness, give the agent its own least-privilege account, and mask secrets in traces, videos and logs before they are stored. To keep credentials out of a browser agent's context and logs, never give them to the model. Let the harness, the code around the model, handle every login, and treat everything the agent sees or records as something that may be read later. ## Where can a credential leak from a browser agent? A credential can leak from a browser agent through six places: Table: Where browser agent credentials leak | Place | How it leaks | |---|---| | The prompt and conversation | The model can repeat it, and it is sent to the model provider | | Model and application logs | Prompts and tool calls are often logged in full | | Traces and screenshots | A trace stores DOM snapshots, so a typed password can be in it | | Videos and session replays | Every keystroke shown on screen is recorded | | Saved login state files | Cookies and tokens in the file let anyone act as the user | | A manipulated agent | A web page instructs the agent to type secrets into an attacker's form | The OWASP Top 10 for LLM applications lists two of these risks directly. LLM02, Sensitive Information Disclosure, covers credentials among the data a model application can expose. LLM01, Prompt Injection, covers the last row: "Indirect prompt injections occur when an LLM accepts input from external sources, such as websites or files" ([OWASP LLM01:2025](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), [OWASP LLM02:2025](https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/), read 2026-11-24). Research shows the last row is practical. The EIA study placed hidden elements on real websites and reported "up to 70% ASR in stealing specific PII" from a capable web agent ([EIA, arXiv 2409.11295](https://arxiv.org/abs/2409.11295), read 2026-11-24). ## Step 1: How do I log an agent in without the model seeing the password? Log the agent in with code, before or during the task, so the password never enters the model's context. There are two patterns. **Pattern A: a saved login state.** 1. Sign in once in a clean browser context, by script or by hand. 2. Save it with Playwright's `context.storageState({ path })`. 3. Start each agent session with `browser.newContext({ storageState })`, which Playwright says "can be used to initialize context with logged-in information" ([Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24). The agent opens the site already signed in. It never sees a password. **Pattern B: a login tool.** 1. Give the agent a tool such as `login(site)` instead of a password. 2. When the agent calls it, the harness reads the secret from your secret store and fills the field with `locator.fill()`, outside the model loop. 3. The tool returns only "signed in" or "failed" to the model. 4. Check the page's origin before filling, so the tool only fills the password on the real site's address. Pattern B also handles one-time codes: the tool can fetch the code from an authenticator or ask a person, and the model sees neither. ## Step 2: How do I protect the saved login state file? Protect the login state file like a password, because it works like one. Playwright's authentication guide says "The browser state file may contain sensitive cookies and headers that could be used to impersonate you or your test account" and "We strongly discourage checking them into private or public repositories" ([Playwright authentication](https://playwright.dev/docs/auth), read 2026-11-24). 1. Keep it in your secret store, not in the image or the repository. 2. Mount it into the session at start and delete the session afterwards. 3. Give it a short life: refresh it on a schedule and revoke old sessions on the site. 4. Use one file per agent identity, never one shared account for all agents. ## Step 3: Which account should the agent use? The agent should use its own account with the least privilege the task needs, not a person's account. OWASP's first mitigation for prompt injection is to "Enforce privilege control and least privilege access", and to "Restrict the model's access privileges to the minimum necessary for its intended operations". It also advises: "Provide the application with its own API tokens for extensible functionality" (OWASP LLM01:2025, read 2026-11-24). In practice: - Create a service account per agent or per task type. - Give it read access if the task only reads. - Turn on the site's own alerts and limits for that account. - Never reuse a person's browser profile, which carries every site they are signed in to. Chrome no longer allows its remote debugging switches on the default profile, partly because of "an increase in attackers using Chrome Remote Debugging to extract cookies" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-24). ## Step 4: How do I keep secrets out of traces, videos and logs? Keep secrets out of recordings by masking at capture time, not by cleaning up afterwards. 1. **Start recording after login.** With pattern A, the login happened before the session. With pattern B, pause tracing and video around the login tool call. 2. **Mask inputs in DOM replays.** rrweb masks password fields by default (`maskInputOptions` defaults to `{ password: true }`), can mask every input with `maskAllInputs`, and skips any element with the class `rr-block`: "An element with the class name `.rr-block` will not be recorded" ([rrweb guide](https://github.com/rrweb-io/rrweb/blob/master/guide.md), read 2026-11-24). 3. **Treat Playwright traces as sensitive.** A trace holds "a set of complete DOM snapshots for each action" and the network requests ([Playwright trace viewer](https://playwright.dev/docs/trace-viewer), read 2026-11-24). Cookies and authorisation headers in those requests are in the trace. Store traces with the same access rules as the login state. 4. **Redact before logging.** Filter known secret values and patterns (tokens, `Authorization` headers, `Set-Cookie`) out of prompt logs, tool-call logs and network logs before they leave the session. 5. **Keep recordings for a limited time.** Delete them on a schedule. ## Step 5: How do I stop a manipulated agent from sending secrets out? Stop a manipulated agent from sending secrets out by limiting where the browser can connect and by requiring approval for risky actions. OWASP lists "Require human approval for high-risk actions" among its mitigations (OWASP LLM01:2025, read 2026-11-24). Combine that with a network allow-list, so that even if an agent is tricked into posting data, the browser cannot reach the attacker's site. Our guide to [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/) shows how. ## What is a quick checklist for browser agent credentials? Use this checklist before an agent touches a real account: 1. No password, token or cookie appears in the prompt, the system message or tool results. 2. Logins happen through a saved state file or a login tool run by code. 3. The agent has its own least-privilege account. 4. Login state files live in a secret store and expire. 5. Recordings start after login, and password fields are masked. 6. Logs are filtered for secrets before storage. 7. The browser can only reach the sites the task needs. 8. Purchases, deletions and messages to new recipients need a person's approval. ## What we read for this article - [OWASP LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24 - [OWASP LLM02:2025 Sensitive Information Disclosure](https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/), read 2026-11-24 - [EIA: Environmental Injection Attack on Generalist Web Agents (arXiv 2409.11295)](https://arxiv.org/abs/2409.11295), read 2026-11-24 - [Playwright authentication](https://playwright.dev/docs/auth), read 2026-11-24 - [Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24 - [Playwright trace viewer](https://playwright.dev/docs/trace-viewer), read 2026-11-24 - [rrweb guide](https://github.com/rrweb-io/rrweb/blob/master/guide.md), read 2026-11-24 - [Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-24 ## FAQ ### Why should I not put a password in the agent's prompt? Everything in the prompt can be repeated by the model, stored in logs and sent to the model provider. A page carrying a prompt injection can also ask the agent to type what it knows into a form. A password the model never saw cannot be leaked that way. ### How can an agent log in without seeing the password? The harness logs in for it. Either load a saved login state file into a new browser context, or let the agent ask for a login and have code fill the password field from a secret store, outside the model's view. ### Are Playwright storageState files sensitive? Yes. Playwright's documentation says the file may contain sensitive cookies and headers that could be used to impersonate the account, and strongly discourages checking it into any repository. ### How do I keep passwords out of session recordings? Mask them at capture time. rrweb masks password inputs by default and can mask all inputs or block marked elements. For screenshots and videos, keep login steps out of the recording or blur the fields. --- # How to record and replay a browser agent's session URL: https://www.aiagentsandbox.io/record-and-replay-browser-agent-sessions/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 Record a browser agent's session with a Playwright trace for debugging (actions, DOM snapshots, screenshots, network, console), add a video or an rrweb DOM replay for people who watch it, and save a HAR file to replay the network later. Tie each recording to the agent's step log. To record and replay a browser agent's session, capture a Playwright trace for debugging, add a video or a DOM replay for people who need to watch, and keep a HAR file if you want to replay the network. Then link each recording to the agent's own log of what it decided at each step. ## Why record a browser agent's session? Record a browser agent's session because its result alone does not tell you why it succeeded or failed. An agent's run has two halves: what the model decided, and what the browser showed and did. A recording of the browser half answers questions the model log cannot: - Did the page load fully before the agent clicked? - Was the element the agent chose the one the model described? - Did a pop-up, a slow API or a login prompt get in the way? - Did the agent visit anything it should not have? Benchmark authors keep the same evidence. Mind2Web stores, for each task, an MHTML copy, a DOM snapshot, a screenshot, a HAR of "all network traffic for replay" and the Playwright trace ([Mind2Web repository](https://github.com/OSU-NLP-Group/Mind2Web), read 2026-11-24). ## What are the ways to record a browser session? There are four common ways to record a browser session, and they answer different questions. Table: Ways to record a browser agent session | Method | What it captures | Best for | Size | |---|---|---|---| | Playwright trace | Each action, DOM snapshots, screenshots, network, console | Debugging a failed step | Medium | | Video | The viewport as a moving picture | People watching a run | Large | | DOM replay (rrweb) | The page structure and every change, plus input events | Watching and inspecting, with masking | Small to medium | | HAR file | Every network request and response | Replaying or mocking the network | Small to large | ## Step 1: How do I record a Playwright trace? Record a Playwright trace by starting tracing on the browser context before the agent acts and stopping it to a file at the end. ``` await context.tracing.start({ screenshots: true, snapshots: true }); // the agent runs its steps here await context.tracing.stop({ path: 'trace.zip' }); ``` What the trace holds, from Playwright's documentation ([Playwright trace viewer](https://playwright.dev/docs/trace-viewer), read 2026-11-24): - "Playwright captures a set of complete DOM snapshots for each action." - "each trace records a screencast and renders it as a film strip." - "The Network tab shows you all the network requests that were made during your test." - Console logs "from the browser as well as from your test". The `screenshots` option builds the timeline preview, and `snapshots: true` "is a shortcut for `{ dom: true }`" ([Playwright Tracing API](https://playwright.dev/docs/api/class-tracing), read 2026-11-24). Open the result with `npx playwright show-trace trace.zip`. For long agent runs, use trace chunks (`tracing.startChunk()` and `stopChunk()`) to write one file per task or per group of steps, so a single file does not grow without limit. ## Step 2: How do I record a video of the session? Record a video by setting `recordVideo` when you create the context. Playwright "Enables video recording for all pages into `recordVideo.dir` directory" ([Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24). Two details matter ([Playwright videos](https://playwright.dev/docs/videos), read 2026-11-24): 1. "Videos are saved upon browser context closure", so close the context before collecting the file. 2. "The video size defaults to the viewport size scaled down to fit 800x800." Set the size explicitly if people need to read small text. For a live view rather than a file, Chromium's DevTools Protocol has `Page.startScreencast`, which "Starts sending each frame using the `screencastFrame` event" as compressed images. It is marked experimental ([DevTools Protocol Page domain](https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/pdl/domains/Page.pdl), read 2026-11-24). ## Step 3: How do I record a DOM replay with rrweb? Record a DOM replay by running rrweb's recorder in each page of the session and sending its events to storage. rrweb describes itself as "'record and replay the web', which is a tool for recording and replaying users' interactions on the web". Its recorder "builds on an initial snapshot to record all HTML state changes (mutations) and user interactions", and its player "rebuilds the inital snapshot and replays the list or stream of subsequent events" ([rrweb repository](https://github.com/rrweb-io/rrweb), read 2026-11-24). For an agent, inject the recorder with `context.addInitScript()` so it runs on every page, and set its privacy options ([rrweb guide](https://github.com/rrweb-io/rrweb/blob/master/guide.md), read 2026-11-24): - `maskAllInputs: true` to "mask all input content as *". - `maskInputOptions` already masks password fields by default. - `blockClass` (default `rr-block`) or `blockSelector` for areas that must not be recorded. Note that the page itself can see an injected recorder, so keep it to sessions you control. ## Step 4: How do I record and replay the network with HAR? Record the network as a HAR file when you want to replay a session against the same responses. Playwright explains: "A HAR file is an HTTP Archive file that contains a record of all the network requests that are made when a page is loaded" ([Playwright mock APIs](https://playwright.dev/docs/mock), read 2026-11-24). 1. Record with `context.routeFromHAR('session.har', { update: true })`, or with the `recordHar` context option. 2. Replay by calling `routeFromHAR` again without `update`. Requests that match are served from the file. Replaying the network makes a failed run repeatable even after the live site changes. Benchmarks use the same idea: WebArena-Verified scores runs from the agent's response plus a network trace, so evaluation works "without requiring live web environments using network trace replay" ([WebArena-Verified repository](https://github.com/ServiceNow/webarena-verified), read 2026-11-24). ## Step 5: How do I link recordings to the agent's decisions? Link recordings to decisions by giving every step one ID that appears in both the agent's log and the browser recording. 1. Create a run ID for each task and put it in the file names of the trace, video, replay and HAR. 2. Number each agent step. Log the model's input summary, its chosen action and the result under that number. 3. Before each action, add the step number to the trace, for example with a named trace group, so the trace viewer shows it. 4. Store the model log and the recordings together, and keep both for the same period. With this, a reviewer can open step 14 in the model log, see why the agent chose to click, and jump to step 14 in the trace to see what the page actually looked like. ## How should recordings be stored and kept? Store recordings as sensitive data, with access controls and a deletion date. Traces and HAR files contain network requests, including cookies and authorisation headers, and videos show everything on screen. Start recording after login, mask inputs, filter secrets from logs, and delete recordings once they are no longer needed for debugging or audit. Our guide to [keeping credentials out of a browser agent](https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/) covers the masking steps. ## What we read for this article - [Playwright trace viewer](https://playwright.dev/docs/trace-viewer), read 2026-11-24 - [Playwright Tracing API](https://playwright.dev/docs/api/class-tracing), read 2026-11-24 - [Playwright videos](https://playwright.dev/docs/videos), read 2026-11-24 - [Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24 - [Playwright mock APIs and HAR](https://playwright.dev/docs/mock), read 2026-11-24 - [rrweb repository](https://github.com/rrweb-io/rrweb) and [guide](https://github.com/rrweb-io/rrweb/blob/master/guide.md), read 2026-11-24 - [DevTools Protocol Page domain](https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/pdl/domains/Page.pdl), read 2026-11-24 - [Mind2Web repository](https://github.com/OSU-NLP-Group/Mind2Web), read 2026-11-24 - [WebArena-Verified repository](https://github.com/ServiceNow/webarena-verified), read 2026-11-24 ## FAQ ### What is the difference between a Playwright trace and a video? A video is a moving picture of the viewport. A trace stores each action with DOM snapshots, screenshots, network requests and console messages, so you can inspect the page at any step, not only watch it. ### How do I open a Playwright trace? Run npx playwright show-trace trace.zip, or load the file in the Playwright trace viewer web page, which opens it locally in the browser. ### What is DOM-based session replay? A recording of the page's structure and every change to it, which a player rebuilds as a live page. rrweb is the common open-source tool. It is smaller than video and lets you mask inputs and block elements at capture time. ### Do recordings contain sensitive data? Often. Traces and HAR files include network requests, which can carry cookies and tokens, and videos show whatever was on screen. Start recording after login, mask inputs, and store recordings with access controls and a deletion date. --- # How to reset browser state between AI agent sessions URL: https://www.aiagentsandbox.io/reset-browser-state-between-agent-sessions/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 Reset browser state between agent sessions by giving every session a new, non-persistent browser context, or a new browser in a new container, and load only the login state the task needs from a saved file. Do not reuse a persistent profile across tasks unless the task needs it. To reset browser state between AI agent sessions, start each session from nothing and add back only what the task needs. In practice that means a new browser context, or a new browser in a new container, for every task, plus a saved login state file when the task must be signed in. ## Why does browser state need resetting between agent sessions? Browser state needs resetting because anything left over changes what the next session sees and can leak data between tasks. Left-over state causes three kinds of trouble for agents: 1. **Wrong results.** A cart, a draft or a filter from the last task is still there, and the agent works from it. 2. **Data leaks.** One user's cookies or form history reach a session run for another user. 3. **Unrepeatable runs.** The same task gives different results depending on what ran before. Benchmarks treat this seriously: WebArena's instructions say to "reset the environment to the initial state" after a full evaluation ([WebArena repository](https://github.com/web-arena-x/webarena), read 2026-11-24). ## What state does a browser keep? A browser keeps far more than cookies. A full reset has to cover all of these: Table: Where a browser keeps state, and what resets it | State | Where it lives | Reset by a new context | Reset by a new browser and profile | |---|---|---|---| | Cookies | Profile | Yes | Yes | | Local storage and session storage | Profile, per origin | Yes | Yes | | IndexedDB | Profile, per origin | Yes | Yes | | Service workers and their caches | Profile, per origin | Yes | Yes | | HTTP cache | Profile | Yes | Yes | | Permissions granted to sites | Profile | Yes | Yes | | Downloaded files | File system | No | Only if the file system is new too | | Browser-wide settings and extensions | Browser launch | No | Yes | The last two rows explain why a container per session is the strongest reset. A new context resets the web state, but files on disk and the browser process itself survive it. ## Option 1: How do I reset state with a new browser context? Create a new browser context for each session and close it at the end. Playwright describes contexts as "equivalent to incognito-like profiles", "fast and cheap to create" and "completely isolated, even when running in a single browser" ([Playwright browser contexts](https://playwright.dev/docs/browser-contexts), read 2026-11-24). It also says "Non-persistent browser contexts don't write any browsing data to disk" ([Playwright BrowserContext API](https://playwright.dev/docs/api/class-browsercontext), read 2026-11-24). Puppeteer has the same idea. `browser.createBrowserContext()` "Creates a new browser context" that "won't share cookies/cache with other browser contexts" ([Puppeteer createBrowserContext](https://pptr.dev/api/puppeteer.browser.createbrowsercontext), read 2026-11-24). The steps: 1. Launch one browser per worker. 2. For each agent task, call `browser.newContext()` (Playwright) or `browser.createBrowserContext()` (Puppeteer). 3. Open pages only inside that context. 4. At the end of the task, close the context. Its cookies, storage and cache go with it. This is quick and works well when every task belongs to the same customer. When tasks belong to different customers, a shared browser process is a shared failure point. Use option 2. ## Option 2: How do I reset state with a new browser in a new container? Start a new container with a new browser for each session and delete it at the end. This resets the web state, the file system, the browser process and its settings in one step. It is the reset that research environments use for full desktops: OSWorld restores each virtual machine from a snapshot, noting that "The snapshot feature also enables efficient reset of the virtual environment" ([OSWorld paper, section 2.2](https://arxiv.org/html/2404.07972), read 2026-11-24). The cost is start-up time. A browser container takes longer to start than a context, so many teams keep a small pool of fresh containers ready and never return a used one to the pool. ## How do I keep an agent logged in after a reset? Keep an agent logged in by saving the login state once and loading it into each new context. 1. Sign in once, by script or by hand, in a clean context. 2. Save the state: `context.storageState({ path: 'state.json' })`. Playwright's storage state "contains current cookies, local storage snapshot" and more (Playwright BrowserContext API, read 2026-11-24). 3. For each task, create the context with `browser.newContext({ storageState: 'state.json' })`. Playwright says this option "can be used to initialize context with logged-in information" ([Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24). Three details from Playwright's authentication guide matter here ([Playwright authentication](https://playwright.dev/docs/auth), read 2026-11-24): - IndexedDB "is not included in the snapshot by default". Set `indexedDB: true` when saving if the site keeps its login there. - "Playwright does not provide API to persist session storage". Sites that keep login in session storage need a small script to save and restore it. - "The browser state file may contain sensitive cookies and headers that could be used to impersonate you or your test account." Treat the file as a secret. Our guide to [keeping credentials out of a browser agent](https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/) covers how. ## What about persistent profiles? A persistent profile keeps state on disk between sessions, so use one only when a task needs it. Playwright's `launchPersistentContext` "Launches browser that uses persistent storage located at userDataDir and returns the only context" ([Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype), read 2026-11-24). The same page notes that passing an empty string creates a temporary directory, which gives a persistent-style launch with a throwaway profile. Two rules keep persistent profiles safe: 1. **One identity per profile.** Never let two customers, or two unrelated agents, share a profile. 2. **Never the real user's profile.** Playwright says "automating the default Chrome user profile is not supported", and since Chrome 136 the remote debugging switches "must now be accompanied by the `--user-data-dir` switch to point to a non-standard directory" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), published March 17, 2025, read 2026-11-24). ## How do I check that a reset worked? Check a reset by testing for state before the agent starts. 1. In a new session, read `document.cookie`, `localStorage.length` and the list of IndexedDB databases on the target site. They should be empty, apart from the login state you loaded. 2. List the download directory. It should be empty. 3. Run the same task twice in a row from a fresh start. The two runs should begin from identical pages. 4. Log the context or container ID with each task, so a result can always be traced to the session that produced it. ## What we read for this article - [Playwright browser contexts](https://playwright.dev/docs/browser-contexts), read 2026-11-24 - [Playwright BrowserContext API](https://playwright.dev/docs/api/class-browsercontext), read 2026-11-24 - [Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24 - [Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype), read 2026-11-24 - [Playwright authentication](https://playwright.dev/docs/auth), read 2026-11-24 - [Puppeteer createBrowserContext](https://pptr.dev/api/puppeteer.browser.createbrowsercontext), read 2026-11-24 - [Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-24 - [WebArena repository](https://github.com/web-arena-x/webarena), read 2026-11-24 - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/html/2404.07972), read 2026-11-24 ## FAQ ### What is a browser context? A browser context is an isolated, incognito-like session inside one browser. Each context has its own cookies, local storage and session storage. Playwright describes contexts as fast and cheap to create and completely isolated, even when they run in a single browser. ### Is clearing cookies enough to reset a browser? No. Local storage, session storage, IndexedDB, service workers, the HTTP cache and downloaded files can all carry state between sessions. A new context or a new browser resets them together. ### How do I keep an agent logged in without reusing a profile? Save the login once with storageState, which captures cookies, local storage and optionally IndexedDB, and load that file into each new context. Store the file as a secret, because it can be used to impersonate the account. ### When should I use a persistent profile? When a task genuinely needs long-lived browser state, such as an extension's settings or a site that ties trust to a device. Give each persistent profile to one agent identity only, and reset it on a schedule. --- # How to restrict a browser agent's network access against prompt injection URL: https://www.aiagentsandbox.io/restrict-browser-agent-network-access/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 Restrict a browser agent's network access with an allow-list enforced outside the browser, at a proxy or firewall the agent cannot change, plus request routing inside the browser. Block private and metadata addresses. This limits where an injected agent can send data; it does not stop the injection. To restrict a browser agent's network access, decide which sites the task needs, enforce that list somewhere the agent cannot change it, and block internal addresses by default. This is one of the few controls that still works after an agent has been misled by a web page. ## What is prompt injection, and why does it matter for browser agents? Prompt injection is input that changes a language model's behaviour in ways its operator did not intend. OWASP defines it as occurring "when user prompts alter the LLM's behavior or output in unintended ways", and separates the indirect kind: "Indirect prompt injections occur when an LLM accepts input from external sources, such as websites or files" ([OWASP LLM01:2025](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24). Browser agents meet the indirect kind on every page they read. NIST describes the core problem: "Because GenAI models combine the data and instruction channels, attackers can leverage the data channel to affect system operations" ([NIST AI 100-2e2025](https://doi.org/10.6028/NIST.AI.100-2e2025), read 2026-11-24). ## How often do injection attacks succeed against web agents? Published studies report that injection attacks against web agents often succeed, at least in part. Table: Published results on attacks against web and computer-use agents | Study | Setting | Reported result | |---|---|---| | WASP ([arXiv 2504.18575](https://arxiv.org/abs/2504.18575)) | Injections on self-hosted web apps | "attacks partially succeed in up to 86% of the case" | | EIA ([arXiv 2409.11295](https://arxiv.org/abs/2409.11295)) | Hidden elements on real websites | "up to 70% ASR in stealing specific PII" | | Pop-up attacks ([arXiv 2411.02391](https://arxiv.org/abs/2411.02391)) | Pop-ups in OSWorld and VisualWebArena | Agents clicked pop-ups in "86% on average" of cases | | Adversarial images ([arXiv 2406.12814](https://arxiv.org/abs/2406.12814)) | One changed image on a VisualWebArena page | "success rates up to 67%" | All read 2026-11-24. The WASP authors add a useful nuance: agents "often struggle to fully complete the attacker goals". That is not a defence. An attack that half works may still send one cookie or one address to the wrong place. NIST's own evaluation of agent hijacking found that red-teamed attacks raised attack success "from 11% for the strongest baseline attack to 81% for the strongest new attack" ([NIST agent hijacking evaluations](https://www.nist.gov/news-events/news/2025/01/technical-blog-strengthening-ai-agent-hijacking-evaluations), read 2026-11-24). ## What does a network allow-list protect against? A network allow-list protects against what a misled agent can do with the network: send data to an attacker, download a tool, or reach systems it should not. It does not stop the agent from reading the injected text. NIST's guidance points to this kind of design. It advises that designers "may design systems with the assumption that prompt injection attacks are possible if a model is exposed to untrusted input sources" (NIST AI 100-2e2025, read 2026-11-24). An allow-list is such an assumption turned into a rule. ## Step 1: How do I decide what to allow? Decide what to allow from the task, not from the agent. 1. List the sites the task must visit, by hostname. 2. Run the task with logging on and record every hostname the pages actually load: scripts, fonts, APIs and image hosts. 3. Allow the task's sites and the supporting hosts they need. Leave out analytics and ad hosts the task can work without. 4. Write the list down per task type. A booking task and a research task should not share one long list. 5. Default to deny for everything else. ## Step 2: How do I enforce the list outside the browser? Enforce the list outside the browser, where the agent has no control. - **A forward proxy.** Point the browser at a proxy that only forwards allowed hostnames. Playwright can set a proxy for the whole browser or per context; the per-context option is "Network proxy settings to use with this context" ([Playwright Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24). Chromium's `--proxy-server` switch "tells Chrome to use a custom proxy configuration" ([Chromium network settings](https://www.chromium.org/developers/design-documents/network-settings/), read 2026-11-24). - **A container network with firewall rules.** Give the browser container a network whose only route out is the proxy. Then a browser that ignores its proxy setting still cannot connect elsewhere. The firewall matters because a proxy setting alone does not cover every lookup. Chromium's SOCKS proxy page notes that with a proxy set, parts of the browser such as the DNS prefetcher can still resolve names locally, and gives a catch-all rule, `--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE myproxy"`, "to prevent Chrome from sending any DNS requests over the network" ([Chromium SOCKS proxy](https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/), read 2026-11-24). ## Step 3: Which addresses should always be blocked? Always block addresses that lead into your own systems, even if a hostname on the list resolves to them. - Private network ranges and loopback addresses. - The link-local range, which includes the cloud instance metadata address that can hand out machine credentials. - Internal DNS names, such as names under your company's internal domains. - The address of the agent's own control services and any container management socket. Check the resolved address at the proxy, not only the hostname, so that a public name pointing at an internal address is refused. ## Step 4: How do I add routing rules inside the browser? Add in-browser routing as a second layer, for clearer errors and faster failure. Playwright's `context.route()` can abort any request: "Routing provides the capability to modify network requests that are made by any page in the browser context" ([Playwright BrowserContext API](https://playwright.dev/docs/api/class-browsercontext), read 2026-11-24). 1. Register a route for `**/*` that aborts requests whose hostname is not on the list. 2. Launch contexts with `serviceWorkers: 'block'`. Playwright warns that routing "will not intercept requests intercepted by Service Worker" and recommends "disabling Service Workers when using request interception" (same page). 3. Log every blocked request with the page that made it. A spike in blocks is a sign of an injection attempt. Note that "Enabling routing disables http cache" (same page), so expect slightly slower page loads. ## Step 5: What else limits the damage of an injection? Other controls cover what an allow-list cannot. 1. **Least privilege.** OWASP: "Restrict the model's access privileges to the minimum necessary for its intended operations" (OWASP LLM01:2025, read 2026-11-24). 2. **Human approval for risky actions.** OWASP lists "Require human approval for high-risk actions". Posting, paying, deleting and sending messages are the usual candidates. 3. **Mark untrusted content.** OWASP's advice to "Separate and clearly denote untrusted content" applies to what the harness passes to the model. 4. **No secrets in context.** An agent that never saw a password cannot type it into a form. See [keeping credentials out of a browser agent](https://www.aiagentsandbox.io/keep-credentials-out-of-a-browser-agent/). 5. **Disposable sessions.** Anything an injection plants dies with the session. ## How do I test the restrictions? Test the restrictions by attacking your own agent in a safe environment. 1. From inside a session, try to load a site that is not on the list. It should fail at the proxy. 2. Try an internal address and the metadata address directly. Both should fail. 3. Put a page with an injected instruction on an allowed test site and check what the agent does. 4. Use published injection benchmarks, such as WASP, which runs on self-hosted copies of web apps and simulates attacks "without exposing the agent to real harm" ([WASP repository](https://github.com/facebookresearch/wasp), read 2026-11-24). ## What we read for this article - [OWASP LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24 - [NIST AI 100-2e2025, Adversarial Machine Learning](https://doi.org/10.6028/NIST.AI.100-2e2025), read 2026-11-24 - [NIST technical blog on agent hijacking evaluations](https://www.nist.gov/news-events/news/2025/01/technical-blog-strengthening-ai-agent-hijacking-evaluations), read 2026-11-24 - [WASP (arXiv 2504.18575)](https://arxiv.org/abs/2504.18575) and [repository](https://github.com/facebookresearch/wasp), read 2026-11-24 - [EIA (arXiv 2409.11295)](https://arxiv.org/abs/2409.11295), read 2026-11-24 - [Attacking Vision-Language Computer Agents via Pop-ups (arXiv 2411.02391)](https://arxiv.org/abs/2411.02391), read 2026-11-24 - [Dissecting Adversarial Robustness of Multimodal LM Agents (arXiv 2406.12814)](https://arxiv.org/abs/2406.12814), read 2026-11-24 - [Playwright BrowserContext API](https://playwright.dev/docs/api/class-browsercontext) and [Browser API](https://playwright.dev/docs/api/class-browser), read 2026-11-24 - [Chromium network settings](https://www.chromium.org/developers/design-documents/network-settings/) and [SOCKS proxy](https://www.chromium.org/developers/design-documents/network-stack/socks-proxy/), read 2026-11-24 ## FAQ ### What is prompt injection in a browser agent? It is text on a web page, in a document or in an email that the agent reads and follows as if it were an instruction. OWASP calls this indirect prompt injection, because it arrives through content rather than from the user. ### Does a network allow-list stop prompt injection? No. The agent can still read the injected text and act on it. An allow-list limits the damage, because the browser cannot reach sites outside the list to send data or download tools. ### Can an agent leak data through an allowed site? Yes. If an allowed site accepts user content, such as a forum post, an issue or a search query, an attacker can ask the agent to put data there. Allow only what the task needs and require approval for posting. ### Is blocking requests with Playwright's route enough? Not on its own. Routing runs inside the browser your agent controls, and Playwright notes it does not see requests handled by service workers. Enforce the list at a proxy or firewall outside the browser too. --- # How to run Chromium in Docker for an AI agent, with the sandbox on URL: https://www.aiagentsandbox.io/run-chromium-in-docker-for-ai-agents/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 To run Chromium in Docker for an AI agent, give the container enough shared memory (--ipc=host or a larger --shm-size), use --init, run the browser as a non-root user, and allow user namespaces with a custom system-call profile so Chromium's sandbox can stay on instead of using --no-sandbox. Running Chromium in Docker for an AI agent takes four settings: enough shared memory, an init process, a non-root user, and permission for the browser to build its own sandbox. Most crash reports and most uses of `--no-sandbox` come from missing one of these. ## Why is Chromium harder to run in Docker than other programs? Chromium is harder to run in a container because it is many processes that share memory and sandbox each other. Puppeteer's guide says plainly that "Getting headless Chrome up and running in Docker can be tricky" ([Puppeteer troubleshooting](https://pptr.dev/troubleshooting), read 2026-11-24). Three container defaults get in its way: 1. **Small shared memory.** For `--shm-size`, Docker says "If you omit the size entirely, the system uses `64m`" ([Docker run reference](https://docs.docker.com/engine/containers/run/), read 2026-11-24). 2. **Root by default.** Chromium's sandbox is not available when the browser runs as root. Playwright's Docker page: "By default, the Docker image will use the root user to run the browsers. This will disable the Chromium sandbox which is not available with root" ([Playwright Docker](https://playwright.dev/docs/docker), read 2026-11-24). 3. **Restricted system calls.** Docker's default system-call profile blocks creating user namespaces, which Chromium's sandbox uses on Linux. ## Step 1: How do I give Chromium enough shared memory? Give Chromium enough shared memory by sharing the host's IPC namespace or by raising the container's shared memory size. - `--ipc=host` uses "the host system's IPC namespace" ([docker container run](https://docs.docker.com/reference/cli/docker/container/run/), read 2026-11-24). Playwright recommends it: "Using `--ipc=host` is recommended when using Chromium. Without it, Chromium can run out of memory and crash" (Playwright Docker, read 2026-11-24). - `--shm-size=1g` (or another size) keeps a private IPC namespace with a larger /dev/shm. This keeps agent sessions on the same host more separate than `--ipc=host`, which matters when each container belongs to a different user. - The browser flag `--disable-dev-shm-usage` moves shared memory files out of /dev/shm. Chromium's own description: "The /dev/shm partition is too small in certain VM environments, causing Chrome to fail or crash ... Use this flag to work-around this issue (a temporary directory will always be used to create anonymous shared memory files)" ([Chromium base switches](https://chromium.googlesource.com/chromium/src/+/4b85b8b1988c20c360296f1085b09bfa99ce2120/base/base_switches.cc), read 2026-11-24). Newer Chromium code also reduces the dependence. A current source comment describes creating shared memory "as an anonymous memfd instead of an unlinked file in /dev/shm", which "stops depending on /dev/shm being mounted, accessible and large enough" ([Chromium shared memory source](https://chromium.googlesource.com/chromium/src/+/HEAD/base/memory/platform_shared_memory_region_posix.cc), read 2026-11-24). We could not confirm which release ships this for every platform, so keep one of the settings above. For agents, a per-container `--shm-size` is usually the better default, because it keeps each session's memory to itself. ## Step 2: Why add --init? Add `--init` so finished browser processes are cleaned up. Docker's flag will "Run an init inside the container that forwards signals and reaps processes" (docker container run, read 2026-11-24). Playwright gives the reason: "Using `--init` Docker flag is recommended to avoid special treatment for processes with PID=1. This is a common reason for zombie processes" (Playwright Docker, read 2026-11-24). ## Step 3: How do I keep Chromium's sandbox on? Keep Chromium's sandbox on by running the browser as a normal user and allowing it to create user namespaces. 1. **Create a non-root user in the image** and switch to it before starting the browser. Puppeteer's example Dockerfile carries the comments "Add user so we don't need --no-sandbox." and "Run everything after as non-privileged user." (Puppeteer troubleshooting, read 2026-11-24). 2. **Allow user namespace creation.** Playwright's documented command for crawling untrusted sites runs as its `pwuser` account with a custom system-call profile. Playwright describes that profile as Docker's default one with extra permission to clone user namespaces, and publishes it on the same page (Playwright Docker, read 2026-11-24). You load it with Docker's `--security-opt` option. 3. **Do not use `--privileged`.** Docker warns that it "gives all capabilities to the container" and to "Use this flag with caution" (Docker run reference, read 2026-11-24). Puppeteer's guide suggests `--cap-add=SYS_ADMIN` only "when developing locally". Playwright's advice for untrusted content sums it up: "it's recommended to use a separate user for launching the browsers", together with that profile (Playwright Docker, read 2026-11-24). On Ubuntu hosts, Puppeteer also notes that an AppArmor policy can stop downloaded test builds of Chrome from using user namespaces (Puppeteer troubleshooting, read 2026-11-24). If the browser reports "No usable sandbox!", check the host's AppArmor rules before reaching for `--no-sandbox`. ## What does a working docker run command look like? A working command combines the four settings. This example uses a private shared memory size, an init process and a non-root user: ``` docker run --rm --init \ --shm-size=1g \ --user agent \ --memory=2g --cpus=1 \ --network agent-egress \ my-agent-browser:latest ``` Add the `--security-opt` option that loads your system-call profile, in the form shown on Playwright's Docker page. The last three lines are not about Chromium. They are what turns a container into a sandbox for an agent: a memory and CPU limit so one session cannot starve the host, and a dedicated network you can restrict. ## Is the official Playwright image safe for agents? The official Playwright image is a good base, but its own documentation limits its scope. Playwright says: "This Docker image is intended to be used for testing and development purposes only" and "It is not recommended to use this Docker image to visit untrusted websites" (Playwright Docker, read 2026-11-24). It also notes that "The Playwright package/dependency is not included in the image and should be installed separately". An AI agent visits untrusted websites by design. If you build on the image, apply the steps above: a non-root user, the namespace profile, resource limits and network rules. ## What else should a browser container for an agent have? A browser container for an agent should also have: - **One session per container.** Start a container per task and delete it afterwards, so no profile or download survives. - **A writable temporary profile.** A fresh user data directory in the container, never one mounted from the host. - **No host mounts** beyond what the task needs, and never the Docker socket. - **Pinned versions.** The browser and driver versions in the image tag, so a run can be repeated. - **Logs and traces written to a volume you collect** at the end of the session, as described in our guide to [recording a browser agent's session](https://www.aiagentsandbox.io/record-and-replay-browser-agent-sessions/). ## How do I check that the sandbox is really on? Check the sandbox by confirming in your launch code that `--no-sandbox` is absent and that the browser starts without error. If Chromium cannot build its sandbox and the flag is absent, it refuses to start. Puppeteer documents the message: "If there's no good sandbox for Chrome to use, it will crash with the error `No usable sandbox!`" (Puppeteer troubleshooting, read 2026-11-24). A browser that starts without that flag is running sandboxed. ## What we read for this article - [Puppeteer troubleshooting](https://pptr.dev/troubleshooting), read 2026-11-24 - [Playwright Docker](https://playwright.dev/docs/docker), read 2026-11-24 - [Docker run reference](https://docs.docker.com/engine/containers/run/), read 2026-11-24 - [docker container run CLI reference](https://docs.docker.com/reference/cli/docker/container/run/), read 2026-11-24 - [Chromium base switches (pinned copy)](https://chromium.googlesource.com/chromium/src/+/4b85b8b1988c20c360296f1085b09bfa99ce2120/base/base_switches.cc), read 2026-11-24 - [Chromium shared memory source](https://chromium.googlesource.com/chromium/src/+/HEAD/base/memory/platform_shared_memory_region_posix.cc), read 2026-11-24 ## FAQ ### Why does Chromium crash in Docker? Most often because /dev/shm is too small. Docker gives containers 64 MB of shared memory by default, and Chromium uses shared memory between its processes. Playwright's docs say that without --ipc=host Chromium can run out of memory and crash. ### Should I use --no-sandbox in Docker? Only if you fully trust every page the browser opens. Chromium documents the switch as being for testing, and Puppeteer's guide says running without a sandbox is strongly discouraged. Run as a non-root user and allow user namespaces instead. ### What does --disable-dev-shm-usage do? It tells Chromium to write its shared memory files to a temporary directory instead of /dev/shm, which avoids crashes when /dev/shm is small. Raising the shared memory size is the other fix. ### Why use --init with a browser container? Browsers start many child processes. --init runs a small init process as PID 1 that forwards signals and reaps finished processes, so zombie processes do not pile up. ### Can I run a headed browser in Docker? Yes, with a virtual display such as Xvfb inside the container. It uses more memory, so keep headless for agents that do not need a visible window. --- # What is a browser agent, and how does it work? URL: https://www.aiagentsandbox.io/what-is-a-browser-agent/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-26 A browser agent is an AI system that completes a task in a real web browser by itself. In a loop, it reads the page, asks a language model what to do next, and clicks, types or navigates until the task is done or it gives up. A browser agent is a program that uses a large language model to operate a web browser on its own. You give it a goal, such as "find the cheapest flight on this site and fill in the booking form", and it works through the site step by step, the way a person would. ## How does a browser agent work? A browser agent works in a loop of observe, decide, act and check. 1. **Observe.** The agent captures the current state of the page. 2. **Decide.** It sends that state, the goal and the history of earlier steps to a language model, which returns the next action. 3. **Act.** A browser automation library, such as Playwright or Puppeteer, carries the action out in the browser. 4. **Check.** The agent captures the page again and decides whether the goal is met, whether to continue or whether to stop. The loop repeats until the agent reports success, reports that the task is impossible, or reaches a step limit. Research benchmarks formalise the same loop. The WebArena and OSWorld papers model a task as a partially observable decision process, in which the agent does not see the full state of the website or computer, only what the page shows it ([OSWorld paper, section 2.1](https://arxiv.org/html/2404.07972), read 2026-11-24). ## How does a browser agent see the page? A browser agent sees the page through one or more text or image views that the harness builds from the browser. The common ones are: Table: How browser agents observe a page | View | What the model receives | Good for | |---|---|---| | Accessibility tree | A text outline of roles, names and states of page elements | Forms, buttons and links with clear labels | | Cleaned HTML or DOM | A trimmed copy of the page markup | Pages with poor accessibility labels | | Screenshot | An image of the viewport | Canvas, charts and visual layouts | | Set-of-marks screenshot | A screenshot with a numbered box on each clickable element | Letting the model pick an element by number | The OSWorld benchmark offers four of these settings for desktop agents: a screenshot, the accessibility tree, both together, and a set-of-mark screenshot ([OSWorld paper](https://arxiv.org/html/2404.07972), read 2026-11-24). Browser benchmarks such as WebArena and VisualWebArena offer similar choices. ## What actions can a browser agent take? A browser agent's actions are the ones a person uses: click an element, type text, press a key, scroll, select an option, go back, open a URL, switch tabs and stop. The model names the action and its target, for example "click element 14" or "type 'London' into the search box". The harness translates that into a Playwright or Puppeteer call, or into a raw Chrome DevTools Protocol message. ## How is a browser agent different from a scraper or a test script? A browser agent chooses its steps at run time; a scraper or test script follows steps written in advance. Table: Browser agent compared with scripted automation | | Scripted automation | Browser agent | |---|---|---| | Who writes the steps | A developer, ahead of time | A language model, during the run | | New or changed pages | Breaks until the script is fixed | Often adapts | | Speed per step | Milliseconds | Seconds, because each step waits for a model call | | Cost per run | Compute only | Compute plus model tokens | | Repeatability | Same result each run | Can differ between runs | | Best for | Known, stable flows | Varied or unfamiliar sites, one-off tasks | A common pattern is to use both: a script for the stable parts of a flow, such as logging in, and an agent for the part that changes. ## What does a browser agent need to run? A browser agent needs four things: a browser, a driver, a model and a place to run. - **A browser.** Usually Chromium. Headless mode is common, and headed mode is used when the agent works from screenshots of a real desktop or when a site behaves differently without a visible window. - **A driver.** Playwright, Puppeteer or a direct Chrome DevTools Protocol connection. - **A model.** Any model that can read the chosen page view and return structured actions. - **An isolated environment.** A container or virtual machine for each session, so the agent's cookies, downloads and network access stay apart from everything else. The last point is the one teams most often add late. An agent reads pages it does not control. The OWASP Top 10 for LLM applications names this risk: indirect prompt injection happens "when an LLM accepts input from external sources, such as websites or files" ([OWASP LLM01:2025](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24). Running each session in its own disposable environment limits what a manipulated agent can reach. ## Why do browser agents fail? Browser agents fail for reasons that fall into three groups. 1. **Model errors.** The model misreads the page, clicks the wrong element, or forgets an earlier step. The OSWorld authors report that the best model in their study completed 12.24% of tasks against 72.36% for people, "primarily struggling with GUI grounding and operational knowledge" ([OSWorld abstract](https://arxiv.org/abs/2404.07972), read 2026-11-24). 2. **Environment problems.** Pages load slowly, pop-ups appear, a site blocks automated traffic or a session expires. These are not the model's fault but still end the task. 3. **Attacks.** A page carries text meant to redirect the agent. Researchers who placed pop-ups in OSWorld and VisualWebArena found agents clicked them in "86% on average" of cases, which cut task success by 47% ([Attacking Vision-Language Computer Agents via Pop-ups](https://arxiv.org/abs/2411.02391), read 2026-11-24). Telling these groups apart matters when you measure an agent. A score that mixes environment failures with model failures says little about either. ## What are browser agents used for? Browser agents are used where a task lives in a website without a usable API. Common uses are: - filling in forms across many sites, such as supplier portals; - collecting information that needs clicks, filters or logins to reach; - testing a web app by describing the test in plain language; - research tasks that browse many pages and summarise them; - internal tools that only have a web interface. ## Is a web browsing agent the same thing as a browser agent? A web browsing agent is the same thing as a browser agent; the research literature mostly says "web agent". WebArena's paper is about "Building Autonomous Agents" for "A Realistic Web Environment" ([arXiv 2307.13854](https://arxiv.org/abs/2307.13854), read 2026-11-26), and BrowseComp calls the agents it tests "Browsing Agents" ([arXiv 2504.12516](https://arxiv.org/abs/2504.12516), read 2026-11-26). The term to keep apart is the agentic browser, a browser a person uses with an agent built in; see [what an agentic browser is](https://www.aiagentsandbox.io/what-is-an-agentic-browser/). ## How are browser agents measured? Browser agents are measured with benchmarks that give a task, run the agent, and check the result with a script. WebArena hosts its own copies of shopping, forum, code-hosting and content-management sites so every run starts from the same state ([WebArena paper](https://arxiv.org/abs/2307.13854), read 2026-11-24). Mind2Web collects tasks from real websites. BrowserGym wraps several of these benchmarks behind one interface ([BrowserGym repository](https://github.com/ServiceNow/BrowserGym), read 2026-11-24). ## What we read for this article - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/abs/2404.07972), read 2026-11-24 - [WebArena paper (arXiv 2307.13854)](https://arxiv.org/abs/2307.13854), read 2026-11-24 - [OWASP LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24 - [Attacking Vision-Language Computer Agents via Pop-ups (arXiv 2411.02391)](https://arxiv.org/abs/2411.02391), read 2026-11-24 - [BrowserGym repository](https://github.com/ServiceNow/BrowserGym), read 2026-11-24 - [BrowseComp paper (arXiv 2504.12516)](https://arxiv.org/abs/2504.12516), read 2026-11-26 ## FAQ ### What is the difference between a browser agent and a web scraper? A scraper runs fixed steps written in advance for known pages. A browser agent decides each step at run time from what it sees, so it can handle pages it has never met, at the cost of speed and predictability. ### How does a browser agent see a web page? Usually through the accessibility tree, a screenshot, a cleaned-up copy of the HTML, or a screenshot with numbered boxes drawn on clickable elements. Many agents combine two of these. ### Can a browser agent log in to websites? Yes, but the login is best handled by the harness, not the model. A saved login state or a secret filled in by code keeps passwords out of the prompt and the logs. ### Is a web browsing agent the same as a browser agent? Yes, in most usage. Papers say web agent, browsing agent or web browsing agent for the same kind of system. An agentic browser is different, a browser with an agent built in that works in the user's own session. ### How are browser agents tested? With benchmarks such as WebArena, which hosts its own copies of real websites, and Mind2Web, which records tasks on real sites. Each task has a scripted check of whether the goal was reached. --- # What is a browser sandbox? The two meanings, explained URL: https://www.aiagentsandbox.io/what-is-a-browser-sandbox/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 A browser sandbox is either the browser's own process sandbox, which walls each web page off from the computer, or an isolated container or virtual machine that holds a whole browser for an AI agent. The first protects the computer; the second protects your systems from the browser and the agent. A browser sandbox is a boundary that stops code running in a browser from reaching things it should not. The term has two meanings, and engineers who build browser agents need both. 1. **The browser's own sandbox.** Chromium, Firefox and Safari split the browser into processes and run the ones that handle web content with very few rights. 2. **A sandbox around the browser.** The whole browser runs inside an isolated environment, such as a container or a virtual machine, that is thrown away after use. This is what people mean by a browser sandbox for an AI agent. ## What is the browser's built-in sandbox? The built-in sandbox is a set of operating system restrictions that Chromium applies to the processes that render web pages. Chromium's design document puts the goal this way: the sandbox lets "code execution that cannot make persistent changes to the computer or access information that is confidential" happen ([Chromium sandbox design](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/design/sandbox.md), read 2026-11-24). It works per process. The same document says "Sandbox operates at process-level granularity" and that "Anything that needs to be sandboxed needs to live on a separate process." The renderer, the process that runs a page's HTML and JavaScript, is the main target: "In Chromium, the renderers are always target processes, unless the `--no-sandbox` command line has been specified for the browser process." On Linux, Chromium describes two layers ([Linux sandboxing, Chromium 112 docs](https://chromium.googlesource.com/chromium/src/+/refs/tags/112.0.5590.0/docs/linux/sandboxing.md), read 2026-11-24): - Layer 1, the "semantics" layer, "prevents access to most resources from a process where it's engaged". It uses user namespaces where the kernel allows them, and a setuid helper otherwise. - Layer 2, the "attack surface reduction" layer, "restricts access from a process to the attack surface of the kernel". It does this with a system-call filter. The current Linux design notes list the building blocks Chromium can use, including namespaces, system-call filtering, SELinux and AppArmor ([sandbox/linux README](https://chromium.googlesource.com/chromium/src/+/HEAD/sandbox/linux/README.md), read 2026-11-24). ## What does --no-sandbox actually turn off? `--no-sandbox` turns off Chromium's process sandbox for every process type that normally has one. Chromium's own switch definition says it "Disables the sandbox for all process types that are normally sandboxed. Meant to be used as a browser-level switch for testing purposes only" ([sandbox policy switches](https://chromium.googlesource.com/chromium/src/+/HEAD/sandbox/policy/switches.cc), read 2026-11-24). Puppeteer's troubleshooting guide is direct about it: "Running without a sandbox is **strongly discouraged**. Consider configuring a sandbox instead." It allows the flag only "If you **absolutely trust** the content you open in Chrome" ([Puppeteer troubleshooting](https://pptr.dev/troubleshooting), read 2026-11-24). The flag is common in containers because the sandbox needs user namespaces, and many containers block them or run the browser as root. The fix, covered in our guide to [running Chromium in Docker for an AI agent](https://www.aiagentsandbox.io/run-chromium-in-docker-for-ai-agents/), is to run as a normal user and allow namespaces, rather than dropping the sandbox. ## What is a sandbox around the browser? A sandbox around the browser is an isolated machine or container that holds the whole browser, its profile, its downloads and the program that drives it. When the session ends, the environment is deleted. This layer answers a different question. Chromium's sandbox asks "can this web page escape its tab?" The outer sandbox asks "what can this browser, and the agent driving it, touch at all?" That includes: - the files on the machine, including the browser profile with its cookies; - the network, including internal services and cloud metadata addresses; - other sessions running on the same host; - the secrets the agent was given to log in. Research on computer-use agents uses the same idea. The OSWorld authors run every task in a virtual machine because it "offers a safe isolated environment" and "prevents the agent resulting in irreversible damaging effect on the real host machine" ([OSWorld paper, section 2.2](https://arxiv.org/html/2404.07972), read 2026-11-24). ## How do the two kinds of browser sandbox compare? The built-in sandbox protects the computer from a web page; a sandbox around the browser protects your systems from the whole browser and the agent driving it. An agent setup usually needs both. Table: The two meanings of "browser sandbox" | Question | Built-in process sandbox | Sandbox around the browser | |---|---|---| | What it holds | One renderer or helper process | The whole browser, its profile and its driver | | What it protects | The computer, from web pages | Your systems and data, from the browser and the agent | | Who sets it up | The browser, automatically | You, or the platform that runs the browser | | Typical tools | Namespaces, a system-call filter, setuid helper | Containers, virtual machines, separate user accounts | | Lifetime | The life of the process | One session, then deleted | | Turned off by | `--no-sandbox` | Running the browser directly on a shared host | ## Why does an AI agent need a browser sandbox? An AI agent needs a browser sandbox because it acts on content it does not control. A person clicks what they choose. An agent reads each page and may follow instructions hidden in it. The OWASP Top 10 for LLM applications calls this indirect prompt injection: it happens "when an LLM accepts input from external sources, such as websites or files" ([OWASP LLM01:2025](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24). Chromium's sandbox does nothing about that. A hijacked agent does not need to escape a renderer. It can use the browser normally: open an internal admin page, download a file, or post a form with data it saw earlier. An outer sandbox limits the damage by limiting what the browser can reach and what survives the session. The usual properties engineers ask of an agent's browser sandbox are: 1. **A clean start.** A fresh profile for each task, so one task's cookies cannot leak into the next. 2. **No shared host state.** No access to the host's files, other users' sessions or local services. 3. **Controlled network.** An allow-list of sites, with internal address ranges blocked. 4. **Secrets outside the model's view.** Logins injected by the harness, not pasted into the prompt. 5. **A record.** A trace or video of what the agent did, kept for debugging. 6. **Fast disposal.** The environment is deleted after the task, with everything in it. ## Is a browser sandbox the same as a disposable or online browser? Mostly, yes. A disposable browser is a browser sandbox used for a single session. Security teams use one to open suspicious links. Test teams use one for each test run. Agent builders use one for each task. In every case the important part is that nothing persists unless you choose to save it, for example a login state file. ## Is a browser sandbox foolproof? No sandbox is foolproof. Chromium's process sandbox reduces what a compromised renderer can do, but browser exploit chains that escape it are reported and patched regularly, which is why keeping the browser updated matters. An outer sandbox adds a second boundary. It still depends on its own configuration: a container that shares the host network, or a profile directory mounted from the host, removes much of its value. The practical rule is to keep both layers. Leave Chromium's sandbox on, and run the browser inside an environment that you can throw away. ## What we read for this article - [Chromium sandbox design document](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/design/sandbox.md), read 2026-11-24 - [Chromium Linux sandboxing, Chromium 112 docs](https://chromium.googlesource.com/chromium/src/+/refs/tags/112.0.5590.0/docs/linux/sandboxing.md), read 2026-11-24 - [Chromium sandbox/linux README](https://chromium.googlesource.com/chromium/src/+/HEAD/sandbox/linux/README.md), read 2026-11-24 - [Chromium sandbox policy switches](https://chromium.googlesource.com/chromium/src/+/HEAD/sandbox/policy/switches.cc), read 2026-11-24 - [Puppeteer troubleshooting](https://pptr.dev/troubleshooting), read 2026-11-24 - [OWASP LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), read 2026-11-24 - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/html/2404.07972), read 2026-11-24 ## FAQ ### Is a browser sandbox the same as incognito mode? No. Incognito, or a fresh browser context, keeps cookies and storage apart between sessions. A sandbox limits what code can reach on the computer. An agent setup usually wants both. ### Does running Chrome with --no-sandbox make it unsafe? It turns off Chromium's own process sandbox for every process that would normally have one. Chromium describes the switch as being for testing only, and Puppeteer's documentation says running without a sandbox is strongly discouraged unless you absolutely trust the content. ### Do I need a separate sandbox if Chrome already has one? For an AI agent, usually yes. Chrome's sandbox protects the computer from web pages, but the agent's driver, downloads, credentials and network access sit outside it. A container or virtual machine around the whole browser limits those too. ### What is a disposable browser? A browser that starts from a clean profile in an isolated environment and is thrown away when the session ends, with its cookies, files and history. --- # What is a cloud browser, and how is one priced? URL: https://www.aiagentsandbox.io/what-is-a-cloud-browser/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-26 A cloud browser is a web browser that runs on a remote server, controlled over the network by a person or a program. For AI agents it is usually headless Chromium in an isolated session, driven over the Chrome DevTools Protocol and billed by session time or by the compute it uses. A cloud browser is a web browser that runs on a server somewhere else and is controlled over the network. Nothing renders on your own machine. A person sees a stream of the page, or a program sends commands and reads results back. ## What are the two kinds of cloud browser? There are two kinds of cloud browser, and they solve different problems. 1. **Remote browser isolation.** A security product. Staff browse normally, but each page runs on a remote machine and only safe output, such as pixels or a cleaned page, reaches the laptop. The goal is to keep malicious pages away from company devices. 2. **Programmable remote browsers.** A developer product. Code or an AI agent starts a browser session on a server, connects to it and drives it. The goal is to run many real browsers without managing them yourself. This article is about the second kind, the one AI agents use. ## How does a cloud browser work for an AI agent? A cloud browser for an AI agent works by exposing a remote browser's control protocol over the network. 1. The agent asks for a new session. 2. A server starts a fresh, isolated browser, usually headless Chromium, and returns a connection address. 3. The agent's code connects with a normal automation library. 4. The agent drives the browser for the task, then ends the session, and the environment is deleted. The connection uses one of two protocols: - **The Chrome DevTools Protocol (CDP).** Chromium exposes it with the `--remote-debugging-port` switch, which "Enables remote debug over HTTP on the specified port" ([Chromium content switches](https://chromium.googlesource.com/chromium/src/+/HEAD/content/public/common/content_switches.cc), read 2026-11-24). Playwright's `connectOverCDP` "attaches Playwright to an existing browser instance using the Chrome DevTools Protocol", and Puppeteer's `connect` "attaches Puppeteer to an existing browser instance" ([Playwright BrowserType](https://playwright.dev/docs/api/class-browsertype), [Puppeteer connect](https://pptr.dev/api/puppeteer.puppeteer.connect), read 2026-11-24). - **The Playwright protocol.** A server started with `launchServer` is reached with `browserType.connect`. Playwright notes that a CDP connection "is significantly lower fidelity than the Playwright protocol connection via browserType.connect()" (Playwright BrowserType, read 2026-11-24). A third option is in progress: WebDriver BiDi, "a mechanism for remote control of user agents" published by the W3C Browser Testing and Tools Working Group, still a Working Draft ([WebDriver BiDi](https://www.w3.org/TR/webdriver-bidi/), read 2026-11-24). ## What does a cloud browser session include? A cloud browser session usually includes the browser plus the services around it that an agent needs: Table: Common parts of a cloud browser session | Part | What it does | |---|---| | Isolated browser | A fresh profile in its own container or virtual machine | | Connection endpoint | A CDP or Playwright address, protected by a token | | Live view | A stream a person can watch, and sometimes take over | | Recording | A trace, video or DOM replay of the session | | Saved login state | Cookies and storage loaded at start so the agent is already signed in | | Network settings | A proxy, an allow-list of sites, or both | | File transfer | Uploads into the session and downloads out of it | | Timeouts | An idle limit and a maximum session length | ## Should I use a cloud browser or run Chromium myself? Use a cloud browser when you want many isolated sessions without running the machines; run Chromium yourself when your load is steady and you can operate the containers. Table: Self-hosted browsers compared with a cloud browser | | Self-hosted Chromium | Cloud browser | |---|---|---| | Setup | You build images, handle shared memory, the sandbox and updates | Connect to an endpoint | | Isolation | You design it: one container or virtual machine per session | Provided per session | | Cost shape | Machines cost money whether busy or idle | Pay per session time or per resource used | | Scaling | You add and remove machines | The service starts sessions on demand | | Data location | Stays in your network | Pages and credentials pass through the provider | The last row matters for agents that log in to private systems. If the session must stay inside your network, self-host, or choose a service that can run in your environment. If you self-host, start with our guide to [running Chromium in Docker for an AI agent](https://www.aiagentsandbox.io/run-chromium-in-docker-for-ai-agents/). ## How is a cloud browser priced? Cloud browsers are priced in one of three ways: per browser-hour, per unit of compute, or per request. 1. **Per browser-hour.** You pay for the time a session is open, whatever it does. Metering is usually per minute or per second, and some plans have a minimum charge per session. This is simple to predict for agents whose sessions have a known length. 2. **Per compute used.** You pay for the CPU and memory the session holds, by the second, the same way many sandbox and serverless platforms bill. A light page costs less than a heavy one if you size sessions to match. As one published example of this model, Promigence, a sandbox platform in which you run the browser yourself, meters per second at $0.0504 per vCPU-hour plus $0.0162 per GiB-hour (its FAQ, read 2026-11-26). The same FAQ says a run is priced before it starts "as if every sandbox ran for its whole timeout", that a run quoted over the `--cap` you set "is refused before anything starts", and that paused time is not invoiced; its errors page adds that an environment failure "is not billed before the sandbox reaches you". Other providers publish rates of the same kind, read 2026-11-26: AWS lists the Amazon Bedrock AgentCore Browser at $0.0895 per vCPU-hour and $0.00945 per GB-hour, billed per second on the CPU actually used and on peak memory ([AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/)); Google Cloud bills its Gemini Enterprise Agent Platform Computer Use sandboxes, isolated browser environments an agent can drive over CDP, at $0.085 per vCPU-hour and $0.009 per GiB-hour ([Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing), [Computer Use](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/computer-use)); and Daytona ($0.0504/h per vCPU and $0.0162/h per GiB), E2B ($0.000014/s per vCPU and $0.0000045/s per GiB) and Modal ($0.00003942 per physical core per second and $0.00000667 per GiB per second) list per-second rates for general sandboxes, in which you run the browser yourself ([Daytona pricing](https://www.daytona.io/pricing), [E2B pricing](https://e2b.dev/pricing), [Modal pricing](https://modal.com/pricing)). 3. **Per request or per task.** You pay a fixed amount per page fetched or task run. This suits simple fetches more than long agent sessions. Many plans add charges or limits for concurrency (how many sessions can be open at once), proxy bandwidth, stored recordings and captcha handling. ## How do I estimate what my agent will cost? You estimate cost from four numbers: sessions per day, minutes per session, the size of each session, and the billing unit. 1. Measure the median and the slowest 5% of session lengths from real runs. Agent sessions vary widely because each step waits for a model. 2. Note whether the agent leaves sessions open while it thinks. Under browser-hour pricing, idle time costs the same as busy time. 3. For per-second compute pricing, multiply vCPUs by hours by the vCPU rate, and memory in GiB by hours by the memory rate, then add the two. 4. Add a margin for retries. A session that times out and is restarted is paid for twice. 5. Check for a per-session minimum. With very short sessions, a one-minute minimum can double the bill. For example, at $0.0504 per vCPU-hour and $0.0162 per GiB-hour, a 2 vCPU, 4 GiB session open for 6 minutes (0.1 hours) comes to 2 × 0.1 × $0.0504 plus 4 × 0.1 × $0.0162, which is about $0.0166. One thousand such sessions are about $16.56 of compute, before any other charges. ## What should I check before giving an agent a cloud browser? Check five things before an agent uses a cloud browser in production. 1. **Isolation.** Each session gets a new profile and its own environment, separate from every other customer's sessions. 2. **Credentials.** Logins are injected by code, not typed by the model, and are not kept in recordings or logs. 3. **Network control.** You can restrict which sites the browser can reach. 4. **Recording and retention.** You can see what the agent did, and you know how long recordings are kept. 5. **Endpoint security.** The connection address is protected by a token that expires. Chrome's team reports "an increase in attackers using Chrome Remote Debugging to extract cookies" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-24), so treat the address like a password. ## What we read for this article - [Chromium content switches](https://chromium.googlesource.com/chromium/src/+/HEAD/content/public/common/content_switches.cc), read 2026-11-24 - [Playwright BrowserType API](https://playwright.dev/docs/api/class-browsertype), read 2026-11-24 - [Puppeteer connect](https://pptr.dev/api/puppeteer.puppeteer.connect), read 2026-11-24 - [WebDriver BiDi, W3C Working Draft](https://www.w3.org/TR/webdriver-bidi/), read 2026-11-24 - [https://www.promigence.ai/faq](https://www.promigence.ai/faq), read 2026-11-26 - [https://www.promigence.ai/docs/errors](https://www.promigence.ai/docs/errors), read 2026-11-26 - [AWS: Amazon Bedrock AgentCore pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), read 2026-11-26 - [Google Cloud: Gemini Enterprise Agent Platform pricing](https://cloud.google.com/products/gemini-enterprise-agent-platform/pricing) and [Computer Use sandboxes](https://docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/computer-use), read 2026-11-26 - [Daytona pricing](https://www.daytona.io/pricing), [E2B pricing](https://e2b.dev/pricing) and [Modal pricing](https://modal.com/pricing), read 2026-11-26 - [Chrome: changes to remote debugging switches](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-24 ## FAQ ### What is a cloud browser used for? Two things share the name. Security teams use remote browser isolation so risky pages never run on staff laptops. Developers and AI agents use remote, programmable browsers for automation, testing and browsing tasks that need a real browser. ### How does an agent connect to a cloud browser? Usually over a WebSocket to the browser's Chrome DevTools Protocol endpoint, or to a Playwright browser server. Puppeteer uses puppeteer.connect and Playwright uses connectOverCDP or browserType.connect. ### Is a cloud browser cheaper than running Chromium myself? It depends on how busy your browsers are. Self-hosting is cheapest when machines stay full; a metered service is cheaper when use is spiky, because you stop paying when sessions end. ### What is browser-hour pricing? A price per hour of open browser session, usually metered per minute or per second, sometimes with a minimum per session. It does not depend on how much CPU or memory the session used. --- # What is a computer-use agent, and why does it need its own desktop? URL: https://www.aiagentsandbox.io/what-is-a-computer-use-agent/ Author: AIAgentSandbox editors Published: 2026-11-24 Updated: 2026-11-24 A computer-use agent is an AI model that operates a computer the way a person does, by looking at screenshots of the screen and sending mouse and keyboard actions. Because it can do anything a user can, it runs in an isolated virtual desktop that can be reset or deleted after each task. A computer-use agent is an AI agent that operates a graphical computer through the same interface a person uses: it looks at the screen and moves the mouse and presses keys. It does not need an API for the application. If a person can do the task on screen, the agent can attempt it. ## How does a computer-use agent work? A computer-use agent works in a loop of screenshot, decision and input. 1. The harness captures a screenshot of the desktop, and sometimes the accessibility tree. 2. A multimodal model reads the screenshot and the task, and returns the next action, such as "click at (512, 300)" or "type 'quarterly report'". 3. The harness sends that action to the desktop as a real mouse or keyboard event. 4. The harness takes a new screenshot and the loop continues until the model says the task is done or impossible, or a step limit is reached. The OSWorld benchmark describes this setting precisely. Its observation is "a complete screenshot of the desktop screen", optionally with the accessibility tree, and its actions are Python calls to "the widely used mouse and keyboard control library pyautogui" ([OSWorld paper, sections 2.3 and 2.4](https://arxiv.org/html/2404.07972), read 2026-11-24). It also has three special actions: WAIT, FAIL for a task the agent judges infeasible, and DONE. ## What is GUI grounding? GUI grounding is the ability to find the right element on a screen from an instruction. The SeeClick paper defines it as "the capacity to accurately locate screen elements based on instructions" ([SeeClick, arXiv 2401.10935](https://arxiv.org/html/2401.10935v2), read 2026-11-24). It is the step where many computer-use agents go wrong: the model understands the task but clicks a few pixels off, or picks a similar-looking button. The OSWorld authors found the same thing. Their best model completed 12.24% of tasks against more than 72.36% for people, and models were "primarily struggling with GUI grounding and operational knowledge" ([OSWorld abstract](https://arxiv.org/abs/2404.07972), read 2026-11-24). ## How is a computer-use agent different from a browser agent? A computer-use agent controls a whole desktop; a browser agent controls one browser. Table: Computer-use agent compared with browser agent | | Browser agent | Computer-use agent | |---|---|---| | What it controls | One web browser | The whole desktop: apps, files, dialogs, browser | | Main observation | Accessibility tree or DOM, sometimes a page screenshot | Screenshot of the screen, sometimes the accessibility tree | | Actions | Click element, type, navigate | Mouse moves and clicks at coordinates, key presses | | Environment | A headless or headed browser | A full desktop operating system, usually headed | | Typical benchmark | WebArena, Mind2Web | OSWorld, AndroidWorld | If a task lives entirely in websites, restricting the agent to a browser is simpler and gives it less to break. Use a full desktop when the task needs native apps, the file system or several applications together. ## Why does a computer-use agent need an isolated desktop? A computer-use agent needs an isolated desktop because it has every right the logged-in user has, and it can be wrong or be misled. The OSWorld authors give the reason in their environment design. A virtual machine "offers a safe isolated environment" and "prevents the agent resulting in irreversible damaging effect on the real host machine". They add that "The snapshot feature also enables efficient reset of the virtual environment", and that "Multiple virtual machines can run simultaneously on a single host machine" for parallel runs ([OSWorld paper, section 2.2](https://arxiv.org/html/2404.07972), read 2026-11-24). There are three concrete risks: 1. **Mistakes.** A misplaced click can delete a file, close a document without saving or send an unfinished message. 2. **Manipulation.** Researchers who placed adversarial pop-ups into OSWorld and VisualWebArena found agents clicked them in "86% on average" of cases and task success fell by 47%. Simple defences, "such as asking the agent to ignore pop-ups", did not help ([Attacking Vision-Language Computer Agents via Pop-ups](https://arxiv.org/abs/2411.02391), read 2026-11-24). 3. **Leftover state.** Files, browser cookies and open sessions from one task can change the result of the next, or leak data between users. An isolated desktop answers all three. Damage stays inside a machine you can delete. Network rules limit where a misled agent can send data. A reset to a clean snapshot removes leftover state. ## What should a computer-use agent's desktop include? A computer-use agent's desktop should include only what the task needs, plus the controls you need to watch and reset it. 1. **A minimal operating system image** with the applications for the task, and nothing logged in that the task does not require. 2. **A fixed screen resolution.** Coordinates in the model's actions depend on it. 3. **A way to send input and capture the screen**, such as a small server in the desktop that takes actions and returns screenshots. 4. **A snapshot to reset to** before each task. 5. **Network rules**: an allow-list for the sites the task needs and no access to internal addresses. 6. **Recording**: screenshots or video of every step, kept for debugging. 7. **A human takeover path** for steps such as payments or deletions that should need approval. ## How are computer-use agents measured? Computer-use agents are measured by giving them tasks in a resettable environment and checking the end state with a script. - **OSWorld** has "a benchmark of 369 computer tasks" on real desktop and web apps, scored by "134 unique evaluation functions for assessing functional correctness" ([OSWorld paper](https://arxiv.org/html/2404.07972), read 2026-11-24). Its authors released OSWorld-Verified in July 2025 with fixes to tasks and evaluation and with parallel runs ([OSWorld-Verified post](https://xlang.ai/blog/osworld-verified), read 2026-11-24). - **AndroidWorld** has "116 hand-crafted tasks across 20 apps" on an Android emulator, with parameters generated from a random seed, and checks success by reading app state ([AndroidWorld repository](https://github.com/google-research/android_world), read 2026-11-24). ## What we read for this article - [OSWorld paper (arXiv 2404.07972)](https://arxiv.org/abs/2404.07972), read 2026-11-24 - [OSWorld-Verified post](https://xlang.ai/blog/osworld-verified), read 2026-11-24 - [SeeClick paper (arXiv 2401.10935)](https://arxiv.org/html/2401.10935v2), read 2026-11-24 - [Attacking Vision-Language Computer Agents via Pop-ups (arXiv 2411.02391)](https://arxiv.org/abs/2411.02391), read 2026-11-24 - [AndroidWorld repository](https://github.com/google-research/android_world), read 2026-11-24 ## FAQ ### How is a computer-use agent different from a browser agent? A browser agent works inside one web browser and usually reads the page's structure. A computer-use agent controls the whole desktop, including native apps, files and dialogs, usually from screenshots. ### Is a computer-use agent the same as RPA? No. Robotic process automation follows recorded or scripted steps. A computer-use agent decides each step at run time from what it sees, so it can handle screens it was never shown, but it is slower and less predictable. ### Why not run a computer-use agent on my own laptop? Because it acts with your account's full rights. A wrong click or a hidden instruction on a web page could delete files, send messages or expose saved passwords. A separate virtual desktop limits the damage to something you can throw away. ### How are computer-use agents benchmarked? The best-known benchmark is OSWorld, with 369 tasks on real desktop and web apps in virtual machines. AndroidWorld does the same for phones, with 116 task templates on an Android emulator. --- # About us AIAgentSandbox.io explains how engineers give an AI agent a browser or a desktop of its own: what the isolation is, how sessions start clean, and how to keep secrets, networks and recordings under control. Articles are written by the editors as a desk and cite the official documentation, specifications and papers they rely on, with the date each was read. Each article shows the day it was first published and the day it was last checked. Corrections are made in the article itself, with a new updated date. The site does not rank or recommend providers.