cli-anything-browser
Skill by HKUDS
cli-anything-browser is a command-line interface for browser automation. It uses DOMShell's MCP server to let agents navigate web pages with filesystem-style commands such as ls, cd, cat, grep and click.
Install cli-anything-browser
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.claude/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-browser ~/.claude/skills/cli-anything-browserRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-browser ~/.gemini/antigravity-cli/skills/cli-anything-browserAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cli-anything-browser in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cli-anything-browser is a command-line tool for browser automation. It wraps the MCP server from the DOMShell project. DOMShell maps Chrome's Accessibility Tree to a virtual filesystem, so commands like ls, cd, cat and grep can move through a page's elements. The CLI also supports page navigation, clicking, typing text and session management.
The tool needs Node.js with npx, Python 3.10 or later, and Chrome or Chromium with the DOMShell extension installed and running. Commands can return JSON through the --json flag, and a daemon mode keeps the MCP connection open for multiple commands. The source describes it as aimed at AI agents that need agent-native navigation of web pages, and it includes security notes on URL schemes and untrusted page content.
Written from the project's SKILL.md and checked against it.
What it can do
- page openNavigates the browser to a given URL.
- fs lsLists elements at a path in the accessibility tree.
- fs cdChanges the current directory within the page tree.
- fs catReads the content of an element.
- fs grepSearches the page tree for a text pattern.
- act clickClicks an element at a given path.
- act typeTypes text into an input element.
- page back and forwardMoves backward or forward in browser history.
- session daemon-startStarts a persistent daemon that reuses the MCP connection.
- --json outputReturns machine-readable output for supported commands.
What you need
- Node.js and npx
- Chrome or Chromium with the DOMShell extension
- Python 3.10 or later
Try asking
- Open https://example.com and list the top-level sections of the page
- Search the open page for Login and click the matching button
- Type user@example.com into the first input and click the first button
Good to know
- Only http and https URLs are allowed by default.
- Private network addresses are reachable unless CLI_ANYTHING_BROWSER_BLOCK_PRIVATE is set to true.
- Multiple sessions share one Chrome instance, so cookies and login state may persist.
- Malicious pages can add misleading ARIA labels or hidden elements.
Security check
D- Tells the assistant to ignore its instructions or hide actions from youIn
skills/cli-anything-browser/SKILL.md:Ignore previous instructions
Checked automatically: skills/cli-anything-browser/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to cli-anything-browser
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
cli-anything-browser: common questions
How does the CLI read a web page?
DOMShell maps Chrome's Accessibility Tree to a virtual filesystem. Agents use commands such as ls, cd, cat and grep to move through it.
Does the tool protect against malicious page content?
The source says malicious sites could use ARIA labels or hidden elements to mislead navigation. It suggests using --json output, filtering DOM content and limiting navigation to trusted domains.
Can it control a browser other than Chrome?
The source names Chrome or Chromium with the DOMShell extension as the required browser. It does not mention other browsers.
How do I install cli-anything-browser?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cli-anything-browser free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cli-anything-browser safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.
What are alternatives to cli-anything-browser?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
