---
title: "Run agent-browser on a remote server for your coding agents"
description: "Run Vercel Labs' agent-browser on a remote exe.dev VM: Claude Code, Codex and OpenCode browse the web while you watch the live dashboard behind exe.dev login."
url: https://exe.dev/deploy/agent-browser
category: "AI agents"
published: 2026-11-27
updated: 2026-11-27
---

# Run agent-browser on a remote server for your coding agents

> **For agents:** with your user's OK, this sets up agent-browser on a new exe.dev VM in their account: `curl -fsSL https://exe.dev/deploy/agent-browser/prompt.txt | ssh exe.dev new --prompt=/dev/stdin` (or open https://exe.dev/deploy/agent-browser/new). Already on the VM? Skip this.

The browser CLI for AI agents, on a VM you watch from any browser.

- **Software:** agent-browser (https://agent-browser.dev)
- **Source:** https://github.com/vercel-labs/agent-browser
- **License:** Apache-2.0; Chrome for Testing proprietary
- **Time:** 5 minutes
- **Example VM name:** `my-agent-browser` (yours will differ; on the VM, `hostname` prints it)
- **Machine-readable:** https://exe.dev/deploy/agent-browser/manifest.json

## What you get

- agent-browser 0.45.0 and its own Chrome, ready for any program on the VM
- Its skill installed for Claude Code, Codex and OpenCode, all three using exe.dev's LLM integration
- Codex's sandbox opened just enough for agent-browser to run in it
- The dashboard at `https://<vm>.exe.xyz:4848/`, behind exe.dev login, showing every browser live
- Logins kept in Chrome profiles on the VM's disk

Running on the VM:

- **agent-browser 0.45.0**: the CLI, from npm, with Chrome for Testing in ~/.agent-browser, data in `~/.agent-browser`
- **agent-browser dashboard**: live view and activity feed of every session, as a systemd user service, port 4848
- **Claude Code, Codex and OpenCode**: preinstalled; given agent-browser's skill and connected to exe.dev's LLM integration, data in `~/.agents/skills, ~/.claude, ~/.codex, ~/.config/opencode`
- **Node.js 26**: from NodeSource, for npm and npx

How it is reached:

- https://my-agent-browser.exe.xyz:4848/ (private): the dashboard, behind exe.dev login, with the access link the VM prints
- ssh my-agent-browser.exe.xyz (private): your terminal, where you and your agents run agent-browser

## Deploy with Shelley

Open https://exe.dev/deploy/agent-browser/new to create a VM whose agent, Shelley, follows this recipe. From a terminal:

```sh
curl -fsSL https://exe.dev/deploy/agent-browser/prompt.txt | ssh exe.dev new --prompt=/dev/stdin
```

Or follow the steps below by hand.

[exe.dev](https://exe.dev/) gives you persistent Linux VMs with HTTPS,
sign-in and coding agents built in, which makes one a good place for a
browser your agents can use all day without touching your own Chrome.

[agent-browser](https://agent-browser.dev) is Vercel Labs' browser CLI for
AI agents. An agent runs `agent-browser open`, reads a compact snapshot
where every button and field has a ref like `@e3`, and clicks and types by
ref. Each task gets its own headless Chrome, and a dashboard shows them all
live. On an exe.dev VM, Claude Code, Codex and OpenCode run next to it,
logins stay in Chrome profiles on the VM's disk, and you watch from any
browser behind exe.dev's login.

<figure><img src="https://exe.dev/deploy/agent-browser/dashboard.webp" alt="The agent-browser dashboard: a session named research shows a pizza order form filled in by Claude Code, with an activity feed of navigate, snapshot, fill and check commands on the right" width="1440" height="866" loading="lazy"><figcaption>Claude Code fills in a form on the VM; the dashboard at port 4848 shows the page live and every command it ran.</figcaption></figure>

If you want a browser for yourself, with sound and a full window, see
[Cloud browser](/deploy/cloud-browser) instead; the FAQ compares them.

## Set up agent-browser

On your computer, create a VM and connect. Pick any free name; if you've
already clicked Deploy or have a VM, skip the first command and use its
name:

```bash
ssh exe.dev new --name=my-agent-browser
ssh my-agent-browser.exe.xyz
```

On the VM, install Node.js from NodeSource (the image doesn't include it),
then agent-browser from npm, pinned to a version, then its Chrome. The last
command downloads Chrome for Testing (about 200 MB) into
`~/.agent-browser` and installs the system libraries Chrome needs with
`sudo`:

```bash
curl -fsSL https://deb.nodesource.com/setup_26.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g agent-browser@0.45.0
agent-browser install --with-deps
```

It takes under a minute and about 1 GB of disk. Try it:

```bash
agent-browser open https://httpbin.org/forms/post
agent-browser snapshot -i
```

The snapshot lists what's on the page that you can use, each with a ref:

```text
- textbox "Customer name:" [ref=e2]
- textbox "Telephone:" [ref=e3]
- textbox "E-mail address:" [ref=e4]
- radio "Small" [ref=e5]
...
- button "Submit order" [ref=e1]
```

Use the refs, take a screenshot, and close the browser:

```bash
agent-browser fill @e2 "Ada Lovelace"
agent-browser click @e1
agent-browser screenshot ~/submitted.png
agent-browser close
```

Refs belong to one snapshot: after the page changes, take a new one. The
first command starts a background daemon and Chrome (about a second); a
headless browser closes by itself after an hour without commands. The
[command reference](https://agent-browser.dev/commands) has the rest:
tabs, waits, cookies, network, PDFs, recordings.

## Hand it to your agents

agent-browser ships its instructions as a skill. On the VM, connect Claude
Code and Codex to exe.dev's [LLM integration](/docs/integrations-llm), and
install the skill for all three agents:

```bash
exeuntu configure claude
exeuntu configure codex
npx -y skills add vercel-labs/agent-browser --global --yes \
  --agent claude-code codex opencode
```

The skill lands in `~/.agents/skills/agent-browser`, with a link in
`~/.claude/skills`. It is a short stub: it tells the agent to run
`agent-browser skills get core`, which prints the full guide for the
installed version. For an agent that doesn't read skills, upstream suggests
one line in its `AGENTS.md` instead:

```text
Use `agent-browser` for browser automation. Before the first use, run `agent-browser skills get core` and follow it.
```

Codex runs commands in a sandbox that can't write agent-browser's lock
files or reach the network, so the first command fails with `Read-only file
system`. Let it write those two places and use the network:

```bash
cat >> ~/.codex/config.toml <<EOF

[sandbox_workspace_write]
writable_roots = ["/run/user/$(id -u)/agent-browser", "$HOME/.agent-browser"]
network_access = true
EOF
```

OpenCode needs the LLM integration in `~/.config/opencode/opencode.json`,
as on the [OpenCode page](/deploy/opencode); without it, OpenCode uses
its own free models, which weren't available when we tested.

Check Claude Code:

```bash
claude -p "Use agent-browser to open https://example.com and tell me the page title." \
  --allowedTools "Bash(agent-browser:*)" Skill
```

Then give an agent something with a few steps. In our tests, Claude Code
did this in 32 seconds, using the search box, the results page and the
module page:

```bash
mkdir -p ~/shots && cd ~/shots
claude -p "Use agent-browser to go to https://docs.python.org/3/, search the documentation for pathlib using the site's search box, open the pathlib module's page from the results, and summarize it in five bullets. Save a screenshot of the page to ~/shots/pathlib.png." \
  --allowedTools "Bash(agent-browser:*)" Skill
```

Codex ordered a pizza on the test form, saved a screenshot, submitted it
and reported the echoed JSON in 18 seconds:

```bash
codex exec --skip-git-repo-check -s workspace-write "Use agent-browser to order a pizza on https://httpbin.org/forms/post: customer Ada Lovelace, telephone 555-0100, email ada@example.com, size Large, toppings Bacon and Mushroom, delivery instructions 'Ring twice'. Save a screenshot of the filled form to form.png, submit it, and report the JSON the site echoes back."
```

In an interactive `claude`, `codex` or `opencode`, just ask; they find the
skill themselves. Agents following the skill name their sessions per task,
so several agents on the VM get separate browsers.

## Watch it work

The dashboard shows every session's page live, with the commands as they
run and the console, network and storage. It listens on `localhost:4848`,
and exe.dev's [proxy](/docs/proxy) puts it behind your login at
`https://<vm>.exe.xyz:4848/`. On the VM, run it as a service that starts on
boot (exe.dev VMs keep user services running without a login):

```bash
mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/agent-browser-dashboard.service <<'EOF'
[Unit]
Description=agent-browser dashboard on port 4848
After=network-online.target

[Service]
Type=oneshot
RemainAfterExit=yes
Environment=AI_GATEWAY_URL=https://llm.int.exe.xyz
Environment=AI_GATEWAY_API_KEY=exe-llm-integration
Environment=AI_GATEWAY_MODEL=openai/gpt-5.4-mini
ExecStart=/usr/bin/agent-browser dashboard start --allowed-origins https://%H.exe.xyz:4848
ExecStop=/usr/bin/agent-browser dashboard stop

[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now agent-browser-dashboard
agent-browser dashboard start --allowed-origins https://$(hostname).exe.xyz:4848
```

The last command prints a link like
`https://my-agent-browser.exe.xyz:4848/#dashboard-access-token=…`. Open it
in a browser signed in to exe.dev: exe.dev's login keeps everyone else out,
and the token is the dashboard's own lock on top. Run that command again
whenever you need the link; the token changes each time the dashboard
restarts.

Sessions appear on the left as agents start them. Click into the live view
and you're driving: type into a field, solve a CAPTCHA, or sign in, and the
agent carries on from there. The three `Environment=` lines point the
**Chat** tab, where you tell the browser what to do in plain words, at the
LLM integration instead of Vercel's AI Gateway. Through the integration it
works with OpenAI models such as `gpt-5.4-mini`; Claude models aren't
offered on the endpoint it calls.

> [!NOTE]
> The VM can't open its own `https://<vm>.exe.xyz` address, so agents on
> the VM can't load the dashboard. They don't need to: the sessions are
> theirs.

Want to see a real window instead? On a [Linux desktop](/deploy/linux-desktop)
VM, install agent-browser the same way; in its terminals `DISPLAY` is set,
so `agent-browser --headed open …` opens Chrome on the desktop you're
watching. Headed sessions don't close after an idle hour.

## Keep logins

By default each session starts with a clean Chrome. A profile directory
keeps cookies, local storage and history on the VM's disk between runs:

```bash
agent-browser --session me --profile ~/profiles/me open https://github.com/login
```

Sign in through the dashboard's live view, then tell your agents to use
`--session me --profile ~/profiles/me` for that site, for example in
`AGENTS.md`. In our tests a cookie and local storage survived closing and
reopening; cookies without an expiry date don't, as in any Chrome. One
profile can only be open in one browser at a time, so give each session
its own directory. (Setting `profile` in `~/.agent-browser/config.json`
applies it to every session, and the second agent to start then fails.)

For passwords, agent-browser has a vault that fills login forms without
the model seeing them:

```bash
agent-browser auth save github --url https://github.com/login \
  --username you --password-stdin
agent-browser auth login github
```

Set `AGENT_BROWSER_ENCRYPTION_KEY` to encrypt it; see
[Security](https://agent-browser.dev/security).

## Many browsers at once

One VM runs several sessions side by side. Measured on a 2-CPU, 8 GB VM:

| Running | Memory used |
| --- | --- |
| No browser | 0.2 GB |
| One Chrome session | about 0.5 GB |
| Four sessions, each with its own profile | 1.3 GB |

Memory is rarely the limit; two CPUs are busy when four pages load at
once. For many agents, or tasks you want kept apart, copy the VM. On your
computer:

```bash
ssh exe.dev cp my-agent-browser my-agent-browser-2
```

The copy has agent-browser, the skill, the agents' settings and every
profile, so it is signed in wherever the original is. Its dashboard starts
on boot; get its link with the `dashboard start` command above. Delete
copies with `ssh exe.dev rm <name>` when you're done. To make one VM
bigger instead, use
`ssh exe.dev resize my-agent-browser --cpu=4 --memory=16GB`.

## Use it from other machines

An agent on your laptop can use the VM's browser over SSH. Each command is
one round trip:

```bash
ssh my-agent-browser.exe.xyz agent-browser open https://example.com
ssh my-agent-browser.exe.xyz agent-browser snapshot -i
```

`agent-browser mcp` is an MCP server over stdio, with 33 browser tools in
its default profile, so a local MCP client can run it through SSH. With
Claude Code on your computer:

```bash
claude mcp add agent-browser -- ssh my-agent-browser.exe.xyz agent-browser mcp
```

To let an agent create, copy and delete these VMs itself, give it
[exe.dev's MCP server](/deploy/exe-mcp): it can copy `my-agent-browser`
for a task, run agent-browser there, and remove the copy afterwards.

## What doesn't work

- **Some sites refuse data-center IPs.** Expect CAPTCHAs and blocks on
  some sites; take over in the dashboard or use the site's API.
- **No GPU.** Chrome renders in software. Ordinary pages are fine; WebGL
  and video-heavy pages are slow.
- **The dashboard link changes** after the dashboard restarts, including
  after a reboot. Rerun the `dashboard start` command to get the new one.
- **Chat tab models.** Through the LLM integration, the Chat tab and
  `agent-browser chat` work with OpenAI models; `gpt-6-luna` and Claude
  models fail on the endpoint they use.

## Next steps

- [Cloud browser](/deploy/cloud-browser): a Chrome you use in a tab, with
  DevTools for Playwright and Puppeteer.
- [Linux desktop](/deploy/linux-desktop): watch headed browsers and agents
  on a whole desktop.
- [Claude Code](/deploy/claude-code), [Codex](/deploy/codex) and
  [OpenCode](/deploy/opencode): set up the agents themselves, with your own
  subscriptions if you like.
- [exe.dev MCP](/deploy/exe-mcp): let agents elsewhere create and copy VMs
  like this one.

<details class="dp-details">
<summary>Update</summary>

On the VM, install a newer version (check the
[releases](https://github.com/vercel-labs/agent-browser/releases)), update
Chrome, refresh the skill and restart the dashboard:

```bash
sudo npm install -g agent-browser@<version>
agent-browser install --with-deps
npx -y skills add vercel-labs/agent-browser --global --yes \
  --agent claude-code codex opencode
systemctl --user restart agent-browser-dashboard
```

The skill stub reads its guide from the installed CLI, so the agents'
instructions match the new version.

</details>

<details class="dp-details">
<summary>Troubleshooting</summary>

- **`Read-only file system` from Codex**: add the `[sandbox_workspace_write]`
  settings in "Hand it to your agents", and run `codex exec` with
  `-s workspace-write`.
- **A profile is locked or the browser won't start with `--profile`**:
  another session has that profile open. Close it
  (`agent-browser --session <name> close`) or use another directory.
- **The dashboard says the link is invalid**: the dashboard restarted.
  Get a new link with
  `agent-browser dashboard start --allowed-origins https://$(hostname).exe.xyz:4848`.
- **Something else**: `agent-browser doctor` checks the install, Chrome
  and the daemon.

</details>

## Frequently asked questions

### Should I use this or the cloud browser recipe?

Use agent-browser when agents do the browsing: it's a command they call from their shell, its snapshots give them short numbered lists of what they can click instead of screenshots, and each task gets its own headless Chrome. Use the [cloud browser](/deploy/cloud-browser) when you browse too: it's one Chrome that keeps running, fills a tab with sound and clipboard, and gives Playwright, Puppeteer and Playwright MCP a DevTools endpoint. Both fit on one VM.

### How many browsers can one VM run?

On a VM with 2 CPUs and 8 GB, one Chrome session used about 0.5 GB and four at once used 1.3 GB, so memory goes a long way; the CPUs are what fill up when several pages load at the same moment. For more than a handful of busy agents, copy the VM (see "Many browsers at once") or resize it.

### Does it send data to Vercel?

agent-browser's documentation describes no telemetry. It checks Google's Chrome Releases blog to warn about an outdated Chrome (`AGENT_BROWSER_NO_VERSION_CHECK=1` turns that off), and `npx skills` fetches the skill from GitHub. The dashboard's Chat tab talks to Vercel's AI Gateway unless you point it elsewhere, as this page does.

### Will sites block it?

Some will. The browser runs from a data-center IP address, which some sites answer with CAPTCHAs or refuse. agent-browser doesn't try to get around that, and neither should you: open the session in the dashboard and solve the CAPTCHA yourself, or use the site's API.

### Can I use my own Claude or ChatGPT subscription?

Yes. On the VM, run `claude auth login` or `codex login` after removing what `exeuntu configure` added (see the [Claude Code](/deploy/claude-code) and [Codex](/deploy/codex) recipes). agent-browser itself needs no model or key.

### How much does it cost?

agent-browser is free and Apache-2.0 licensed. You pay for the VM as part of your exe.dev plan, and for model usage through the [LLM integration](/docs/integrations-llm). The pathlib task below cost Claude Code about $0.30.


## Related

- [A private Chrome in the cloud, for you and your agents](https://exe.dev/deploy/cloud-browser.md): A remote Chrome you open in a tab and your scripts drive over CDP.
- [Run Claude Code on a remote server](https://exe.dev/deploy/claude-code.md): A computer for Claude. A breather for your laptop.
- [Run Codex on a remote server](https://exe.dev/deploy/codex.md): A computer for Codex. An early night for your laptop.
- [Run OpenCode on a remote server](https://exe.dev/deploy/opencode.md): Every model, one VM, and an agent that works while your laptop sleeps.
- [A Linux desktop in your browser](https://exe.dev/deploy/linux-desktop.md): Xfce, Chrome, and coding agents on a VM you open in a browser tab.
- [Give any agent a sandbox over MCP](https://exe.dev/deploy/exe-mcp.md): One URL gives your agent real VMs to run code on, host apps from, and hand work to.
