OpenCLI for Openclaw

A comprehensive command-line interface hub designed for seamless browser automation and direct website interaction via the terminal.

chensu1234
v1.0.0
Apr 3, 2026
0
753
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install opencli-hub

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install opencli-hub using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenCLI?

OpenCLI is a versatile tool integrated into the Openclaw Skills ecosystem that bridges the gap between terminal environments and web browsers. It allows developers and AI agents to interact with popular websites like Bilibili, Reddit, and Twitter using simple CLI commands, effectively turning the web into a programmable interface.

Beyond simple scraping, it provides a robust browser automation engine that can click, type, and capture screenshots in Chrome, all while managing sessions through cookie-based authentication. This allows for complex workflows that combine standard API interactions with visual automation tasks.

OpenCLI Use Cases

  • Scraping and searching content from platforms like Bilibili, GitHub, and Arxiv without manual browsing.
  • Automating repetitive browser tasks such as clicking elements, filling forms, and taking screenshots.
  • Accessing personalized data from social media accounts like Twitter and Reddit via authenticated command-line requests.
  • Managing external CLI tools like Docker and GitHub CLI within a unified hub for streamlined developer workflows.

How OpenCLI Works

  1. The user or AI agent initiates a command using the opencli syntax via the terminal.
  2. For public data, the tool fetches content directly from site APIs or through structured scraping protocols.
  3. For authenticated sites, it utilizes existing Chrome sessions and cookies to access private feeds, history, and favorites.
  4. When browser automation is requested, the tool hooks into the active browser instance to execute sequence actions like clicking elements by index.
  5. The results are returned as structured text or JSON, making it compatible with other Openclaw Skills for further processing.

OpenCLI Setup

OpenCLI is typically pre-installed in the local environment. Use the following commands to get started:

# Verify the installation
opencli --version

# List all available commands and supported sites
opencli list

# Check the connection status with the browser daemon
opencli doctor

OpenCLI Data Schema & Taxonomy

OpenCLI organizes data based on the source site and the type of interaction. It can output data in standard text or structured JSON.

Data Component Description
Site Commands Site-specific actions such as search, trending, and hot rankings
Automation State Page element indices and values used for the operate command
External Hubs Integrated command structures for tools like Docker, GH, and Obsidian
Metadata Timestamps, result counts, and command execution status

OpenCLI Advanced Features

  • Chained automation calls using logic operators to execute multiple browser steps in a single request.
  • Automatic installation and management of missing external CLI dependencies like GitHub CLI.
  • Native support for JSON output via the --json flag for automated data pipelines within the Openclaw Skills framework.
  • Real-time page inspection that provides a mapped index of interactive elements for precise agent control.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*