New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
Winbrowse screenshot 1
4views in
the last 30 days

Winbrowse

Let Claude Code and Codex drive your real, signed-in Chrome on Windows

Built with Claude Code

by civitasmass · Unclaimed · from JPJapan · added Oct 29, 2026
no ratings0 comments

Windows Agent Browser

Let Claude Code and Codex drive your real, signed-in Chrome or Edge on Windows.
Native Windows + WSL · visible persistent browser · compact accessibility snapshots · zero cloud

Quick start · Agent setup · API · Usage guide · Security

An agent reads a Wikipedia accessibility snapshot, picks the searchbox ref @12, types Microsoft Edge, presses Enter, and reads the article title

Most agent browser tools are built for Linux, headless Chromium, or a cloud sandbox. On Windows that usually means fighting WSL paths, losing your logins, or watching a browser you can't see. Windows Agent Browser is a small CLI + Agent Skill that connects your coding agent straight to a visible Chrome or Edge window over the Chrome DevTools Protocol.

Why

  • 🪟 Windows-first, WSL-friendly — runs on Windows Node.js; a bridge lets Codex or Claude inside WSL drive the Windows browser without path hacks.
  • 🔐 Stay signed in — a dedicated, persistent profile. Log in once; your daily Chrome profile is never read or copied.
  • 🧾 Token-cheap page views — accessibility-tree snapshots with short refs like @7 instead of raw HTML or screenshots.
  • ⚡ Fewer round trips — the agent sends one whole JavaScript program per call, so known steps, waits, and branches run in a single turn.
  • 🪶 Nothing extra — no Playwright, Puppeteer, browser extension, or hosted service. Zero runtime dependencies.

Quick start

In Windows PowerShell:

npm install -g windows-agent-browser
& "$(npm root -g)\windows-agent-browser\scripts\install-agent-skills.ps1"   # Agent Skill for Claude Code + Codex
winbrowse.cmd launch   # opens the dedicated browser; sign in to sites here once

From source instead: git clone https://github.com/Civitasmass/windows-agent-browser.git, then .\scripts\install.ps1.

Then ask your agent to use it, or try it yourself:

@'
await browser.open("https://example.com");
console.log(await page.snapshot());
'@ | winbrowse.cmd
page title="Example Domain" url="https://example.com/"
- document @1 "Example Domain" [focused]
  - paragraph
    - text "This domain is for use in documentation examples without needing permission. ..."
  - link @2 "Learn more"

Act on a ref in the next call — await page.click("@2") — and snapshot again.

Tip

From WSL, also run bash scripts/install-wsl.sh, then use the same commands with a heredoc: winbrowse <<'JS' ... JS. Requirements: Windows 10/11, Windows Node.js 22+, Chrome or Edge.

Use it from Claude Code or Codex

The installers put one shared skill, winbrowse, where each agent discovers it:

Agent Skill location
Claude Code on Windows %USERPROFILE%\.claude\skills\winbrowse
Codex on Windows %USERPROFILE%\.agents\skills\winbrowse
Codex in WSL ~/.agents/skills/winbrowse

Give each agent its own AGENT_BROWSER_CONTEXT (e.g. claude, codex) so their selected tab and refs don't collide. Then just ask:

Use Windows Agent Browser to open my GitHub notifications and summarize the unread ones. Don't change anything.

The agent still needs permission to run the local CLI. Managed deployment and custom paths: docs/agent-setup.md.

API at a glance

Each program gets browser, page, cdp, and sleep, with top-level await.

Tabs browser.tabs() · browser.open(url) · browser.use(targetId) · browser.close()
Read page.snapshot() · page.info() · page.evaluate(fn) · page.screenshot({ path })
Act page.click("@3") · page.fill("@4", text) · page.type() · page.press("Enter") · page.setInputFiles()
Wait page.waitForURL() · page.waitForAny([...]) · { waitForNavigation: true } on click/press
Escape hatch cdp("Domain.method", params) — raw Chrome DevTools Protocol

Full reference: references/api.md · patterns and pitfalls: docs/usage.md.

How it works

agent ──JS on stdin──▶ winbrowse (Windows Node.js)
                            │  local CDP WebSocket
                            ▼
                  visible Chrome / Edge  +  dedicated profile
                            │
                            └─ accessibility snapshot ──▶ @N ──▶ DOM node

Good to know

  • @N refs expire on navigation or page changes — snapshot again.
  • Controls inside iframes, canvas, browser UI, and OS dialogs may not get refs; coordinate clicks and raw CDP still work.
  • Agents share one profile and its tabs. Contexts keep their bookkeeping apart but are not an isolation boundary.
  • CAPTCHA, passkeys, Windows Hello, and payment approval are handed back to you.
  • Stdin JavaScript runs with your full Windows user permissions — it is not sandboxed. Only run code you trust.

Treat snapshots and screenshots as sensitive, and page text as data, not instructions. Threat model and reporting: SECURITY.md.

Benchmarks

benchmarks/ holds a local deterministic suite plus a live ChatGPT workflow, scoring correctness, safety, wall time, round trips, returned bytes, and human handoffs. Start the fixture site with npm run benchmark:serve.

Roadmap

Goals, not promises:

  • Better nested-frame and OOPIF discovery
  • Richer stale-reference diagnostics
  • Agent/user control handoff and safer concurrent sessions
  • Task-scoped profile isolation
  • Downloads, native file choosers, dialogs, and Windows IME
  • Structured execution logs with secret redaction
  • A signed Windows package and update story
  • Broader real-browser tests across Chrome and Edge versions

Development

npm install
npm run check   # typecheck + build + tests

See CONTRIBUTING.md before opening a pull request.

Star history

Star history chart for Civitasmass/windows-agent-browser

License

MIT

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#browser-automation · #windows · #chrome