Who it is forA developer who wants an agent to read a value from a desktop app window they already have open.
The problemDesktop app windows cannot be read by a browser agent unless the app exposes a DevTools port.
The outcomeThe run attaches to the named window, performs the task inside it and leaves the window open afterwards.
What you need first
- uv, which fetches Python 3.13 or newer
- OPENROUTER_API_KEY, or AI_GATEWAY_API_KEY for the Vercel AI Gateway
- BROWSER_USE_API_KEY for the default cloud browser, or the --local flag for local Chrome
Steps
- Quit the app, then restart it with
--remote-debugging-port, for exampleopen -a "Visual Studio Code" --args --remote-debugging-port=9222 ~/code/my-project - Run
uv run fastbrowse "Open the Extensions view and report how many extensions are installed." --cdp-port 9222 --target-match my-project(inferred, check the README) - Check the answer in stdout, then confirm the window is still open
Prompt for your agent
Use the fastbrowse repo to read <value> from the open window titled <window title> in an Electron app listening on port <port>. Run `uv run fastbrowse "<task>" --cdp-port <port> --target-match <window title>` and return the answer. Verify that the window stays open after the run.
Caveat. An app that is already running ignores the DevTools flag, so it must be quit and restarted before the run can attach.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for agent-labs-dev/fastbrowse and "Read values from an open Electron app window"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer