scrapfly-cli for Openclaw

A comprehensive command-line interface and MCP server to orchestrate Scrapfly scraping, automated rendering, screenshots, and remote CDP browser sessions.

scrapfly
v1.0.0
Jul 9, 2026
0
488
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install scrapfly-cli

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 scrapfly-cli 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 scrapfly-cli?

The scrapfly-cli provides unified command-line control over Scrapfly's web scraping, screenshot generation, AI extraction, recursive crawling, and cloud-hosted browser execution capabilities. Built in Go, it outputs structured JSON on stdout, serving as an optimal utility for automated workflows and terminal integrations.

When incorporated as part of your Openclaw Skills, this CLI allows AI agents and local developers to route requests through proxy pools, bypass anti-bot mechanisms, retrieve fully rendered web contents, and manage long-running browser environments programmatically.

scrapfly-cli Use Cases

  • Scraping complex JavaScript-rendered web pages while bypassing advanced anti-bot protections dynamically.
  • Extracting clean structured data (markdown, text, or clean HTML) from target URLs using prompt-driven AI extraction models.
  • Executing automated browser interactions like clicking, filling forms, and navigating across persistent multi-call daemon sessions.
  • Capturing high-resolution visual screenshots of web layouts or specific DOM elements via standard CLI commands.
  • Crawling websites recursively, collecting and parsing HAR or WARC archives for offline indexing and analysis.

How scrapfly-cli Works

  1. The user configures authentication via the command-line interface, local settings file, or environment variables.
  2. The CLI translates command flags (such as proxies, waiting selectors, and render options) into Scrapfly API payloads.
  3. Scrapfly's cloud browser infrastructure handles complex actions, solves captchas, and returns the requested data payload.
  4. The scrapfly-cli processes the response and emits a standardized JSON envelope containing structural metadata and the data payload.

scrapfly-cli Setup

Prerequisites

Install the latest binary from source using Go:

go install github.com/scrapfly/scrapfly-cli/cmd/scrapfly@latest

Alternatively, download a pre-built binary for your platform from the project releases page.

Authentication

Set your Scrapfly API key as an environment variable:

export SCRAPFLY_API_KEY=scp-live-...

Or persist it locally through the configuration tool:

scrapfly config set-key scp-live-...

MCP Server Integration

To expose scrapfly-cli as a toolset within your Openclaw Skills configuration, register the MCP server in your client environment configuration (e.g., Claude Desktop, Cursor, or Claude Code):

{
  "mcpServers": {
    "scrapfly": {
      "command": "scrapfly",
      "args": ["mcp", "serve"],
      "env": {
        "SCRAPFLY_API_KEY": "scp-live-..."
      }
    }
  }
}

scrapfly-cli Data Schema & Taxonomy

Every command execution outputs a consistent JSON structured response schema, facilitating easy parsing in terminal-based pipelines.

Standard Output Envelope

Field Type Description
success boolean Confirms if the operation succeeded or failed
product string Identifies the service product (e.g., scrape, screenshot, extraction, crawl)
data object Contains the actual result payload when success is true
error object Contains the detailed error model with code, message, and http_status on failure

scrapfly-cli Advanced Features

  • Persistent Browser Sessions: Keep a CDP session open using a background daemon, preserving tabs, cookies, and AXTree references for sequential execution.
  • Autonomous LLM Agents: Run localized loops with the scrapfly agent command, letting integrated AI models choose actions dynamically to satisfy a text-based task instruction.
  • Bring-Your-Own-Proxy (BYOP): Run an exit-peer connector that establishes an mTLS tunnel to route Scrapfly browser traffic through your custom network egress.
  • Crawl Parsing Utility: Direct inspection of crawling artifacts (WARC and HAR files) using local CLI parser commands without external analysis software.
  • Alerting & Schedulers: Configure metrics rules for operational alerts and schedule recurring scraping tasks to land via configured webhooks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*