Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 68k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-browser

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cli-anything-browser in Claude Code

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 →

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.

cli-anything-browser Install

Add to stack

Loading.