技能潮 SkillTide 提交收录
官方说明2 个来源开源项目7 天前
G10hdz/Opencode-chrome

G10hdz/Opencode-chrome

A Chrome extension that gives OpenCode browser control, similar to Claude or Codex in Chrome.
在 GitHub 查看 ↗直链 · 无中转页
★ 数取值
1 ★ · G10hdz/Opencode-chrome · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-10 · 最近见到 2026-10-10 · 共见到 1 次 · 被 2 个来源列出
评分构成
综合分 203 · 1 ★ · 2 个来源 · repo
安装
npx opencode-chrome
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 npx opencode-chrome。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 G10hdz/Opencode-chrome;我们收录于 2026-10-10;最近见到 2026-10-10。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

opencode-chrome

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

opencode-chrome lets opencode use your real Chrome: the
one already logged into Gmail, your dashboards, your staging site. Ask in the
terminal, watch it happen in your browser. An unofficial, community-built
bridge in the spirit of Claude in Chrome / Codex in Chrome.
> **Unofficial.** Not affiliated with or endorsed by the opencode project.
> BYOK: your model keys stay in your opencode config. This bridge collects
> nothing and talks only to localhost.
What it looks like
It works because it drives *your* browser session, so anything you can see
while logged in, the agent can see too.
How it works
A tiny local bridge (npx opencode-chrome, an MCP server plus a WebSocket on
127.0.0.1:19223) and an MV3 extension that connects to it and drives only the
tabs you attach from the toolbar, using the Chrome DevTools Protocol. An
attachment is limited to the tab's current origin. No backend, no accounts,
no analytics.
Requirements
- Node 18 or newer
- Google Chrome (or Chromium) 116 or newer
- opencode (or any MCP client that launches a local stdio server)
Install
**1. Extension:** download the repo (or the latest
release), open chrome://extensions, enable Developer
mode, "Load unpacked", select the extension/ folder. The toolbar badge
shows off until the token is configured and the bridge is running.
**2. Bridge:** add to your opencode config (opencode.json):
**3. Pair the token:** the bridge generates a token at
~/.config/opencode-chrome/token (or prints it to stderr and copies it to
your clipboard at startup; set OPENCODE_CHROME_TOKEN to use your own).
Paste it into the extension's options page (right-click the toolbar icon →
Options); it shows a live connection status and reconnects the moment you
save. Connections without this token are refused, so other local processes
can't drive your browser.
**4. Attach a tab:** restart opencode, open the page you want to share, and
click the extension icon. Its badge shows on for attached tabs. Cross-origin
navigation detaches the tab by default; for legitimate flows (SSO redirects)
list the extra origins in ~/.config/opencode-chrome/policy.json:
The bridge pushes the allowlist to the extension on connect (env override:
OPENCODE_CHROME_POLICY). Entries apply per attached origin and are not
symmetric; with no file the policy is strict exact-origin.
The same command works from another local MCP client. How many sessions run at once is set in the extension options, under Sesiones. It stays at one unless you change it.
Site adapters
Declarative per-origin recipes live in ~/.config/opencode-chrome/adapters/
(env override: OPENCODE_CHROME_ADAPTERS). list_recipes enumerates them;
run_recipe(name, params?) executes one on an attached tab. The adapter's
origin must be inside the attachment's reach — exact match or allowlisted,
same rule as SSO redirects and OOPIF frames.
Steps: navigate, wait_for (+ optional timeout), init_script, eval,
columns. init_script registers JS on new documents for the duration of the
recipe only (auth/session setup), then it is removed.
{{key}} placeholders come from params; inside eval each placeholder is
substituted as a JSON-encoded literal (write search({{q}}), no quotes) so a
param value can never break out of the script's context. The eval JS lives
only in files you install — there is no free-form eval tool. See
examples/adapters/hackernews.json.
Tools
| Tool | What it does |
|---|---|
| browser_status | bridge connection and attached tabs |
| list_tabs | attached tabs with id, title, url |
| new_tab(url?, background?) | open a tab (active unless background:true) |
| close_tab(id) / activate_tab(id) | tab management |
| navigate(url?, action?, ignore_cache?, handle_before_unload?, tabId?) | go to a URL or action back/forward/reload; waits for load; handle_before_unload auto-answers that dialog |
| snapshot(tabId?) | accessibility-style text tree with [ref] per interactive element; selector, interactive_only, in_viewport_only, max_chars, frame scope it; sensitive fields are redacted |
来源
github · https://github.com/G10hdz/Opencode-chrome
按领域浏览
开源项目
Traction
1 ★
收录于
7 天前

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引