Helm

  • Extensions and automation
  • Browser Agent
  • 2026
  • Private

WXT, React, TypeScript, Tailwind CSS and 4 more

Helm is a Chrome extension that hands the tab I am looking at to OpenAI’s computer-use model, gpt-6.1-sol. I type a task in the side panel, and Helm drives the page in my own browser, with my own logins, through chrome.debugger. It is built with WXT, React 19 and TypeScript, plus a small Node relay. Esc, Stop or Cancel on Chrome’s debugging bar takes the tab back.

It began as cua.py, a Python script that drove a Playwright Chromium. That browser had none of my sessions, and the work I wanted sat behind sign-ins. An extension runs inside my real profile, which raised a harder question: what should an agent do at a password field? The generally available computer tool returns no safety checks of its own, so consent was entirely my job.

A Chrome extension that hands the current tab to an OpenAI computer-use model through chrome.debugger, and lets go of it whenever I need to sign in.

pnpmsession

# task typed in the side panel, on a signed-out apppnpm relayHelm relay on ws://127.0.0.1:8787chrome.debugger.attach   CDP 1.3, debugging bar shownscreenshot               JPEG in CSS pixelscomputer_call            click, typewait_for_user            detached, Your turntab settled 1.5 s        not a sign-in URLBack in control. Continuing.read_page                text and dropdownsresponse.completed       summary, no tool calls

1 command9 lines of output

numbersfrom the write-up

1.5 spast sign-in before Helm takes the tab back

40
model turns per task before Helm pauses
16
scripted end to end scenarios against a fake relay
20 s
timeout on every CDP command
Chapter
Extensions and automation
Category
Browser Agent
Year
Availability
Private
stack8 parts
  • WXT
  • React
  • TypeScript
  • Tailwind CSS
  • Chrome DevTools Protocol
  • OpenAI Responses API
  • Node.js
  • Playwright

Browser Extension, Computer Use, TypeScript, React, WXT, Chrome DevTools Protocol

architecturethe sign-in handoff
A side panel drives the tab through chrome.debugger and reaches the model through a local relay, and lets go of the tab while I sign inSide panelthe agent looplib/agent.ts40 turns at mostStop · Escserver/relay.ts127.0.0.1:8787adds the keyextension originsResponses APIWebSocket modegpt-6.1-solstore: trueYour tabyour loginsCDP 1.3Input.dispatch*debugging barSign-in handoffdetached, Your turnlooksLikeSignIn1.5 s settleService workerholds the panel portwswssinputscreenshotwait_for_userdetachdetaches on panel closethe key never reaches the extensionno host permissionsA side panel drives the tab through chrome.debugger and reaches the model through a local relay, and lets go of the tab while I sign inwscomputer_callwait_for_userSide panelthe agent looplib/agent.ts40 turns at mostserver/relay.tsadds the keyResponses APIgpt-6.1-solYour tabyour loginsCDP 1.3 · Input.dispatch*debugging barSign-in handoffdetached, Your turnlooksLikeSignIn1.5 s settlethe key never reaches the extensionservice worker detaches on panel close
At a sign-in page Helm lets go of the tab, so the model sees nothing while I type, and takes it back once the page moves on.

The loop

The loop in lib/agent.ts runs in the side panel. lib/cdp.ts attaches to the tab with CDP 1.3 and captures a screenshot, resized to CSS pixels, capped at 1600 by 1000 and sent as JPEG. The model answers with a computer_call holding a batch of actions. lib/input.ts maps click, drag, scroll, keypress, type and the rest to Input.dispatchMouseEvent, dispatchKeyEvent and insertText. Then it screenshots again and repeats, for at most 40 turns. Four function tools fill the gaps screenshots leave. navigate and go_back exist because the address bar is not in the picture. read_page returns visible text and every dropdown’s options, since native menus never appear in screenshots. wait_for_user hands the tab over. lib/presence.ts puts the driven tab in a tab group whose colour and label follow the run.

Where the key lives

Model calls use the Responses API in WebSocket mode, one socket per panel. A browser cannot put an Authorization header on a WebSocket. OpenAI refused a key in the subprotocol, and declarativeNetRequest header rules skip WebSocket handshakes. So server/relay.ts listens on 127.0.0.1:8787, accepts only chrome-extension:// origins, adds the key and pipes frames both ways. It preserves each frame’s kind, because OpenAI closes the socket on a binary frame. Against POST /v1/responses on the same tasks, follow-up turns took 1.7 to 2.3 seconds instead of 2.6 to 4.0. The API has no cancel event, so Stop closes the socket. store: true keeps previous_response_id valid across the reconnect.

Letting go at sign-in

The system prompt tells the model to check whether I am signed in before account work. If I am not, it calls wait_for_user instead of replying. Helm then detaches, so it takes no screenshots and sends no input while I type a password. Chrome’s debugging bar disappears, and the panel shows a “Your turn” card. Helm reattaches when I press Continue, or when the tab rests for 1.5 seconds on a URL that looksLikeSignIn in lib/signin.ts rejects. That check matches identity provider host labels, login, OAuth and 2FA paths, and a code with a state. Password managers add a twist. 1Password’s inline menu is another extension’s frame, and Chrome ends Helm’s session the moment it appears. Helm steps back and retries every 1.5 seconds, and skips input it planned before the pause.

Decisions and costs

  • Run the loop in the panel, not the service worker. A worker can be suspended mid-task. The cost is that closing the panel stops Helm, so entrypoints/background.ts holds a port and detaches the debugger when it drops.
  • Detach during sign-in instead of masking screenshots. Helm cannot record what it is not attached to. The cost is a reattach that can fail, and work planned against the old page that gets thrown away.
  • Ask for everything in the manifest: debugger, sidePanel, tabs, storage and tabGroups, with no host permissions. One install dialog covers it, at the price of the debugger warning and a closer Web Store review.
  • Keep irreversible actions in the prompt. It treats page text as untrusted and says to stop before purchases, sending messages, deleting data, changing settings or typing secrets. “Ask before each step” shows every batch for approval. Only navigate is checked in code, limited to http(s) URLs. This is the one I would revisit.

Running it

bash4 lines
pnpm install
echo 'OPENAI_API_KEY=...' > .env   # read by the relay, never the extension
pnpm build:install                 # copies the build to build/helm-chrome
pnpm relay

Load build/helm-chrome unpacked at chrome://extensions, then press Alt+Shift+H on a normal page. Type a task and press Enter.

Tests and limits

pnpm check runs Vitest, tsc and the build. The 9 unit tests cover key mapping and the sign-in check, and passed when I ran them. pnpm test:e2e drives real Chromium against a fake relay through 16 scripted scenarios, including a fixture extension that imitates a password manager. pnpm test:live runs four real tasks against the API. Every CDP command has a 20 second timeout. Chrome never lets an extension drive chrome:// pages, the Web Store or other extensions, so Helm opens a blank tab instead. The relay trusts the extension origin and has no user auth. Run history and per-site allow lists are not built. Version 0.1.0 is unpublished, and the source is private.

All 43 projects