crawl4ai

crawl4ai is a skill for Claude Code, Codex from smallnest/goclaw. It costs 52 tokens per session (2,533 once invoked), scanned A, original, MIT.

A web-crawling and data-extraction workflow for collecting content from websites, including pages that build their content with JavaScript.

In plain words
What is it for?
Use it to crawl one or many URLs, extract selected fields into a schema, obtain Markdown or JSON, and build automated web-data pipelines.
Why use it?
It provides command-line and Python approaches for turning website content into structured or readable output instead of extracting it manually.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to crawl one or many URLs, extract selected fields into a schema, obtain Markdown or JSON, and build automated web-data pipelines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smallnest/goclaw/crawl4ai-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add smallnest/goclaw --skill crawl4ai-skill
Clone the repo
git clone --depth 1 https://github.com/smallnest/goclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for crawl4ai

README.md
[![agentmods](https://agentmods.dev/badge/skills/smallnest/goclaw/crawl4ai-skill/github.svg)](https://agentmods.dev/skills/smallnest/goclaw/crawl4ai-skill)
Your own site
<a href="https://agentmods.dev/skills/smallnest/goclaw/crawl4ai-skill"><img src="https://agentmods.dev/badge/skills/smallnest/goclaw/crawl4ai-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for crawl4ai

Your own site · 80×15
<a href="https://agentmods.dev/skills/smallnest/goclaw/crawl4ai-skill"><img src="https://agentmods.dev/badge/skills/smallnest/goclaw/crawl4ai-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02533
Opus 5 $0.00026 $0.01267
Sonnet 5 $0.00010 $0.00507
Haiku 4.5 $0.00005 $0.00253

Measured 10d ago against content hash f626bf20c264, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

crawl4ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/basic_crawler.py, scripts/batch_crawler.py, scripts/extraction_pipeline.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/builtin_skills/crawl4ai-skill/SKILL.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Crawl4AI

Overview

Crawl4AI provides comprehensive web crawling and data extraction capabilities. This skill supports both CLI (recommended for quick tasks) and Python SDK (for programmatic control).

Choose your interface:

  • CLI (crwl) - Quick, scriptable commands: CLI Guide
  • Python SDK - Full programmatic control: SDK Guide

Quick Start

Installation

pip install crawl4ai
crawl4ai-setup

# Verify installation
crawl4ai-doctor

CLI (Recommended)

# Basic crawling - returns markdown
crwl https://example.com

# Get markdown output
crwl https://example.com -o markdown

# JSON output with cache bypass
crwl https://example.com -o json -v --bypass-cache

# See more examples
crwl --example

Python SDK

import asyncio
from crawl4ai import AsyncWebCrawler

async def main():
    async with AsyncWebCrawler() as crawler:
        result = await crawler.arun("https://example.com")
        print(result.markdown[:500])

asyncio.run(main())

For SDK configuration details: SDK Guide - Configuration (lines 61-150)


Core Concepts

Configuration Layers

Both CLI and SDK use the same underlying configuration:

Concept CLI SDK
Browser settings -B browser.yml or -b "param=value" BrowserConfig(...)
Crawl settings -C crawler.yml or -c "param=value" CrawlerRunConfig(...)
Extraction -e extract.yml -s schema.json extraction_strategy=...
Content filter -f filter.yml markdown_generator=...

Key Parameters

Browser Configuration:

  • headless: Run with/without GUI
  • viewport_width/height: Browser dimensions
  • user_agent: Custom user agent
  • proxy_config: Proxy settings

Crawler Configuration:

  • page_timeout: Max page load time (ms)
  • wait_for: CSS selector or JS condition to wait for
  • cache_mode: bypass, enabled, disabled
  • js_code: JavaScript to execute
  • css_selector: Focus on specific element

Read the full file on GitHub · 414 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 414 lines · 52 tokens per session scan A f626bf20c264

Subscribe to this mod's changes

crawl4ai is a skill published in the GitHub repository smallnest/goclaw (602 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 2,533 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories