> ## Content Index
> Fetch the complete content index at: https://blog.uptime.bet/llms.txt
> Use this file to discover other available public pages before exploring further.

# Firecrawl: Self-Host a Web Scraping API That Turns Websites into Markdown for AI
- URL: https://blog.uptime.bet/firecrawl-self-hosted-web-scraping-api-ai-docker/
- Published: 2026-11-23T08:00:00.000Z
- Updated: 2026-11-23T08:00:00.000Z
- Description: 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.
- Author: Alexandre Nebeling
- Tags: Trending, Self-Hosted, Open Source, Docker, Homelab, AI, AI Agents, Automation

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](https://github.com/firecrawl/firecrawl?ref=blog.uptime.bet) 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.

![Firecrawl logo, an orange flame icon](https://blog.uptime.bet/content/images/2026/11/firecrawl-firecrawl_logo.png)

The Firecrawl logo. [Source: firecrawl/firecrawl on GitHub](https://github.com/firecrawl/firecrawl?ref=blog.uptime.bet) (AGPL-3.0 repository)

## Key features of the self-hosted version

The official [self-hosting guide](https://docs.firecrawl.dev/contributing/self-host?ref=blog.uptime.bet) and the [Open Source vs Cloud](https://docs.firecrawl.dev/contributing/open-source-or-cloud?ref=blog.uptime.bet) 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_NAME` and `OLLAMA_BASE_URL` to 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:

```bash
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:

```bash
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

```bash
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:

```bash
curl http://localhost:3002/v0/health/readiness
# {"status":"ok"}

```

That only proves the API process answers. The real test is a scrape:

```bash
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:

```python
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=false` there 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}`, setting `PORT=127.0.0.1:3002` in `.env` should restrict it to localhost – check the result with `docker 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 maps `host.docker.internal` to the host gateway, which helps if Ollama runs on the Docker host) or `OPENAI_BASE_URL` plus `MODEL_NAME` for 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`. The `ADMIN_INTERNAL_PORT` listener needs no key at all and must never be published.
- **Tune concurrency** with `NUM_WORKERS_PER_QUEUE`, `CRAWL_CONCURRENT_REQUESTS`, `MAX_CONCURRENT_JOBS` and `BROWSER_POOL_SIZE` if 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](https://blog.uptime.bet/archivebox-self-hosted-web-archive-docker/) is the better tool. And if you want to be alerted when a page changes, [changedetection.io](https://blog.uptime.bet/changedetection-io-self-hosted-website-change-monitoring-docker/) is built exactly for that. For AI-tagged bookmarks, have a look at [Karakeep](https://blog.uptime.bet/karakeep-self-hosted-bookmark-manager-docker/).

## 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](https://github.com/firecrawl/firecrawl?ref=blog.uptime.bet)
- Releases: [github.com/firecrawl/firecrawl/releases](https://github.com/firecrawl/firecrawl/releases?ref=blog.uptime.bet)
- Self-hosting guide: [docs.firecrawl.dev/contributing/self-host](https://docs.firecrawl.dev/contributing/self-host?ref=blog.uptime.bet)
- Open source vs Cloud: [docs.firecrawl.dev/contributing/open-source-or-cloud](https://docs.firecrawl.dev/contributing/open-source-or-cloud?ref=blog.uptime.bet)
- Root Compose file: [docker-compose.yaml](https://github.com/firecrawl/firecrawl/blob/main/docker-compose.yaml?ref=blog.uptime.bet) and [SELF\_HOST.md](https://github.com/firecrawl/firecrawl/blob/main/SELF%5FHOST.md?ref=blog.uptime.bet)
- License: [LICENSE (AGPL-3.0)](https://github.com/firecrawl/firecrawl/blob/main/LICENSE?ref=blog.uptime.bet)