Skip to content
    ↑↓ select↵ openesc close
    English中文
    ckanthony

    Crawl4ai

    v1.0.0Tools & Commands
    @ckanthony/opencode-crawl4ai

    Crawl4AI plugin for OpenCode - web scraping, crawling, LLM extraction, and structured data via the Crawl4AI CLI

    GitHub stars

    1

    Monthly installs

    19

    3 in 7 days

    Composite scoreSCORE

    26.3

    Multi-signal model

    Last commit

    2 months ago

    2026-05-31

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["@ckanthony/opencode-crawl4ai@1.0.0"]
    }

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    OpenCode plugin for Crawl4AI — gives your AI agent reliable web scraping, deep crawling, LLM-powered extraction, and structured data via the Crawl4AI CLI.

    Installation

    1. Install the OpenCode plugin

    npm install -g @ckanthony/opencode-crawl4ai
    

    Or add it to your opencode.json:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugins": ["@ckanthony/opencode-crawl4ai"]
    }
    

    Then install the Crawl4AI CLI globally:

    pip install -U crawl4ai
    # or
    pipx install crawl4ai
    

    After installation, run the browser setup once:

    crwl --setup
    

    What it does

    This plugin registers the Crawl4AI CLI skill with OpenCode. Once installed, the agent can:

    • Scrape any webpage to clean markdown, HTML, or structured data
    • Deep crawl entire websites recursively (BFS or DFS)
    • LLM Q&A — ask questions about page content using AI
    • Structured extraction — extract data matching a JSON schema via LLM
    • Content filtering — filter pages by relevance, regex, or cosine similarity
    • Parallel crawling — run multiple scrapes in parallel for speed

    All output is written to a .crawl4ai/ directory to avoid flooding context.

    Docker Server Mode (Optional)

    If you prefer to run Crawl4AI as a server instead of using the CLI, you can start it via Docker:

    docker pull unclecode/crawl4ai:latest
    docker run -d -p 11235:11235 --shm-size=1g unclecode/crawl4ai:latest
    

    Then configure the agent to use http://localhost:11235 as the base URL. The skill covers both CLI and REST API usage.

    Links

    License

    MIT