Firecrawl: Self-Host a Web Scraping API That Turns Websites into Markdown for AI
Firecrawl is trending on GitHub again. Here's what the AGPL web scraping API does, what you get when you self-host it, how to run it with Docker Compose, and where the limits are.
If you have played with local LLMs or AI agents for more than five minutes, you have hit the same wall: the model wants clean text, and the web gives you cookie banners, navigation menus, JavaScript-only pages and a lot of <div> soup. Somebody has to turn a URL into something a model can actually read.
Firecrawl is one of the most popular answers to that problem, and it is back on the GitHub daily trending list this week. The project ships releases at a remarkable pace (v2.11.812, .813 and .814 all landed on 22 and 23 November 2026), and the open-source part is something you can run on your own hardware. Let's look at what you actually get when you self-host it.
What is Firecrawl?
Firecrawl describes itself as "knowledge infrastructure" for AI agents. In practice it is an API that takes a URL and gives you back LLM-friendly output such as Markdown, HTML or a list of links. It can scrape a single page, crawl a whole site, map all URLs of a domain and batch-scrape many pages at once.
The project currently comes in three flavours:
- Self-hosted server – the full Firecrawl API from
apps/api, with its own workers, queue and databases, started via Docker Compose. This is what this article focuses on. - Firecrawl Local – a newer single Rust binary (
cargo install firecrawl-local) that scrapes, crawls and maps from your own machine without a database, queue or container, and can register itself as an MCP server in tools like Claude Desktop, Cursor or Codex. - Firecrawl Cloud – the hosted commercial service at firecrawl.dev, which adds things like search with its own index, browser interaction, the "Agent" and the Alexandria data catalogue.
The core is licensed under the GNU AGPL-3.0. According to the README, the SDKs and some UI components are MIT-licensed, and Firecrawl Local declares AGPL-3.0 in its Cargo.toml as well.

