Logged-in browser automation with 170+ site adapters as deterministic one-shot commands (requires the OpenCLI CLI, npm i -g @jackwener/opencli, and its BrowserBridge browser extension) — action-evidence verification (no silent failures), site knowledge & health cards, watch monitoring, trace replay, provenance reports, and a write-approval gate.
Install
# from npm (prebuilt)
dsh plugin --profile web add @cold777/dsh-opencli
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/IKEASven69/dsh-opencli/releases/latest/download/dsh-opencli.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:IKEASven69/dsh-opencli
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 简体中文
A dsh plugin: a logged-in-browser data engine. Drives your everyday browser (Chrome/Edge) through the OpenCLI daemon + BrowserBridge extension, providing one-step structured commands for 170 sites, logged-in web primitives, scheduled collection, execution-authenticity verification, push notifications, and replayable run history. dsh's built-in web tools target anonymous retrieval; this plugin covers the account-side half — all data comes from sessions you are already logged into, and all write operations pass a human approval gate.
- For users: installation and panel walkthrough in Getting Started; full capability list in Feature Matrix
- For agents: SKILL.md ships with the package for in-session discovery; CLI entry point is
dsh-opencli-ctl - For contributors: source, issues, and releases on GitHub
How It Works
dsh agent ─┬─ tool calls (site / opencli_* / canvas_*) ──┐
dsh panel ─┼─ panel RPC (schedules / notify / canvas / audit) ───┤
any shell ─┴─ dsh-opencli-ctl (inbox intents) ───────────┤
▼
dsh-opencli plugin (approval gate · authenticity · snapshots · traces)
│
OpenCLI daemon + BrowserBridge extension
│
your real browser (logged-in)
Every execution path converges on one plugin service: write operations pass an approval gate (fail-closed), collected results pass authenticity verification (exit 0 does not mean valid data), and every run leaves snapshots and traces for replay.
The npm package is @cold777/dsh-opencli — the unscoped name
dsh-opencliis taken by an unrelated low-level tool. Watch out when searching: this plugin is the full product of 170+ structured site commands, scheduled watch + change alerting, and approval gates. Install commands in this README are canonical.
Choosing between browser plugins
Browser automation plugins in the dsh ecosystem follow two technical routes; pick by scenario, they do not conflict:
- CDP-attach plugins (connect to a debug port of an already-running browser): good for scripted page control — light and fast, but no site semantic layer and no unattended product layer.
- This plugin (daemon + BrowserBridge extension): rides your everyday browser's logged-in sessions; the value sits above the semantic layer as a product loop — 170+ one-step site commands, approval-gated writes, action-evidence verification, scheduled collection + change alerting + multi-channel push, snapshot diff, provenance reports and run replay. Built for "let agents and schedules continuously work through your own accounts".
The two can coexist: port-based control plugins drive pages; this plugin owns the data product and approval chain.
Quick start
# ① OpenCLI runtime (skip if already installed)
npm i -g @jackwener/opencli && opencli daemon restart
# ② BrowserBridge extension: https://github.com/jackwener/OpenCLI/releases
# Download opencli-extension-*.zip, load unpacked in your browser, log in to your usual sites
# ③ This plugin
npm i -g @cold777/dsh-opencli # npm (includes dsh-opencli-ctl CLI)
# or
dsh plugin add IKEASven69/dsh-opencli # GitHub tarball
Restart dsh, then open Settings → Browser Agent: five tabs: Overview / Commands / Automation / Security / Canvas.
Core Capabilities
Scheduled Collection → Push
Persistent cron tasks run real collection through your logged-in browser: failures retry ×3 automatically, successes land as structured snapshots (50 kept). Watch keywords or content changes (added/removed/moved) push to Feishu/DingTalk/WeCom/Telegram with a diff summary against the previous run.
Execution Authenticity
exit 0 does not mean valid data. Two-layer verification (deterministic rules + sub-second decision model) flags empty results, anti-bot walls, and login pages as "suspected silent failure" — unattended tasks retry on failure. Every snapshot traces back to the command and time that produced it.
Structured Site Commands
170 sites / 1,200+ commands in a precompiled catalog, distilled into systemPrompt so agents pick the right command on the first try — no trial and error. Each site ships a knowledge card (known pitfalls + failure-signature recovery table). Multi-site parallel collection via site_batch.
Web Primitives & Canvas Bitmaps
For pages without adapters: logged-in primitives (open/click/fill/extract/screenshot and more); the eval family goes over a direct daemon transport for millisecond round trips. Canvas bitmap surfaces (charts/games/whiteboards) get a three-tool set: discover, read (bitmap auto-archived into the canvas view), click (write-gated).
Run Replay
Every browser and scheduled execution lands as JSONL traces; the canvas view aggregates traces, evidence, and snapshots into a pannable, zoomable card flow — click a card to replay each step (command/screenshot/duration). Failed steps include output excerpts: no guessing why the last run failed.
Write Approval Gate
Posting, deleting, and other write commands pop an approval prompt by default; execution requires explicit allow, with before/after screenshots archived as evidence. Unclear permission is treated as write (fail-closed). An attack table of 22 rows (incl. 5 read-only controls) + 3 independent side-channels, each covered by a dedicated regression test, plus 200 reproducible fuzz iterations, invariant: every allow ⟹ read-only intent (see Security Invariants).
Feature Matrix
| Module | Capability |
|---|---|
| Site adapters | 170 sites / 1,200+ commands; site_batch multi-site parallel; distilled catalog injected into systemPrompt |
| Scheduled collection | Persistent cron; retry ×3; structured snapshots (50 kept) |
| Watch push | Keyword hits / content changes → Feishu/DingTalk/WeCom/Telegram/panel event stream |
| Sourced reports | Each section = command + time + snapshot path; zero model rewriting |
| Canvas replay | Traces/evidence/snapshots as a pannable, zoomable card flow with per-step replay |
| Canvas bitmap ops | discover/read/click for DOM-less bitmap surfaces; read bitmaps auto-archived into the canvas view |
| Authenticity | Deterministic rules + sub-second decision model; silent-failure flags and retries |
| Write approval | Tool-layer fail-closed gate; evidence pack (100 kept) |
| Execution traces | JSONL per execution; panel replay view |
| Smoke benchmark | Default 5-site read-only smoke; success rate / authenticity P / latency / direct-transport comparison |
| Automation modes | read-only / standard / autonomous / unrestricted |
| Site health | Upstream-issue-driven degraded-site flags; canary top-20 read-only drift checks |
| MCP Resources | Site knowledge at opencli://sites/{site}/knowledge (dsh 0.2+) |
| Login diagnostics/bridge | Per-site cookie-level status; one-click bridge for dsh's official Browser Use |
| Interception audit | Approval-gate records (7-day counts + details) |
| Rate limits | usagePolicy + 429/5xx backoff; authProfile scoped login |
| Bilingual panel | EN/zh toggle |
For Agents
- CLI agent sessions (dsh CLI or other host CLIs):
site,opencli_*,canvas_*, andso_*tools register with the plugin; SKILL.md ships in the package for discovery - Panel chat sessions: dsh's preset scoping does not register plugin tools there — agents use shell to call
dsh-opencli-ctl(ships with the npm package):schedule add/list/run/remove,notify set/test,report build/export,status; intents are executed by the plugin via the inbox, pass allowlist closed-set validation, and return JSON results - Example:
dsh-opencli-ctl schedule add --site "site juejin hot" --cron "0 9 * * *" --watch "AI"
Installation Notes
- opencli ≤1.8.8 running
npm installinside the plugin directory silently replaces the host link (#2555, fixed in 2.0) — on 1.8.x, install dependencies outside the repo - Before upgrading dsh to 0.2, check your profile
cordis.patch.ymlfor references to uninstalled bundles — 0.2 exits silently on them - Panel chat sessions not listing plugin agent tools is dsh's preset-scoping architecture — those sessions can use the
dsh-opencli-ctlcommand surface instead (see For Agents)
Without the extension (zero-config fallback)
When the BrowserBridge extension is not installed or not connected, the plugin does not fake a fallback; each command type is handled honestly:
| Command type | Behavior without the extension |
|---|---|
site pure-HTTP read commands (e.g. site juejin hot, site hackernews best) |
Run as usual, unaffected |
site read commands that need a browser session |
Not auto-degraded: reported as unavailable with two ways forward (install the extension / use pure-HTTP commands first). The anonymous CDP channel is off by default — attaching to existing tabs would carry your logged-in state, contradicting the "anonymous" promise |
site write commands and commands of unknown permission |
Never degraded: without your logged-in identity a write is not a fallback, it would be forgery |
opencli_* / chrome_* primitives |
Short-circuited before execution with what is missing, how to install it, and what happens next — no waiting for a timeout |
The doctor diagnostics and the panel onboarding wizard both state what still works while the extension is missing. Once installed, the extension reconnects automatically and every capability returns immediately — no dsh restart needed.
Configuration
Zero-config out of the box; fine-tuning:
| Setting | Via | Default |
|---|---|---|
| opencli binary path | Env DSH_OPENCLI_BIN |
opencli (global) |
| Write approval gate | Panel toggle | on |
| Automation mode | Panel four-mode selector | standard |
| Rate limits | usagePolicy (minDelay 750ms / concurrency 2 / burst 3 / cooldown 30s) |
see left |
| Scoped login | authProfiles (allowedDomains/storageStatePath) |
none |
Security Invariants
The write approval gate is fail-closed: unclear permission is treated as write. An attack table of 22 rows (17 write/escalation shapes, each prompting for approval + 5 read-only controls) + 3 independent side-channels (site_batch / benchmark / canary, each with its own read-only gate), each covered by a dedicated regression test, plus 200 reproducible fuzz iterations, invariant: every allow ⟹ read-only intent. Sample shapes:
| Attack shape | Behavior |
|---|---|
Prototype-chain names (constructor) / path forms (../etc passwd) / NUL truncation |
Approval prompt |
Trailing-space permission-query bypass ("zhihu ") |
Approval prompt |
Generic gateway opencli_run carrying write shapes |
Approval prompt (no gateway exemption) |
site_batch mixing write commands |
Whole batch rejected, zero shell calls |
| benchmark / canary side-channel write commands | Built-in read-only gates |
All tool output is truncated and noise-stripped to prevent context pollution; rate limits + automatic backoff; scoped login rejects cross-domain.
Tests & Verification
| Layer | Method |
|---|---|
| Unit/regression | vitest 450+ cases: approval invariant attack table + 200 fuzz / cron regression / direct transport / snapshot diff / export format / pre-submit gate |
| Full review suite | 22 checks on a live environment covering rendering / real execution / state reconciliation / RPC ground truth (full-review.cjs); results record the host dsh version |
| Full feature matrix | Full-chain end-to-end checks spanning session / direct transport / push / export / ctl full chain; checks branch on the environment (full-matrix.cjs) |
| UI walkthrough | 10-scene, 27-assertion pass with real browser mouse/keyboard (ui-walkthrough.cjs) |
| Real-model E2E | Session-driven site commands / write rejection / NL intent mapping loop |
Documentation
- CHANGELOG · SKILL.md (agent handbook) · AGENT_INSTALL.md (agent self-install)
- Issues & feedback: GitHub Issues
Scope
- Not a replacement for OpenCLIApp/daemon/extension — that is the engine layer; this plugin is the data cockpit inside dsh
- Not a replacement for dsh's built-in web_search/web_fetch — those cover anonymous retrieval; this plugin covers your logged-in data
- Not suitable for machines with no real browser
MIT License.
Links
More in this category
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10776
BrowserSkill bridge for controlling visible Chrome and Edge Agent Windows from DeepSeek Harness, with native browser tools, accessibility and VOM observations, screenshots, owned multi-session control, and a live Web UI overlay.
DDDMUC/dsh-free-search★ 1756
Free web search for DSH with 42 engines: 6 keyless (DuckDuckGo, Bing, SearXNG, Degoog, AnySearch), 6 key-or-keyless tiers (Exa, Tavily, Keenable, Firecrawl, Parallel, You.com), 5 HTML search pages, and keyed providers from Brave and Baidu to Zhihu, OpenAI and Claude. Failure-classified failover with cooldown and key rotation, allowlist switching, an editable fallback chain, zh/en language pools, Multi concurrent merge, 12 MCP tools and a standalone stdio server, with per-engine keys in settings.
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 1149
Chrome sidebar extension that lets DSH operate your browser directly, no vision capabilities required.
liustack/modsearch★ 1050
Web search bridge for text-only agents: ask the web or X, get structured JSON evidence (search, fetch, citations).
Fisfzy/dsh-ego-browser★ 588
Drive a real Chrome/Chromium browser from DeepSeek Harness with 35 structured tools for navigation, snapshots, clicks, forms, JavaScript/CDP, screenshots, downloads and tabs; a live sidebar mirrors the page and accepts mouse and keyboard input. It ships a managed CDP runtime, keeps login state across calls, and can import cookies from your everyday Chrome through a companion extension.
regrevia/Envoy#dsh-envoy★ 283
Distill any link into Markdown, a wiki or a knowledge base. Installs per host: DSH -> envoy-dsh; Claude Code/Codex -> envoy@envoy. Douyin/Bilibili video, image posts, WeChat, Xiaohongshu, PDFs, podcasts. Video is read on its own timeline with keyframes and ASR transcripts locatable to \[mm:ss], so the context carries what was said and shown instead of the title and the recommendation rail. On 60 turns with vs without: ends normally with the gaps named 22% -> 92%, times out 68% -> 0% (the A/B is exploratory: different time caps, no human correctness review). On 123 live links 80% came back usable (93% of the pages that answered).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.