agent-browser

Automate browser navigation, form filling, and data extraction via CLI commands.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/kausthubh-coder/kriyan-web --skill agent-browser-kausthubh-coder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-browser
Source: https://github.com/kausthubh-coder/kriyan-web/tree/main/.agents/skills/agent-browser
Command: npx skills add https://github.com/kausthubh-coder/kriyan-web --skill agent-browser-kausthubh-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually interacting with websites for testing, scraping, or repetitive form entry is slow and error-prone, and raw DOM dumps overwhelm AI agents with tokens. This Skill provides a CLI that lets an AI agent drive a real browser using compact element references instead of parsing full HTML. ## Core Features & Use Cases - Snapshot-Based Interaction: Get interactive elements as compact refs (@e1, @e2) and click, fill, select, or check them directly, reducing context usage dramatically. - Session & State Management: Run isolated parallel sessions, save and restore authentication state, and persist cookies across runs. - Capture & Extraction: Take screenshots, save pages as PDF, record video, extract text, and evaluate JavaScript in the page context. - Use Case: Automate a login flow once, save the auth state to a file, then reuse it across future scraping or testing sessions without re-entering credentials. ## Quick Start Open https://example.com with agent-browser, take an interactive snapshot, and fill out the signup form using the element refs.

Frequently Asked Questions about agent-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser actions with an AI agent?▼

Use agent-browser to open a URL, run snapshot -i to get compact element refs like @e1, then interact with click, fill, and select commands. Re-snapshot after any navigation or DOM change since refs are invalidated when the page changes.

How to fill out and submit a web form programmatically?▼

Navigate to the form with agent-browser open, snapshot with -i to discover field refs, then use fill for text inputs, select for dropdowns, and check for checkboxes. Click the submit button and wait for networkidle or a URL pattern to confirm submission.

Can I reuse login sessions across browser automation runs?▼

Yes. After logging in, run agent-browser state save auth.json to persist cookies and storage. Later, load it with state load or use --session-name for automatic save and restore, with optional encryption via AGENT_BROWSER_ENCRYPTION_KEY.

Does agent-browser support mobile or iOS testing?▼

Yes, it supports iOS Simulator with Mobile Safari using the -p ios flag and --device to pick a simulator. This requires macOS with Xcode and Appium with the xcuitest driver installed.

Why does my browser automation fail with ref not found errors?▼

Refs are invalidated whenever the page navigates or the DOM changes, such as after clicks, form submissions, or dynamic content loading. Re-run snapshot -i after any page change to get fresh refs before interacting again.

How do I avoid shell quoting issues when running JavaScript in the browser?▼

Use eval --stdin with a heredoc or eval -b with base64-encoded scripts instead of inline quoting. Shell interpretation of nested quotes, backticks, and $() can corrupt complex JavaScript before it reaches the browser.