Bosphorus

← Knowledge base

Chrome DevTools in aimo for VS Code: platform or your own key

Let the aimo agent drive a Chrome on your own machine and read a page's console and network: registered once by an administrator, or on your own key.

VS CodeToolsBrowserDirect modeChecked against the product on

The aimo extension for VS Code can drive a real Chrome on your own computer: open a page, read its console messages and network requests, take a snapshot or a screenshot, click and fill in forms. Ask why is this page broken? and the agent looks at the page the way you would in Chrome’s developer tools, then answers from what it saw.

It runs the open-source Chrome DevTools MCP server beside VS Code. There are two ways to set it up:

This article was checked on 5 November 2026 with the Marketplace build of aimo 1.4.0 in a clean VS Code profile, once signed in to a live installation and once in direct mode on an Evren key. Every screenshot comes from those runs.

Before you start: Part A needs access to a Bosphorus installation and a sign-in on it. If you would like to try it, contact Morten or write to iletisim@morten.com.tr. Part B needs only an API key from a model provider.

Who does what

Step Who Where
Register the Chrome DevTools recipe Administrator Console, /mcp
Turn on local tool servers Each person VS Code, user settings
Sign in and ask Each person VS Code, the AIMO chat
Read what was recorded Each person, administrators Console, /activity
Or: switch to your own key and add the server Each person VS Code

What you need

The example below is a three-file page served at http://localhost:3000. Its script loads /api/prices.json, which does not exist, so the page’s Total stays empty.

Part A: on the platform

A1. Register the recipe (administrator)

On the console’s /mcp page, open Register a server and use the card Register a local server (runs in the VS Code extension):

Field Value
Name chrome-devtools
Recipe Chrome DevTools (local browser)
Result capture preview — the first 2,000 characters
Description Drive a Chrome on your own machine: open pages, read the console and network requests, take screenshots

The Register a local server card on /mcp, filled in for the Chrome DevTools recipe

Press Register local server. The console answers:

chrome-devtools registered: a local chrome-devtools server, run by the aimo VS Code extension on each person’s own machine (for people who turn on aimo.mcp.local.enabled). The platform never syncs or relays it; it checks and audits every call before it runs.

What the registration stores, and what it does not:

The registered server on the Registered servers tab: all teams, all users, result capture preview

A2. Turn on local tool servers (each person)

Open your user settings (Preferences: Open User Settings (JSON)) and add:

"aimo.mcp.local.enabled": true,
"aimo.mcp.local.recipeOptions": {
  "chrome-devtools": { "headless": false, "isolated": true }
}

A3. Sign in and check the server is listed

Sign in with AIMO: Sign in. The Tool Servers view at the bottom of the AIMO sidebar now lists chrome-devtools marked this machine. It has no tools yet: it starts the first time it is used.

If it is missing, AIMO: Show Log tells you whether the extension received it. The line must end with 1 of them run on this machine; on the installation we used it read:

mcp: 48 tool server(s), 1619 tool(s) in the registry, 1 of them run on this machine

Without that ending, aimo.mcp.local.enabled is not on (or not in your user settings).

A4. Ask, naming the tool server

Open a chat in Agent mode and ask, naming the server:

Use the chrome-devtools tool server to open http://localhost:3000. Why is the Total empty? List the console errors and the failed network requests. Don’t change any files.

Name it. On an installation with many tool servers, the short list the model is given names only the first few dozen. Up to aimo 1.4.0 the servers on your machine came last in it, and in our runs a request that only said with Chrome DevTools was answered with the model’s own scripts instead. From 1.4.1 they come first. Naming the server is still the surest way to make the model search that server first.

The first time the server starts on this machine, AIMO shows you exactly what will run and asks:

The consent dialog: Start chrome-devtools on this machine? with the command, the options and the settings it will run with

It asks again whenever any of this changes: the version, an option, a setting. aimo 1.4.2 added one setting, npm_config_prefer_offline=true (start from npm’s cache), so after that update it asks once more. Then, before every call, the platform checks the call and records it. A call that can change something waits for you:

The chat: the model finds the server, starts it, and asks before opening the page with new_page

Tools that only read (the console messages, the network requests, the list of pages) run without a card. Chrome starts with a temporary profile and the answer arrives:

The answer: why Total is empty, the four console errors and the two failed requests

Use Agent mode: Ask and Plan change nothing, and opening a page is not a read-only tool, so they refuse it.

A5. What the platform records

Every local call is in the audit trail, under the same session as the chat. On the chat’s page in /activity, each one reads local, checked by the platform and ran in VS Code, with its arguments, its outcome and how long it took:

The activity page for the chat: each Chrome DevTools call checked by the platform and run in VS Code

Reading the Activity page explains the rest of that page.

Part B: direct mode, on your own key

B1. Switch to your own key

If you signed in to the platform on this machine in Part A, run AIMO: Sign out first. Since aimo 1.4.6 direct mode belongs to one window and signs nobody out, and while a platform key is on this machine your own tool servers do not run in a direct-mode window.

