> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# In-app browser

> Browse any site, local dev server, or Devin Cloud port in a Devin Desktop Browser tab with persistent cookies, element selection, and agent browser control.

The **Browser** tab opens web pages, local dev servers, and Devin Cloud exposed ports inside a Devin Desktop session. It works side by side with the chat in both the Agents view and the IDE.

> [!NOTE]
>
> The Browser tab requires Devin Desktop 3.15 or later (3.16 or later for enterprise accounts). On enterprise accounts, the Browser tab defaults to Devin Previews and `localhost` only. See [Admin controls](#admin-controls) to allow more domains or all sites.

> [!NOTE]
>
> For proxy-based previews on SSH or WSL hosts and third-party [ACP agents](https://docs.devin.ai/desktop/acp.md), see [Devin Desktop Previews](https://docs.devin.ai/desktop/previews.md).

## Opening a Browser tab

* Click **`+`** in a session's tab bar and select **Browser**.
* A new empty Browser tab lists recent pages from its history. In a [Devin Cloud](https://docs.devin.ai/desktop/devin.md) session, it also lists ports exposed by the session. Click an entry to open it.
* Asking [Devin Local](https://docs.devin.ai/desktop/devin-local/overview.md) to preview a local dev server opens the dev server URL directly in a Browser tab.

## Navigation, tools, and persistent storage

The Browser tab includes standard navigation and inspection tools:

* **Toolbar controls** — Back, Forward, Reload, Stop, URL bar, history list, device size switcher, and a port switcher for Devin Cloud exposed ports.
* **Keyboard shortcuts** — Find in page (`Cmd/Ctrl+F`), zoom (`Cmd/Ctrl++`, `Cmd/Ctrl+-`, `Cmd/Ctrl+0`), and print (`Cmd/Ctrl+P`).
* **Context menu** — Right-click anywhere on a page for **Add to chat**, **Back**, **Forward**, **Reload**, and **Inspect**. **Inspect** opens developer tools on the clicked element, including the Console tab for reading console errors.
* **Persistent session** — The Browser tab keeps its own cookies, site data, and history across restarts, stored separately from your system browser (for example, Chrome or Safari), app previews, and Devin Review. Sites you sign in to stay signed in. To delete cookies, site data, and history and sign out of sites, choose **Clear browsing data** in the toolbar menu.

## Selecting elements and areas for chat

The **Selecting** element picker works on any page in a Browser tab, not only on app previews:

* **Pick one element** — Turn on **Selecting** and click an element (or right-click an element and choose **Add to chat**), write a caption, and send it to the chat.
* **Select an area** — With **Selecting** on, drag a rectangle across the page. The quote includes the elements inside the rectangle and a screenshot captured by Devin Desktop.

On local dev servers (`localhost`), the picker includes React component names when available. On external sites, the picker runs isolated from the page's scripts and captures screenshots directly from the Browser tab, so screenshots work even when a site's security policy blocks script-based capture.

You can also use **Design Mode** to edit styles and text on pages in the Browser tab.

## Opening chat links in a Browser tab

You can open external links from a session — including chat messages, the right pane, and Needs you cards — in a Browser tab next to the chat instead of your system browser:

* The first time you click an external link in chat, Devin Desktop opens it in your system browser and shows a toast offering to turn on **Open links in Browser tab**.
* Toggle this preference at any time under **App settings → Browser → Open links in Browser tab** (`devin.chatLinksOpenInBrowserTab`).

## Agent browser control

[Devin Local](https://docs.devin.ai/desktop/devin-local/overview.md) sessions — and [Devin Cloud](https://docs.devin.ai/desktop/devin.md) sessions connected to your machine with Local Access — can drive the Browser tabs in that session.

* **Actions** — The agent can list tabs, open and navigate URLs, inspect and query the accessibility tree, take screenshots, click, scroll, type, press keys, run JavaScript, answer page dialogs, and close tabs that the agent opened. Tabs you opened can only be closed by you.
* **Visual indicators** — An agent cursor shows each agent mouse action on the page, and a cursor icon replaces the favicon on each Browser tab the agent used in the current turn (including background tabs). Your own mouse pointer does not change, and your clicks pass through to the page.
* **Permissions** — Control agent access to Browser tabs with the `BrowserTab(*)` rule in [Devin Local permissions](https://docs.devin.ai/desktop/devin-local/permissions.md).

## Admin controls

Enterprise admins control which sites members can open in the Browser tab and Preview tab with the **Browser tab** [team setting](https://docs.devin.ai/desktop/controls.md#features). Configure it under **Settings → Enterprise → Devin Desktop** (or [windsurf.com/team/settings](https://windsurf.com/team/settings) for Windsurf Enterprise). Organization admins can [override](https://docs.devin.ai/desktop/controls.md#organization-overrides) the enterprise setting for one organization.

| Mode | Sites allowed in Devin Desktop |
| - | - |
| **Any site** | All sites. |
| **Only these sites** | Only the categories and domains selected in the **Allowed sites** dialog. |

Enterprise accounts default to **Only these sites** with **Devin Previews** and **localhost** selected and no domains. Other accounts default to **Any site**.

### Allowed sites

When you choose **Only these sites**, select any combination of the following in the **Allowed sites** dialog:

* **Devin Previews** — Preview URLs served by Devin from a session. Clear this option to turn off in-app previews in Devin Desktop; see [Admin controls in Devin Desktop](https://docs.devin.ai/work-with-devin/browser-previews.md#admin-controls-in-devin-desktop).
* **localhost** — Local dev servers on `localhost`, `127.0.0.1`, and `[::1]` on any port.
* **Domains** — Up to 500 exact hosts or wildcard patterns. Patterns are case-insensitive and match `http://` and `https://` on any port:

| Pattern | Matches | Does not match |
| - | - | - |
| `example.com` | `example.com` | `docs.example.com` |
| `*.example.com` | One subdomain level (`docs.example.com`) | `example.com`, `a.docs.example.com` |
| `**.example.com` | Any subdomain depth (`docs.example.com`, `a.docs.example.com`) | `example.com` |

### Enforcement and member experience

With **Only these sites** active:

* **All Browser tab loads are checked** — The allowlist applies to URLs typed in the URL bar, clicked links, redirects, pop-up windows, and pages opened by an agent.
* **Blocked pages** — A disallowed page shows **This site is blocked** with an **Open in external browser** button.
* **Chat links** — External links in chat that are not on the allowlist open in the member's system browser, even when **Open links in Browser tab** is on.
* **Credentialed URLs** — URLs with an embedded username or password (such as `https://user:pass@example.com`) are blocked, even for allowed hosts.
* **System browser unaffected** — This setting restricts pages inside Devin Desktop only. It does not block sites in the member's system browser.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.