Key features of the self-hosted version
The official self-hosting guide and the Open Source vs Cloud page are refreshingly honest about what the default stack includes:
- Scrape, crawl, map and search routes are part of the default stack, exposed as the Firecrawl v2 API on port
3002. - Two scraping paths out of the box: a plain fetch engine and a bundled Playwright service for JavaScript-heavy pages.
- Markdown output that is ready to drop into a RAG pipeline or an LLM prompt.
- Bring your own model for LLM-backed extraction: the Compose file passes
OPENAI_API_KEY,OPENAI_BASE_URL,MODEL_NAMEandOLLAMA_BASE_URLto the API, so you can point it at OpenAI, any OpenAI-compatible endpoint or a local Ollama. - Same API as the cloud: the official Python and Node.js SDKs accept a custom API URL, so code written for Firecrawl Cloud can talk to your own instance.
- Optional extras: a proxy (
PROXY_SERVER,PROXY_USERNAME,PROXY_PASSWORD), a SearXNG endpoint (SEARXNG_ENDPOINT) and a webhook (SELF_HOSTED_WEBHOOK_URL) are all wired through the Compose file.
Why self-host it?
- Your scraping stays on your infrastructure. Requests go from your server to the target site, not through a third-party service. (Optional AI, proxy or parsing providers add their own data flows, as the docs point out.)
- No credits. The cloud service runs on a plan and credit model; self-hosted, you pay for your own hardware and any model provider you connect.
- Great fit for a local AI setup. Pair it with Ollama and your own agents, and you have a private "read this website" building block.
- AGPL source. You can inspect what it does and adapt it.
Installing Firecrawl with Docker Compose
Firecrawl doesn't ship a single tiny container – the stack is a small platform. At the time of writing the root docker-compose.yaml runs:
| Service | Purpose |
|---|---|
api |
Firecrawl API and workers (built from apps/api) |
playwright-service |
Headless browser for JavaScript pages |
redis |
Cache and rate limiting (redis:alpine) |
rabbitmq |
Message broker (rabbitmq:3-management) |
nuq-postgres |
PostgreSQL-based job queue ("NuQ") |
foundationdb |
Optional, experimental queue backend (NUQ_BACKEND=fdb) |
Only the API is published to the host, on port 3002. Note the resource limits in the Compose file: up to 4 CPUs and 8 GB RAM for the API and 2 CPUs and 4 GB for Playwright. The docs explicitly say these are not verified minimum requirements, but plan for a reasonably sized VM rather than a Raspberry Pi.
1. Clone a release
The project recommends pinning an exact release tag instead of building from main, because code and floating image tags can change independently. The public guide was verified against v2.11.162; the newest release at the time of writing is v2.11.814 (23 November 2026). Pick a tag and review its docker-compose.yaml before you start:
git clone https://github.com/firecrawl/firecrawl.git
cd firecrawl
git checkout v2.11.162 # or a newer tag you have reviewed
2. Create a minimal .env
Put a .env file in the repository root. This is the smallest working configuration from the official guide:
cat > .env <<'EOF'
USE_DB_AUTHENTICATION=false
POSTGRES_USER=postgres
POSTGRES_PASSWORD=change-me-to-a-long-random-string
POSTGRES_DB=postgres
EOF
Two things to know: keep POSTGRES_DB=postgres, because the bundled pg_cron configuration targets that database, and don't use apps/api/.env.example as your Compose config – it is meant for API development.
3. Build and start the stack
docker compose up --build -d
docker compose ps --all
The default Compose file builds the API, Playwright and PostgreSQL images from source, so the first start takes a while. Warnings about unset optional variables are expected. If you'd rather not build locally, the Compose file contains commented-out image: lines for prebuilt images on ghcr.io/firecrawl/... that you can swap in.
4. Check that it works
First a simple heartbeat:
curl http://localhost:3002/v0/health/readiness
# {"status":"ok"}
That only proves the API process answers. The real test is a scrape:
curl -X POST http://localhost:3002/v2/scrape \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com", "formats": ["markdown"], "timeout": 60000}'
If the response contains "success": true and a markdown field, the whole pipeline – API, queue, scraping engine and outbound network – is working.
5. Use it from code
With the Python SDK you just point the client at your own instance:
from firecrawl import Firecrawl
app = Firecrawl(api_url="http://localhost:3002")
print(app.scrape("https://example.com").markdown)
Configuration tips
- Never expose the default API to the internet. With
USE_DB_AUTHENTICATION=falsethere is no API key at all. Keep it on your LAN or VPN, or put it behind a reverse proxy with authentication and TLS. Since the published port comes from${PORT:-3002}, settingPORT=127.0.0.1:3002in.envshould restrict it to localhost – check the result withdocker compose config. - Add persistence before you rely on it. The Compose file defines no volumes for PostgreSQL, Redis or RabbitMQ, so their data disappears when the containers are recreated. That's fine for a scraping API used ad hoc, but add volumes and backups if you queue long crawls.
- Local LLMs: set
OLLAMA_BASE_URL(the Compose file mapshost.docker.internalto the host gateway, which helps if Ollama runs on the Docker host) orOPENAI_BASE_URLplusMODEL_NAMEfor any OpenAI-compatible server. Test the LLM-backed formats separately from plain scraping. - Queue admin UI: only enable it with a strong
BULL_AUTH_KEY. TheADMIN_INTERNAL_PORTlistener needs no key at all and must never be published. - Tune concurrency with
NUM_WORKERS_PER_QUEUE,CRAWL_CONCURRENT_REQUESTS,MAX_CONCURRENT_JOBSandBROWSER_POOL_SIZEif your host is smaller than the defaults assume. - Be a good citizen. A crawler on your homelab is still a crawler. Respect the sites you scrape, keep limits low and don't hammer small websites.
Honest limitations
- It's not feature-identical to the cloud. Per the docs, screenshots and page actions are not available in the default stack (they need the separate Fire-engine service), and Agent, Browser, Interact, dashboards and enterprise controls are Cloud-only.
- Advanced anti-bot handling isn't included. Sites with aggressive bot protection may fail where the hosted service succeeds.
- No built-in auth for the simple setup. A proper authenticated deployment needs extra database schema and configuration – one variable is not enough.
- Heavyweight for a homelab. Six services, source builds and generous resource limits. If you just want Markdown from a few pages on your desktop, Firecrawl Local is the lighter option.
- Fast-moving target. With several releases per day, pinning a tag and reading the Compose file before upgrading isn't optional.
- AGPL-3.0. Fine for personal and internal use, but if you modify it and offer it as a network service to others, the AGPL's source-sharing obligations apply.
How does it compare?
| Firecrawl self-hosted | Firecrawl Local | Firecrawl Cloud | |
|---|---|---|---|
| Runs as | Docker Compose stack | Single Rust binary | Hosted service |
| Scrape, crawl, map | Yes | Yes | Yes |
| Search | Yes (default stack) | Via Firecrawl Cloud | Yes |
| Screenshots / browser actions | Needs Fire-engine | No | Yes |
| Cloud fallback | No | On by default (FIRECRAWL_CLOUD=off disables it) |
– |
| Cost | Your hardware + model provider | Your machine | Plan and credits |
If what you really want is to keep copies of web pages rather than feed them to a model, a dedicated archiver like ArchiveBox is the better tool. And if you want to be alerted when a page changes, changedetection.io is built exactly for that. For AI-tagged bookmarks, have a look at Karakeep.
Conclusion
Firecrawl is a solid building block if you're assembling your own AI tooling at home: one API call, clean Markdown back, and no third party in between. The self-hosted version is clearly positioned as the "you run it, you own it" option – the documentation is upfront about missing cloud features, missing persistence and the unauthenticated default. Treat it as an internal service on your LAN or VPN, pin a release, wire it up to Ollama, and it does exactly what it promises. If the full stack feels like too much, try Firecrawl Local first – just remember that, by default, it hands pages it can't load locally to Firecrawl Cloud unless you set FIRECRAWL_CLOUD=off.
Sources
- GitHub repository and README: github.com/firecrawl/firecrawl
- Releases: github.com/firecrawl/firecrawl/releases
- Self-hosting guide: docs.firecrawl.dev/contributing/self-host
- Open source vs Cloud: docs.firecrawl.dev/contributing/open-source-or-cloud
- Root Compose file: docker-compose.yaml and SELF_HOST.md
- License: LICENSE (AGPL-3.0)