Agentbrowse is a terminal-based web browsing tool specifically built for AI coding agents. It belongs to the category of headless browser automation utilities that expose a clean, parseable command-line interface. The product is designed for developers who use AI coding assistants such as Claude Code, Codex, Cursor, Gemini, and Windsurf. Its core value proposition is transforming the web into a command line, enabling agents to navigate, read, and interact with websites using structured commands rather than clicking through graphical user interfaces. This approach directly addresses the limitation of AI agents being excellent at running CLIs but clumsy with web UIs. By providing a persistent browser session and a suite of commands, agentbrowse empowers agents to perform complex web tasks programmatically.
The primary pain point that agentbrowse solves is the inability of AI coding agents to effectively interact with web pages. While agents can execute terminal commands and process text, they struggle with the visual and interactive nature of modern websites. This includes reading content from JavaScript-heavy pages, following links, filling out forms, handling authentication flows like SSO and MFA, and extracting structured information. Without a tool like agentbrowse, developers must manually translate web tasks into brittle scripts or rely on separate browser automation frameworks that are not optimized for agentic use. This inefficiency limits the autonomy of AI agents and forces human intervention for even simple web operations, reducing overall productivity in development workflows.
The first major feature group is reading and link extraction. The 'read' command retrieves the current page's content as token-bounded markdown, which is ideal for feeding into an LLM's context window. It accepts parameters like --max-chars and --page to control the amount of text returned. The 'links' command outputs a numbered list of followable URLs on the page, which agents can use to navigate further. Both commands accept an optional URL to open first, so 'agentbrowse read https://example.com' performs two steps in one. This structured output is also available in JSON format via the --json flag. These features are crucial because they allow agents to consume web content efficiently without parsing messy HTML, and to discover navigation paths automatically.
The second major feature group is interaction via accessibility tree and click commands. The 'snapshot' command generates an accessibility-tree view of the page, listing every actionable element with a stable reference ID, role, name, and state. This is the most robust way for an agent to understand what can be interacted with on a page. The 'click' command can target an element by its snapshot ref, by visible text, by a number from a previous links or find command, or by a CSS selector. The 'find' command locates elements by visible text or accessible name, returning numbers that can be reused. Together, these features give agents precise, reliable control over clicking buttons, links, and other interactive elements, reducing errors from fragile selectors.
admin
The third feature group covers form handling, authentication, and session management. The 'type' command allows typing text into a field specified by CSS selector or bare name attribute. 'fill' accepts key=value pairs to populate multiple fields at once, and 'submit' submits the current form. For authentication, the 'login' command opens a real browser window for a human to complete SSO, MFA, or captcha challenges; the resulting session is saved and can be reused headlessly. The 'session' command manages saved auth state with save, load, and clear operations. Sessions are isolated by an ID (default 'default'), each having its own cookies. This design solves the authentication barrier that plagues headless automation, because credentials are never passed as CLI arguments and the agent can operate logged-in without manual re-auth.
The overall workflow of agentbrowse is centered around a background browser daemon. When any command is executed, a daemon is auto-spawned using Playwright on a local socket only. This daemon maintains a persistent page session across multiple invocations; for example, 'agentbrowse open' navigates to a URL, then later 'agentbrowse read' retrieves content from the same page. The daemon self-stops after a period of inactivity, freeing resources. Sessions are isolated by ID, allowing separate contexts for different tasks. The approach is purely command-line-driven: agents run agentbrowse command by command, and each returns structured output (markdown, JSON, or error objects on stderr). Errors include specific exit codes for usage issues, navigation failures, target-not-found, and daemon problems.
Concrete use cases include a Claude Code agent tasked with researching a topic: it can run 'agentbrowse open https://wikipedia.org' then 'agentbrowse find Quantum Computing' and 'agentbrowse click 2' to navigate, followed by 'agentbrowse read --max-chars 8000' to gather context. For testing, a development team can script form submissions by invoking 'agentbrowse fill -f username=admin password=secret' and 'agentbrowse submit' from a CI pipeline. Another scenario involves scraping paginated data: after opening a search results page, the agent uses 'links' to extract page numbers and 'open' to traverse them, consolidating content. Users can also create site manifests (site.agent.json) to expose high-level commands like 'agentbrowse --site ./notion.agent.json search "roadmap"', which executes ordered steps with interpolation. These outcomes demonstrate how agentbrowse eliminates manual clicking and enables full web automation from terminal commands.
The target audience includes developers working with AI coding agents such as Claude Code, Codex, Cursor, Gemini, and Windsurf. It also appeals to DevOps engineers and QA professionals who need headless browser automation for testing and monitoring. The tech stack requires Node.js and npm for installation, plus Playwright for the browser engine (npx playwright install chromium). Pricing is free to use commercially, but with a restrictive license that permits installation and use but prohibits copying, forking, redistribution, or modification. In summary, agentbrowse solves the fundamental problem of giving AI agents a parseable web interface, turning the browser into a command line that agents can drive autonomously. It is a specialized tool that fills a critical gap in AI-assisted development workflows, making web interaction as straightforward as running a CLI command.
Developers using AI coding agents such as Claude Code, Codex, Cursor, Gemini, and Windsurf who need to automate web interactions from the terminal. Also suitable for QA engineers and DevOps professionals who require headless browser automation for testing, monitoring, and data extraction. Anyone building workflows where AI agents must read, navigate, fill forms, or authenticate on web pages will find agentbrowse essential. It targets technical users comfortable with npm, Playwright, and CLI tools who want to eliminate manual clicking and enable their agents to treat the web as a command-line resource.