# crawl4ai

> Open-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/unclecode/crawl4ai
- GitHub stars: 88192
- Licence: Apache-2.0
- Language: Python
- Last push: 2026-11-30
- Page: https://imutechz.in/agents/crawl4ai

## What it is
Crawl4AI is an open-source web crawler and scraper that turns websites into clean, LLM-ready Markdown for use with LLMs and AI agents. It is aimed at developers building RAG pipelines, data extraction, and agent workflows. You can run the Apache-2.0 crawler yourself with Python or Docker, or use the hosted Crawl4AI Cloud API, which runs the browsers and manages proxies for you.

## Features
- Converts pages to clean Markdown for RAG and LLM input
- Self-hosted Python library with an async crawler API
- Docker server and CLI options for self-hosting
- Hosted Cloud API with /scrape, /extract, /search, /serp and /answer endpoints
- Batch and job endpoints for many URLs at once
- Hosted MCP server for tools like Claude Code

## Best for
- Feeding web content into RAG pipelines
- Extracting structured JSON from pages
- Giving AI agents live web search and scraping
- Self-hosting a crawler in Python or Docker

## Pros
- Apache-2.0 licensed and free to self-host
- Runs locally with Python or Docker, no account required
- Cloud option handles JS-heavy pages and bot walls for you

## Cons
- Self-hosting means you run the browsers and cover infrastructure
- Cloud usage is pay-as-you-go beyond the free monthly credits

## Install
```
pip install -U crawl4ai
```

## Usage
```
result = await crawler.arun(url="https://news.ycombinator.com")
```

Tags: web-scraping, crawler, markdown, llm, rag, python, docker, ai-agents
