Source profileQuality 84/100Review permissions

HKUDS/CLI-Anything/skills/cli-anything-browser/SKILL.md

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome's Accessibility Tree to a virtual filesystem for agent-native navigation.

Source repository stars
46,599
Declared platforms
0
Static risk flags
2
Last source update
2026-08-03
Source checked
2026-08-04

Decision brief

What it does—and where it fits

A command-line interface for browser automation using DOMShell's MCP server. Navigate web pages using filesystem commands: ls, cd, cat, grep, click.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/HKUDS/CLI-Anything --skill "skills/cli-anything-browser"
    Safe inspection promptEditorial

    Inspect the Agent Skill "cli-anything-browser" from https://github.com/HKUDS/CLI-Anything/blob/39634a640cf20bc603b4faae4d31069c44821a9a/skills/cli-anything-browser/SKILL.md at commit 39634a640cf20bc603b4faae4d31069c44821a9a. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Usage Examples

      Review the “Usage Examples” section in the pinned source before continuing.

      Review and apply the “Usage Examples” source section.
    2. 02

      Installation

      1. Node.js and npx (for DOMShell MCP server):

      Node.js and npx (for DOMShell MCP server):Chrome/Chromium with DOMShell extension:Install extension in Chrome
    3. 03

      Prerequisites

      1. Node.js and npx (for DOMShell MCP server):

      Node.js and npx (for DOMShell MCP server):Chrome/Chromium with DOMShell extension:Install extension in Chrome
    4. 04

      Install CLI

      Review the “Install CLI” section in the pinned source before continuing.

      Review and apply the “Install CLI” source section.
    5. 05

      Command Groups

      page open — Navigate to URL

      page open — Navigate to URLpage reload — Reload current pagepage back — Navigate back in history

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 12

    The documentation includes network, browsing, or remote request actions.

    # Install Node.js from https://nodejs.org/

    Runs scripts

    medium · line 13

    The documentation asks the agent to run terminal commands or scripts.

    npx --version

    Network access

    medium · line 64

    The documentation includes network, browsing, or remote request actions.

    cli-anything-browser page open https://example.com

    Runs scripts

    medium · line 71

    The documentation asks the agent to run terminal commands or scripts.

    # Go back to root

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score84/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars46,599SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    HKUDS/CLI-Anything
    Skill path
    skills/cli-anything-browser/SKILL.md
    Commit
    39634a640cf20bc603b4faae4d31069c44821a9a
    License
    Apache-2.0
    Collected
    2026-08-04
    Default branch
    main
    View the original SKILL.md

    cli-anything-browser

    A command-line interface for browser automation using DOMShell's MCP server. Navigate web pages using filesystem commands: ls, cd, cat, grep, click.

    Installation

    Prerequisites

    1. Node.js and npx (for DOMShell MCP server):

      # Install Node.js from https://nodejs.org/
      npx --version
      
    2. Chrome/Chromium with DOMShell extension:

      • Install extension in Chrome
      • Ensure Chrome is running before using CLI
    3. Python 3.10+

    Install CLI

    cd browser/agent-harness
    pip install -e .
    

    Command Groups

    page — Page Navigation

    • page open <url> — Navigate to URL
    • page reload — Reload current page
    • page back — Navigate back in history
    • page forward — Navigate forward in history
    • page info — Show current page info

    fs — Filesystem Commands (Accessibility Tree)

    • fs ls [path] — List elements at path
    • fs cd <path> — Change directory
    • fs cat [path] — Read element content
    • fs grep <pattern> [path] — Search for text pattern
    • fs pwd — Print working directory

    act — Action Commands

    • act click <path> — Click an element
    • act type <path> <text> — Type text into input

    session — Session Management

    • session status — Show session state
    • session daemon-start — Start persistent daemon mode
    • session daemon-stop — Stop daemon mode

    Usage Examples

    Basic Navigation

    # Open a page
    cli-anything-browser page open https://example.com
    
    # Explore structure
    cli-anything-browser fs ls /
    cli-anything-browser fs cd /main
    cli-anything-browser fs ls
    
    # Go back to root
    cli-anything-browser fs cd /
    

    Search and Click

    cli-anything-browser fs grep "Login"
    cli-anything-browser act click /main/button[0]
    

    Form Fill

    cli-anything-browser act type /main/input[0] "[email protected]"
    cli-anything-browser act click /main/button[0]
    

    JSON Output

    cli-anything-browser --json fs ls /
    

    Daemon Mode (Faster Interactive Use)

    # Start persistent connection
    cli-anything-browser session daemon-start
    
    # Run commands (uses persistent connection)
    cli-anything-browser fs ls /
    cli-anything-browser fs cd /main
    
    # Stop daemon when done
    cli-anything-browser session daemon-stop
    

    Interactive REPL

    cli-anything-browser
    

    Path Syntax

    DOMShell uses a filesystem-like path for the Accessibility Tree:

    /                           — Root (document)
    /main                       — Main landmark
    /main/div[0]                — First div in main
    /main/div[0]/button[2]      — Third button in first div
    
    • Array indices are 0-based: button[0] is the first button
    • Use .. to go up one level
    • Use / for root

    Agent-Specific Guidance

    JSON Output for Parsing

    All commands support --json flag for machine-readable output:

    cli-anything-browser --json fs ls /
    

    Returns:

    {
      "path": "/",
      "entries": [
        {"name": "main", "role": "landmark", "path": "/main"}
      ]
    }
    

    Error Handling

    The CLI provides clear error messages for common issues:

    • npx not found: Install Node.js from https://nodejs.org/
    • DOMShell not found: Run npx @apireno/domshell --version
    • MCP call failed: Install DOMShell Chrome extension

    Check is_available() return value before running commands.

    Daemon Mode for Efficiency

    For agent workflows with multiple commands, use daemon mode:

    1. Start daemon: cli-anything-browser session daemon-start
    2. Run commands: Each command reuses the MCP connection
    3. Stop daemon: cli-anything-browser session daemon-stop

    This avoids the 1-3 second cold start overhead for each command.

    Links

    Security Considerations

    IMPORTANT: When using this CLI with AI agents, be aware of the following security considerations:

    URL Restrictions

    The browser harness validates all URLs before navigation:

    • Explicit scheme required: URLs must include http:// or https:// scheme (scheme-less URLs like example.com are rejected)
    • Blocked schemes: file://, javascript://, data://, vbscript://, about://, chrome://, and browser-internal schemes
    • Allowed schemes: http:// and https:// only (configurable via CLI_ANYTHING_BROWSER_ALLOWED_SCHEMES)
    • Private network blocking: Optional via CLI_ANYTHING_BROWSER_BLOCK_PRIVATE=true (disabled by default)

    DOM Content Risks

    The Accessibility Tree includes all visible and hidden elements on a page. Malicious websites could:

    • Craft ARIA labels with manipulative text (e.g., "Ignore previous instructions")
    • Use aria-hidden elements to inject content not visible to users
    • Create confusing DOM structures that mislead navigation

    Mitigation: When interacting with untrusted websites, consider:

    1. Using the --json flag for structured output that's easier to parse safely
    2. Sanitizing or filtering DOM content before including it in prompts
    3. Limiting navigation to trusted domains

    Private Network Access

    By default, the browser can access localhost and private networks (192.168.x.x, 10.x.x.x, etc.). To block:

    export CLI_ANYTHING_BROWSER_BLOCK_PRIVATE=true
    cli-anything-browser page open http://localhost:8080  # Will be blocked
    

    Session Isolation

    Multiple browser sessions share the same Chrome instance. Cookies and authentication state may persist across sessions. For sensitive operations, consider:

    1. Using Chrome's guest mode or incognito
    2. Clearing cookies between sessions
    3. Using separate Chrome profiles for different security contexts

    Alternatives

    Compare before choosing

    Computed 9929,558

    HKUDS/Vibe-Trading

    strategy-generate

    Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

    Computed 9823,781

    alirezarezvani/claude-skills

    quality-manager-qms-iso13485

    ISO 13485 Quality Management System implementation and maintenance for medical device organizations. Provides QMS design, documentation control, internal auditing, CAPA management, and certification support. Use when working with medical device quality systems, preparing for ISO 13485 audits, managing regulatory compliance documentation, setting up corrective actions, or building audit preparation programs. Useful for quality management, audit preparation, regulatory compliance, medical device d

    Computed 9828

    MoizIbnYousaf/marketing-cli

    higgsfield-generate

    Use when the user wants to generate an image or video via Higgsfield AI. Covers 30+ models: Soul V2, Seedance 2.0, Kling 3.0, Veo 3.1, GPT Image 2, Nano Banana 2. Also covers Marketing Studio — branded ad video/image with avatars and products. Use whenever: "generate an image", "make a video", "animate this photo", "image-to-video", "img2vid", "edit this image with AI", "produce a clip", "create an ad", "make a UGC video", "marketing video", "brand video", "TV spot", "import product from URL", "

    Computed 973,251

    davepoon/buildwithclaude

    figma-automation

    Automate Figma tasks via Rube MCP (Composio): files, components, design tokens, comments, exports. Always search tools first for current schemas.