Can my coding agent use a browser inside the app?

A browser beside the chat that your agents can use

Yes. Open the Browser from the right panel and you get a web view next to the chat. You can pick an element on the page and send it to the agent. The agent can open, read and use the same page through Trek’s browser tools, and you see each step.

Open it

Press ⌘J, or Ctrl+J, for the right panel and choose Browser. Its toolbar has, from left to right:

  • Back, Forward and Reload, then the address field.
  • Light, dark or automatic pages.
  • Pick an element for the chat.
  • Screenshot the page into the chat.
  • Extension buttons, on a Mac and on Windows.
  • More, with Zoom, Open in default browser, Developer tools and Clear cookies and site data.

Tabs sit above the page. Point it at your dev server, such as http://localhost:5173, or at any site.

Show the agent what you mean

Pick an element for the chat, then click the button or heading that looks wrong. Trek adds it to your message, so you can write “this one” and the agent knows which. Screenshot the page into the chat does the same with the part of the page in view.

How agents drive it

Trek gives each agent session an MCP server called trek-browser, with 18 tools. The agent reads a page as an outline where each control has a reference, then clicks, types or selects by that reference. It drives the same page you see.

  • Pages and tabs: browser_open, browser_tabs, browser_switch, browser_close, browser_back, browser_forward, browser_reload.
  • Reading: browser_snapshot, browser_text, browser_screenshot, browser_wait.
  • Acting: browser_click, browser_type, browser_press, browser_select, browser_hover, browser_scroll, browser_eval.

With Show the browser live on, which is the default, the Browser opens beside the chat as soon as the agent in the thread you’re watching starts to use it.

Claude Code, Codex, OpenCode, Droid, Cursor, GitHub Copilot and other ACP agents, and API and local models get these tools. Turn them off in Settings › Tools & MCP › Browser › Browser tools. A change applies to new sessions.

What asks you first

Opening and reading pages never asks. These do, on the thread’s usual approval card, depending on its hand-holding level:

ActionSupervisedAuto-accept editsAutoFull access
Typing into a password fieldAsksAsksAsksDoesn’t ask
Running a script in the pageAsksAsksAsksDoesn’t ask
Opening a file on this computer (a file:// address)AsksAsksAsksDoesn’t ask
Sending a form to another siteAsksAsksDoesn’t askDoesn’t ask
Downloading a fileAsksAsksDoesn’t askDoesn’t ask
Using or making a passkey Trek keeps (Mac)AsksAsksAsksAsks

Taking it back

While an agent works in the Browser, a strip above the page says Agent is using the browser, with the thread and its last action. Stop takes the browser back. The agent’s browser tools then fail for the rest of that turn, with a message telling it to wait for you. Hand back gives it the browser again.

Platforms

  • macOS: WebKit. Extensions on macOS 15.4 or later, ad and tracker blocking, and passkeys.
  • Windows: WebView2. Extensions without toolbar buttons or popups, tracker blocking, and ad blocking with your own uBlock Origin.
  • Linux: WebKitGTK in an X11 window. No extensions or blocking.

Picking elements, screenshots, developer tools, tabs and the agent tools work on all three.

When another browser tool fits better

Trek’s Browser is one page that you and the agent share, in the system’s web view. For tests across several browser engines, a headless run, or Chrome’s own performance tools, Playwright MCP or Chrome DevTools MCP fits better. Add either in Settings › Tools & MCP, under Your MCP servers, and Trek passes it to every new session. The browser guide sets them side by side.

If Claude Code is your one agent, the Claude desktop app’s Browser pane starts your dev server and lets Claude check its own change there, with screenshots, clicks and form filling. Orca gives every worktree its own browser, a Chromium window with devtools, which agents drive through the Orca CLI.

Questions

Can a web page tamper with the agent’s browser tools?

Trek runs its tools’ script in a script world of its own, which shares the page’s document and nothing else. The page can’t stand in for that script or change what it reports, and that report decides when you’re asked before a password or a form goes out. On Windows, if that world can’t be made, every click, typed value and key press in the tab asks you.

Whose sign-ins does it use?

Its own. The Browser keeps its cookies and sign-ins apart from Safari, Chrome or Edge, and every tab shares them. An agent using the Browser is signed in wherever you signed in there. Clear cookies and site data, under More, signs you out of every site.

Does it work on Wayland?

Yes. On a Wayland desktop Trek runs through Xwayland, where the Browser works. If you run Trek as a native Wayland app instead, the Browser can’t show pages.

Sources

Every agent. One trail.

Free and open source, for macOS, Windows and Linux (a preview). No Trek account.

Download TrekWaiting on you

Your system
Download for macOS

Apple silicon · macOS 13 or later Other chip: Intel

The first time you open it, go to System Settings, Privacy & Security and click Open Anyway.

Download for Windows

Installer, x64 · Windows 11 Other file: Zip, no installer

The first time, SmartScreen asks. Click More info, then Run anyway.

Download for Linux

x86_64 AppImage · Preview Other files: .debArm AppImageArm .deb

Runs on Ubuntu 22.04, Debian 12, Fedora 36 or later. Make the AppImage executable, then run it.

  • Homebrew (macOS)brew install --cask dokyit/trek/trek
  • npmnpx trek-desktop
  • Shell (macOS, Linux)curl -fsSL https://trekdesktop.com/install.sh | sh
  • PowerShell (Windows)irm https://trekdesktop.com/install.ps1 | iex

Every release, on GitHub

Trek is a desktop app. Open this page on your computer to get it.