agentbrowse is an AI Web Browsing CLI tool designed specifically for AI coding agents to drive websites from the terminal. It belongs to the category of developer tools that bridge the gap between command-line interfaces and web user interfaces. Targeted at users of coding agents such as Claude Code, Codex, Cursor, Gemini, and Windsurf, agentbrowse provides a parseable, structured surface for web interactions. Its core value is enabling agents to navigate, read, and interact with web pages as easily as they execute shell commands, eliminating the need for manual browser automation. By turning the web into a command-line resource, agentbrowse empowers agents to access online information and services autonomously within their workflow.
AI coding agents excel at running CLIs but struggle with clicking through web user interfaces. Traditional web automation often requires complex scripts, separate browser tools, or manual intervention, breaking the agent's flow. agentbrowse addresses this pain point by giving agents a clean, parseable command set for web operations. Agents can open pages, read content as token-bounded markdown, follow links, fill and submit forms, and operate behind logins—all from terminal commands. This matters because it allows agents to access real-time web data, interact with SaaS platforms, and handle authentication without human assistance. The persistent browser session that survives across invocations means agents can maintain context across multiple web interactions, making multi-step workflows feasible from a single agent session.
The read command provides current page content as token-bounded markdown, with options for maximum characters and page selection. This structured output is ideal for agents consuming text within token limits. The links command displays numbered, followable links with an optional filter, enabling agents to navigate efficiently. The find command locates elements by visible text, falling back to accessible names, and returns numbers reusable by the click command. The click command accepts a snapshot ref, visible text, a number from links or find, or a CSS selector, giving agents multiple ways to interact. These features work together to create a seamless browsing experience where agents can explore and act on web content programmatically.
agentbrowse provides form interaction via the type, fill, and submit commands. The type command inputs text into a field identified by CSS selector or bare name, while fill accepts key-value pairs for multiple fields at once. The submit command triggers the current form submission. For authentication, the login command opens a real browser window for the human to log in, handling SSO, MFA, captchas, and other challenges that agents cannot solve. Credentials are typed directly into the browser by the user, never passed as CLI arguments, ensuring security. The session is saved locally in ~/.webcli/sessions and persists for headless reuse. This combination allows agents to operate behind authenticated sessions without exposing sensitive information.
admin
Optional site manifests (site.agent.json) allow defining high-level named commands for specific sites. These manifests declare pages, selectors, and commands as ordered steps with interpolation of variables. The skill installation feature (agentbrowse skill) auto-detects coding agents in the project and writes native configuration files—a SKILL.md for Claude Code, a .cursor/rules rule for Cursor, an AGENTS.md block for Codex and others. Installation is idempotent and can be previewed with --print. Session management commands (session save/load/clear) let agents save and restore authentication states. The --session option with custom IDs isolates sessions with independent cookies, enabling multiple contexts like personal and work accounts.
agentbrowse operates a background browser daemon per session, automatically spawned and bound to a local socket. This daemon holds a live Playwright page, maintaining state across separate commands—open, click, read, and others all hit the same page. Sessions are isolated by an ID (default default), each with its own cookies and saved authentication. The daemon self-stops after inactivity to free resources. All commands output structured JSON with --json flag for machine parsing. Errors go to stderr with specific exit codes (2 for usage, 3 for navigation, 4 for target-not-found, 5 for daemon issues). This architecture ensures agents can issue discrete commands while the browser context persists seamlessly.
Typical use cases include a coding agent researching documentation: it opens a page, reads content as markdown, follows links to subsections, and copies relevant code snippets. For form automation, an agent can fill a search form and click submit, retrieving results as structured JSON. Authentication workflows become trivial: the user logs in once via login, and the agent reuses the session for subsequent headless operations, such as monitoring a dashboard or extracting project data. Multi-step workflows like navigating a shopping cart, applying filters, and checking out are feasible since the persistent session maintains state. The outcome is that agents can autonomously perform web tasks that previously required manual scripting or human intervention.
agentbrowse is built for developers and AI practitioners using coding agents like Claude Code, Codex, Cursor, Gemini, and Windsurf. It runs on any system with Node.js and Playwright, with a one-time npx playwright install chromium for browser support. The tool is free to use commercially but not copyable—forking and redistribution are prohibited. The tech stack includes Node.js, Playwright, and a CLI interface. By integrating agentbrowse into their workflow, users can extend their AI agents' capabilities to interact with any website from the terminal. The summary takeaway: agentbrowse transforms web browsing into a command-line experience, making AI coding agents truly self-sufficient for online tasks.
Developers and AI practitioners using coding agents such as Claude Code, Codex, Cursor, Gemini, and Windsurf. Specifically, software engineers who build automated workflows that require web data extraction, form submission, authentication handling, and multi-step browsing from the terminal. Also beneficial for QA automation engineers and web scrapers who want to integrate web interactions into agent-driven pipelines. The tool is designed for anyone who wants to extend their AI coding agent's capabilities to interact with any website without manual browser manipulation.