@vymalo/opencode-browser weekly downloads statistics
OpenCode plugin that gives the model hands in a real browser: it registers browser_* tools (open, click, type, scroll, screenshot, snapshot, …) and hosts a localhost WebSocket bridge that a companion Chromium/Firefox extension connects to. Tabs are organi
@vymalo/opencode-browser has 418 recorded weekly downloads on npm, an increase of 245% over the past 30 days, ranking #2306 of 3,247 tracked listings.
About @vymalo/opencode-browser
@vymalo/opencode-browser
Give an OpenCode agent hands in a real browser — open tabs, click, type, scroll, screenshot — organized into named tab groups.
Requires OpenCode v2. This release targets the v2 plugin API and does not run on v1. Migrating from
0.17.x? See Migrating from v1.
This is the OpenCode plugin half of a dual plugin. It registers browser_* tools the model
can call and hosts a localhost WebSocket bridge. A companion browser extension
(Chromium MV3 + Firefox) connects to the bridge and drives real tabs.
Browser extensions can't host servers, so the plugin is the server and the extension dials out to it. The bridge is served with the
wspackage, which runs under both runtimes OpenCode uses — Bun (CLI /opencode web) and Node (the desktop app) — so it works in either.
flowchart LR
Model[OpenCode model] -->|browser_* tools| Plugin["@vymalo/opencode-browser<br/>(bridge host)"]
Plugin <-->|ws://127.0.0.1:4517<br/>token handshake| Ext[Browser extension]
Ext -->|CDP / content script| Tabs[(Real browser tabs<br/>in named groups)]
Table of contents
- How it works
- Install
- Quickstart
- Options
- The 34 tools
- Targeting elements
- Screenshots
- Named groups
- Scoping tools and token cost
- Multiple browsers & agents
- Executors: CDP vs content-script
- Stopping / releasing control
- Security
- Troubleshooting
How it works
- OpenCode loads the plugin; it binds a WebSocket bridge on
127.0.0.1:<port>and prints a sharedtoken(or uses the one you set). - You load the extension once, paste the bridge URL + token into its dashboard, and connect.
- The model calls a
browser_*tool → the plugin sends a command frame over the bridge → the extension executes it against a real tab → the result comes back to the model.
The extension and plugin agree on a small, dependency-free wire protocol; the same protocol is mirrored into the extension so the two never drift.
Install
// opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugins": [{ "package": "@vymalo/opencode-browser", "options": { "port": 4517 } }]
}
On first run with no token, the plugin generates one and logs it once
(browser_bridge_token_generated). Paste that into the extension's dashboard along with the
bridge URL (ws://127.0.0.1:4517).
The generated token is persisted (with the port) to a per-user bridge.json so it survives
restarts — ~/Library/Application Support/opencode-browser/bridge.json (macOS),
~/.local/state/opencode-browser/bridge.json (Linux), %APPDATA%\opencode-browser\bridge.json
(Windows). Read it from there any time instead of digging through the log; see
docs/browser.md → The bridge state file.
Get the extension from the Releases page
(opencode-browser-extension-<version>-chrome.zip / -firefox.zip), from the Chrome Web Store /
Firefox Add-ons, or build it from
apps/browser-extension.
Quickstart
A typical first session, end to end:
You: Open example.com in a group called "research" and tell me the page heading.
Model: browser_open({ group: "research", url: "https://example.com" })
browser_snapshot({ group: "research" }) → refs e1, e2, …
browser_get_text({ group: "research" })
→ "Example Domain — This domain is for use in illustrative examples…"
You: Screenshot it.
Model: browser_screenshot({ group: "research", fullPage: true })
→ "Saved screenshot to .opencode/browser/research/2026-…png (1280×3200)."
(the model then reads that file to see it)
A titled tab group named "research" appears in the browser; the extension dashboard logs every action and keeps a screenshot gallery.
Options
The plugin entry's options in opencode.json:
| Option | Default | Meaning |
|---|---|---|
enabled | true | Master switch. |
host | "127.0.0.1" | Bind interface. Keep it loopback — see Security. |
port | 4517 | Bridge port. |
token | generated | Shared secret the extension must present. Empty string ⇒ generated + logged. |
groups | ["page","control"] | Tool groups to register (page | control | debug). |
executor | "auto" | auto | cdp | content — forwarded to the extension as a preference. |
timeoutMs | 30000 | Per-command timeout. |
screenshotDir | ".opencode/browser" | Screenshot output dir (relative → resolved against the project directory). |
logLevel | "info" | debug/trace unlock the verbose tiers. Falls back to OPENCODE_LOG_LEVEL. Records go to OpenCode's own logger, which gates them again (Effect's default minimum is Info) — set OPENCODE_LOG_LEVEL=DEBUG too. |
The 34 tools
Names are stable browser_* identifiers, partitioned into three groups gated by the
groups option. Every tool takes a group (the named tab group) unless noted.
page — observe (8, default on)…
Description from the npm listing.
- opencode
- opencode-plugin
- opencode-v2
- browser
- automation
- chromium
- firefox
- extension
- cdp
- ai-sdk
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm AI SDKs plugins
All 20 @vymalo/opencode-browser alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@vymalo/opencode-browser. First seen Dec 2, 2026; last successful collection Dec 2, 2026. See the methodology.