Crawl4AI
$ crwl Official Med RiskCrawl4AI (crwl) is an async Playwright-powered web crawler built specifically for AI agents and RAG pipelines. Its crwl CLI renders dynamic JavaScript pages, extracts schema-driven or LLM-driven structured data, and outputs clean Markdown (-o markdown) or JSON (-o json).
pip install crawl4ai Use crwl <url> -o markdown for one-shot JS-rendered page ingestion; pair with Crawl4AI's Docker/MCP server for persistent browser pools.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built -o markdown and -o json outputs, inline -b/-c overrides, and CSS/LLM schema extraction.
- Supports
-o markdown,-o json,-s <schema.json>, and--bypass-cache
Read-only crawling by default with local SQLite cache; -j LLM extraction is opt-in so external API billing only happens explicitly.
- Opt-in
-jLLM mode; single-URL default scope
Requires Python 3.10+, Playwright, and a post-install crawl4ai-setup browser download (~400 MB).
- Requires
pip install crawl4aipluscrawl4ai-setup
Handles SPA JS rendering, Markdown pruning, CSS schema extraction, and lazy-load scrolling in one command.
- Playwright rendering + fit-markdown + CSS/LLM extraction
Rapidly growing official project (unclecode/crawl4ai) under Apache-2.0 with active community.
- Active
unclecode/crawl4airepository under Apache-2.0
Dedicated docs.crawl4ai.com/core/cli/ guide documenting crwl flags and YAML configs.
- CLI documentation at
docs.crawl4ai.com/core/cli/
Security, Auth & Guardrails
Stores optional LLM provider keys in ~/.crawl4ai/global.yml or environment variables when -j LLM extraction is used.
Apache-2.0 open-source CLI is free; optional -j LLM extraction incurs external LLM API token charges.
# Crawl4AI (crwl) Agent Rules - Use `-o markdown` or `-o json` for deterministic output. - Avoid `-j` (LLM extraction) unless an LLM API key and token budget are explicitly configured. - Run `crawl4ai-setup` once after install so Playwright browser binaries are present.
Agent-Ready Command Recipes
Safe Read-Only Queries
crwl https://example.com -o markdown
Launches headless Playwright, waits for page load, and emits clean Markdown to stdout.
crwl https://example.com -o json --bypass-cache
Forces a fresh headless crawl (--bypass-cache) and outputs structured JSON (-o json).
Strengths for Agents
- + Built specifically for agent/RAG consumption with
-o markdownand-o json. - + Renders modern JavaScript SPAs headlessly via Playwright.
Caveats & Pitfalls
- ! Heavy setup footprint requiring Playwright browser binaries (
crawl4ai-setup) and SQLite cache under~/.crawl4ai. - ! First run per machine is slow if browsers or caches are not pre-warmed.