Edge Kit Browser
Human-style browsing for AI agents — a zero-dependency Cordis plugin for DeepSeek Harness that drives Microsoft Edge, Google Chrome, or Mozilla Firefox directly, with no extra services and no API keys.
The kit talks to the browser the way a person does: it sees the page (visible text + numbered actionable elements, shadow-DOM aware), acts (click, type, press, scroll — real input events), verifies (screenshots, wait-for-content), and organizes work across tabs. It also powers the harness's native web_search / web_fetch seam, so agents get clean, JavaScript-rendered content from signed-in or bot-walled pages.
What it does
- Human-style browsing —
see,click,clickAt,drag,type,press(real key codes + repeats),scroll,waitFor,goto, tabs, screenshots, raweval. - Video understanding — the
videoaction enumerates players, reports full playback state (playing,currentTime,duration,readyState, geometry, source), controls them (play/pause/seek/rate), and captures PNG frames straight off the player region. - Gameplay — correct key codes (Space is actually Space), coordinate clicks, and drags, plus before/after screenshots: agents can literally play a browser game and see what happened.
- Native web seam — registers
edge-kitas aweb_search/web_fetchprovider: rendered-page extraction with dual-engine fallback (Google/Bing), no bot walls, no API keys. - Live-attach first — if a debuggable browser is already listening, the kit attaches to it (borrowed browsers are never closed). Otherwise it launches: your signed-in profile (default) or an isolated kit profile.
Install
Run the deploy self-check first — it finds your browsers, checks Node, ports, profile dirs and direct egress, then prints the exact integration steps (Windows, Linux and macOS):
node setup.mjs # exit code 0 = ready to integrate
Copy this package into your harness profile (or pnpm install it as a workspace link), then add to your composition:
- insert:
- id: edge-kit-easy
name: "@local/edge-kit-easy"
config: {}
Optionally route the built-in web tools through the kit (pin the seam):
- id: web
config:
fetchProvider: edge-kit
searchProvider: edge-kit
Settings live on the plugin's native page (Plugins → Edge Kit Browser); every field is volatile, so changes apply live without restarting the browser session.
How it drives each browser
| Engine | Protocol | Launch flags | Port (default) |
|---|---|---|---|
| Edge / Chrome | CDP over WebSocket (/json/version) |
--remote-debugging-port, --user-data-dir, anti-occlusion |
9444 (Edge) |
| Firefox | WebDriver BiDi (/session) — the kit contains a CDP→BiDi adapter |
-remote-debugging-port, -profile, -no-remote |
— |
Firefox (158+) exposes WebDriver BiDi on its debug port rather than CDP; the adapter translates every call transparently, including session.status/session.new handshaking, script.evaluate with expression, browsingContext.captureScreenshot ({type:'box'} clips), and load-event mapping.
Per-browser profiles: the user's real profile by default (realProfile), or isolated kit profiles under ~/.dsh/browser-profiles/edge-kit[-chrome|-firefox]. If your everyday browser owns the profile, pass relaunch: true to restart it debuggable (logins survive) or set profileDir.
Browser discovery is cross-platform — Windows, Linux (apt and snap paths, including chromium) and macOS, for all three browsers; pass executablePath for anything exotic.
Actions
launch · attach · status · tabs · newTab · switchTab · closeTab · goto · back · forward · reload · see · click · clickAt · drag · video · type · press · scroll · waitFor · eval · screenshot · wait · proxy · close
Proxy support
proxy {op:auto|set|status|clear, proxyChain:"ip:port[,ip:port,...]", chainTo?}:
- auto — probes every candidate by fetching an IP echo through it (ladder: checkip.amazonaws.com → ifconfig.me → ipinfo.io, so a single rate-limited echo service can't fake a failure), picks the fastest working proxy, restarts the browser onto it, and reports the verified exit IP/country.
- set — installs a list verbatim. One hop is handed to the browser directly (
--proxy-server); two or more are chained through an in-kit local CONNECT forwarder (browser → 127.0.0.1 → hop1 → hop2 → … → origin), verified end-to-end before the switch — a rejected chain falls back to the fastest single hop (or errors, inset). - status — live re-probe of the current route; clear — direct traffic again.
chainToadds one chained hop behind the auto-pick. Switching routes force-closes any survivor browser process (Edge startup-boost / profile handoff) before relaunch, so the new proxy state can never be silently lost — logins survive, windows reopen. - The
proxyChainsetting preloads a chain into every launch; the native web seam (web_fetch/web_search) rides the same route. - Fully built in — no system/v2ray proxy anywhere in the path: probes use raw sockets, and launched browsers get explicit proxy state (
--proxy-serverwhen routing;--no-proxy-server/network.proxy.type:0when direct, withHTTP(S)_PROXY/ALL_PROXYstripped from the launch environment). A local v2ray can never silently capture the browser. - A candidate whose echo comes back with your own egress IP is rejected as transparent — a route that doesn't change your exit is a no-op, not a proxy.
setup.mjsalso disables Edge's startup boost (registry policy) so background Edge processes can't re-grab the debug port with stale, proxy-less flags.
A proxy counts as working only when an echo comes back through it — no blind trust in proxy-list sites.
Troubleshooting
Maximum number of active sessions(Firefox) — a zombie Firefox is holding the BiDi session slot; terminatefirefox.exeand relaunch.- DevTools port never opens — your normal browser owns that profile: pass
relaunch: trueor a separateprofileDir. - Screenshots black on headless/console sessions — the kit launches with anti-occlusion flags and
fromSurface:falseto avoid this; on Firefox use the default screenshot path.