Then run AIMO: Use Your Own Provider API Key…:

  1. Read what direct mode changes, and accept it.
  2. Choose the provider: OpenRouter, Hugging Face, Evren, Novita, Cerebras, or any OpenAI-compatible endpoint.
  3. Paste your key; it is kept in VS Code’s secret storage, never in settings.
  4. Choose a model the provider lists with tools. AIMO never picks one for you.

The platform’s recipes are rows in its registry, so in direct mode there are none: you run the server as your own.

B2. Add the server as your own

In your user settings:

"aimo.mcp.local.enabled": true,
"aimo.mcp.local.servers": {
  "chrome-devtools": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "chrome-devtools-mcp@1.11.0", "--no-usage-statistics",
             "--no-performance-crux", "--redact-network-headers", "--isolated"],
    "env": {
      "CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS": "1",
      "CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS": "1",
      "CHROME_DEVTOOLS_MCP_NO_CONFIG_DISCOVERY": "1"
    },
    "description": "Drive a Chrome on this machine: open pages, read the console and network requests, take screenshots"
  }
}

This is the recipe’s own launch line and environment: the same pinned version, the same switches. --isolated matters most (see the next section). If VS Code cannot find npx, give its full path, which which npx prints in a terminal; it must lie outside the workspace.

B3. Ask

With only this server on the machine, naming it Chrome DevTools was enough:

Open http://localhost:3000 with Chrome DevTools. Why is the Total empty? List the console errors and the failed network requests.

The consent dialog now reads Start your tool server “chrome-devtools” on this machine?, and the model calls the server as own_chrome-devtools:

Direct mode on Evren: the model opens the page and reads the console and network through own_chrome-devtools

To go back, run AIMO: Switch Connection (Platform or Your Own Key)…, choose the platform and sign in again. If you keep your own definition as well as the platform’s recipe, add "disabled": true to yours, so the model is not offered the same tools twice.

Headless, isolated or your own Chrome

Headless means Chrome runs with no window on your screen. Nothing else changes: pages load and run their scripts, console messages and network requests are recorded, and snapshots and screenshots are rendered off screen exactly as they would be in a window. You simply do not see it happen.

Isolated means every start gets a temporary Chrome profile, deleted when the browser closes: none of your everyday Chrome’s cookies, history, extensions or sign-ins, and nothing the agent did survives the session. Leave it on. Without it, every Chrome DevTools server on the machine uses one shared profile folder (~/.cache/chrome-devtools-mcp/chrome-profile), and two VS Code windows collide on it.

Your own Chrome (browserUrl): when a page needs a sign-in you made yourself, start a Chrome with a debugging port and a profile of its own, and let the server attach to it. Never point it at your everyday profile. The server says so itself when it starts: it exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools. Chrome opens its debugging port only for a separate profile anyway (the server’s guide):

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --remote-debugging-port=9222 --user-data-dir="$HOME/.cache/aimo-chrome-debug"

Sign in to what you need in that window, then set the address. Headless and isolated no longer apply: the browser is yours.

Platform recipe (aimo.mcp.local.recipeOptions) Your own server (args) Recipe default
Headless "headless": true --headless off on your computer, on in a remote window
Isolated "isolated": true --isolated on
Your own Chrome "browserUrl": "http://127.0.0.1:9222" --browserUrl=http://127.0.0.1:9222 none

Your own server has only the switches you write in args: without --headless and --isolated both are off. The recipe accepts browserUrl only as an http:// address on this machine. Every change to these options asks for consent again before the server next starts.

The 32 tools

Chrome DevTools MCP 1.11.0 offers 32 tools. Eight only read and run without a card: list_pages, select_page, list_console_messages, get_console_message, list_network_requests, get_css_styles, performance_analyze_insight and wait_for. Every other tool asks first, among them opening and navigating pages, clicking, filling in forms, running a script in the page (evaluate_script), snapshots, screenshots, performance traces, Lighthouse audits and file uploads.

When something goes wrong

What you see Why, and what to do
The model uses other tools or writes its own scripts It was not told about the server. Update to aimo 1.4.1 or later, and name the server in the request (A4).
chrome-devtools is not in Tool Servers aimo.mcp.local.enabled is not on: check the log line in A3. On the platform, also check the server’s scope and access on /mcp.
Restricted Mode: nothing local runs until you trust this workspace Trust the folder.
not run: the platform could not record this call, so local tools do not run. The platform could not be reached; nothing ran. Try again once it answers.
not run: this chat is in Ask mode, which changes nothing. Switch the chat to Agent.
VS Code cannot find npx Install Node.js. For your own server, give the full path to npx (B2).
… npx could not fetch chrome-devtools-mcp 1.11.0 … The first start on this machine downloads the server with npx, and that failed; the message quotes npm’s own error. Check your network and the registry npm uses (npm config get registry), then ask again.
… did not answer initialize within 90 s on the first start Up to aimo 1.4.1 the first start’s download counted against those 90 seconds. Update to aimo 1.4.2 or later, which downloads first.

Why the browser runs on your machine

A browser inside the platform could not reach http://localhost on your computer, and one there could reach internal addresses on everyone’s behalf. Running it beside VS Code keeps it within your own machine’s reach and permissions, while on the platform every call is still checked and recorded before it runs.