/fastcrw:crw-self-hostfrom fastCRW
Helps users self-host a fastCRW API server via single binary, Docker, or docker-compose with a search-backend sidecar. Use when running crw locally, configuring renderers/proxies/auth/LLM extraction, or understanding embedded vs proxy MCP modes.
Ships in fastCRW. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One static binary, one config file. No Redis, no Postgres, no Node.js runtime in
the request path. Self-host free under AGPL-3.0, or point at api.fastcrw.com
for managed.
Choose one. All install paths run the same Rust binary.
crw-mcp) — recommended for AI agent usenpx crw-mcp # zero install (npm; embedded engine, ~14 MB RAM)
brew install fastcrw/crw/crw-mcp # Homebrew
cargo install crw-mcp # Cargo (~17 MB, full embedded)
docker run -i ghcr.io/fastcrw/crw crw-mcp # Docker
pip install crw # Python SDK (auto-downloads binary on first use)
Lean build (~4.2 MB, no headless browser engine — proxy/cloud-only mode):
cargo build --profile release-small --no-default-features -p crw-mcp
crw) — scrape from the terminalbrew install fastcrw/crw/crw
curl -fsSL https://fastcrw.com/install | CRW_BINARY=crw sh
cargo install crw-cli
# APT (Debian/Ubuntu):
curl -fsSL https://apt.fastcrw.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/crw.gpg
echo "deb [signed-by=/usr/share/keyrings/crw.gpg] https://apt.fastcrw.com stable main" \
| sudo tee /etc/apt/sources.list.d/crw.list
sudo apt update && sudo apt install crw
crw-server) — Firecrawl-compatible REST endpointFor serving multiple apps, other languages (Node.js, Go, Java), or as a shared microservice.
brew install fastcrw/crw/crw-server
curl -fsSL https://fastcrw.com/install | CRW_BINARY=crw-server sh
docker run -p 3000:3000 ghcr.io/fastcrw/crw
Binary directly (crw serve):
crw serve # reads config.default.toml, listens on :3000
crw serve --port 3001 # custom port (-p short form also accepted)
crw serve --config myconfig.toml # load specific config file
CRW_PORT=3001 crw-server # env-var alternative for the standalone binary
Docker (single container, no search):
docker run -p 3000:3000 ghcr.io/fastcrw/crw
curl http://localhost:3000/v1/scrape \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
Docker Compose — full stack with bundled search:
docker compose up -d # http + LightPanda + search backend
docker compose --profile heavy up -d # + Chrome fallback
docker compose -f docker-compose.yml \
-f docker-compose.stealth.yml --profile stealth up -d # + browserless stealth tier
docker compose up starts three services: crw (API server), lightpanda
(JS renderer), and searxng (search backend). The crw service waits for
searxng to pass its healthcheck before accepting traffic, so the first search
request after startup doesn't race the cold start.
After compose up:
curl http://localhost:3000/health # → {"status":"ok",...}
curl -X POST http://localhost:3000/v1/search \
-H "Content-Type: application/json" \
-d '{"query":"fastCRW","limit":5}' # own backend, no API key
docker-compose.yml bundles a search-backend container (searxng/searxng:2026.5.9-0cba32c15)
that backs /v1/search with no API key and no per-query cost. It is internal-only —
the port is not published to the host by default. The crw container points at it as
http://searxng:8080 via the Docker bridge network (set in config.docker.toml
as [search] searxng_url = "http://searxng:8080").
To debug the search backend directly, add to docker-compose.override.yml:
services:
searxng:
ports:
- "127.0.0.1:8888:8080"
For a standalone binary pointing at an external search backend:
CRW_SEARCH__SEARXNG_URL=http://my-searxng:8080 crw-server
When searxng_url is unset, /v1/search returns HTTP 503 search_disabled.
config.default.toml)Config is a TOML file. The binary loads config.default.toml by default; override
with CRW_CONFIG=<name> (loads <name>.toml). Docker uses config.docker.toml
(set via CRW_CONFIG=config.docker in docker-compose.yml).
Every key can be overridden by environment variable using the pattern
CRW_<SECTION>__<KEY> (double underscore between section and key):
CRW_SERVER__PORT=8080
CRW_RENDERER__MODE=chrome
CRW_RENDERER__POOL_SIZE=8
CRW_SEARCH__SEARXNG_URL=http://localhost:8080
CRW_CRAWLER__PROXY=http://user:pass@proxy:8080
CRW_EXTRACTION__LLM__API_KEY=sk-...
CRW_AUTH__API_KEYS='["key-one","key-two"]' # JSON array as string
[renderer] — JS rendering[renderer]
mode = "auto" # auto | lightpanda | chrome | playwright | none
pool_size = 4 # browser context pool size
page_timeout_ms = 30000
auto — tries LightPanda first (fast, ~64 MB), falls back to Chrome for
complex SPAs and Cloudflare challenges. Recommended for production.lightpanda — LightPanda only; fast p50, lower recall on heavy SPAs.chrome — Chromium only via CDP.playwright — Playwright-controlled browser.none — HTTP-only, no JS rendering.Configure renderer endpoints:
[renderer.lightpanda]
ws_url = "ws://127.0.0.1:9222/"
[renderer.chrome]
ws_url = "ws://127.0.0.1:9223/"
[search] — web search[search]
enabled = true
# searxng_url = "http://localhost:8080" # required for /v1/search to work
timeout_ms = 15000
default_limit = 5
max_limit = 20
[crawler] — proxy and stealth[crawler]
# Single proxy:
# proxy = "http://user:pass@proxy:8080"
# proxy = "socks5://user:pass@proxy:1080"
# Pool with rotation:
# proxy_list = ["http://user:pass@a:8080", "http://user:pass@b:8080"]
# proxy_rotation = "sticky_per_host" # sticky_per_host | round_robin | random
# Stealth mode (rotate UA + inject browser-like headers):
# [crawler.stealth]
# enabled = true
# inject_headers = true
# jitter_factor = 0.2
Proxy rotation applies to both the HTTP path and the Chrome/CDP path for scrape, crawl, and map. LightPanda has no proxy support and is skipped (fail-closed) when a proxy is active. SOCKS5 proxies with credentials are not supported on the Chrome path — use http/https proxies there.
[extraction.llm] — structured JSON extraction + summariesRequired to enable formats: ["json"] (schema extraction), formats: ["summary"],
and /v1/search with answer: true.
[extraction.llm]
provider = "anthropic" # "anthropic" | "openai" | "openai-responses" | "deepseek" | "azure" | "openai-compatible"
api_key = "sk-..." # or CRW_EXTRACTION__LLM__API_KEY env var
model = "claude-sonnet-4-6"
max_tokens = 4096
# base_url = "https://custom-endpoint.example.com" # Chat Completions or Responses endpoints
max_concurrency = 4
max_html_bytes = 100000
# DeepSeek example:
# provider = "deepseek"
# api_key = "..."
# model = "deepseek-chat"
# base_url = "https://api.deepseek.com/v1"
# Azure OpenAI example:
# provider = "azure"
# api_key = "..."
# model = "gpt-4o-mini" # Azure deployment name
# base_url = "https://<resource>.openai.azure.com"
# azure_api_version = "2024-05-01-preview"
[auth] — API key authBy default, self-hosted crw requires no auth. Add keys to lock it down:
[auth]
api_keys = ["crw-key-one", "crw-key-two"]
Empty (or absent) api_keys = no auth required — good for local/trusted-network
deployments. On managed api.fastcrw.com, Bearer auth is always required.
[document] — PDF parsing[document]
enabled = true
max_pages = 0 # 0 = no limit
max_upload_bytes = 52428800 # 50 MiB cap for POST /v2/parse uploads
upload_concurrency = 4
max_concurrent_parses = 4
parse_timeout_ms = 30000
sandbox = false # set true in Docker (untrusted uploads)
crw-mcp runs in one of two modes determined by the CRW_API_URL env var:
Embedded mode (no CRW_API_URL): the Rust engine runs in-process inside the
MCP process. No separate server needed. ~14 MB RAM. Zero setup.
npx crw-mcp # embedded
claude mcp add crw -- npx -y crw-mcp # Claude Code, embedded
Proxy mode (CRW_API_URL set): MCP forwards all calls to the REST endpoint.
Use this when you want a shared crw-server to serve multiple agents, or to
point at api.fastcrw.com.
CRW_API_URL=https://api.fastcrw.com CRW_API_KEY=crw_live_... npx crw-mcp
# Claude Code:
claude mcp add crw \
-e CRW_API_URL=https://api.fastcrw.com -e CRW_API_KEY=crw_live_... \
-- npx -y crw-mcp
# Health (no auth)
curl http://localhost:3000/health
# → {"status":"ok","version":"..."}
# Scrape (no auth on default self-host)
curl -X POST http://localhost:3000/v1/scrape \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","formats":["markdown"]}' | jq .success
# → true
# Search (requires a search-backend sidecar via docker compose up)
curl -X POST http://localhost:3000/v1/search \
-H "Content-Type: application/json" \
-d '{"query":"hello","limit":3}' | jq .success
# → true (or 503 search_disabled if search backend not wired up)
SEARXNG_SECRET_KEY via .env (openssl rand -hex 32) — the compose default
is a placeholder acceptable only for local use.[document] sandbox = true if you accept untrusted PDF uploads (Docker
images do this by default in config.docker.toml).[auth] api_keys and put a reverse proxy
(nginx/Caddy) in front for TLS.rate_limit_rps = 10 in config.default.toml (global). Set to 0 to disable
(Docker config does this for bench/production load).Full production hardening guide: docs.fastcrw.com/self-hosting-hardening/
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fastcrw/crw --plugin fastcrw13 skills in this plugin
/crwScrape, crawl, map, search, parse, and extract web data with fastCRW — the
open-source, self-hostable Firecrawl alternative (single Rust binary, ~14 MB
RAM, Firecrawl-compatible /v1 + /v2 API). Use whenever the user needs page
content, site-wide extraction, URL discovery, web search, PDF parsing,
structured JSON from pages, or change tracking. Also use when the user
mentions Firecrawl, Tavily, Crawl4AI, or "scrape/crawl/map/fetch/get the
page/read this site/search the web" — crw is a drop-in for the Firecrawl SDKs.
/crw-best-practicesReference skill for building production-ready crw integrations. Covers verb
selection, call surfaces (CLI/MCP/REST), post-filtering strategies, context-window
hygiene, Hybrid RAG patterns, common pitfalls, and crw-specific operational
considerations (search backend limits, renderer pool, proxy rotation). Load this when
writing application code that embeds crw, designing a multi-step agent workflow,
or debugging an integration that isn't behaving as expected.
/crw-crawlCrawl an entire website or section and extract content from every page.
Use when you need content from many pages under a common URL prefix:
"crawl the whole site", "get all docs pages", "scrape every blog post",
"download the full docs for RAG", "extract all pages under /api". Async
BFS — starts a job and polls for results. Step 4 of the crw workflow ladder.
/crw-dynamic-searchProgrammatic web search and scrape with context isolation. Use for any research
task where you need to search the web, filter results, and extract specific
information — without flooding your context window with raw HTML and boilerplate.
This is the single biggest token-saver in the crw skill set. Triggered by "search
for", "look up", "find", "research", "what's the latest on", or any query that
requires current web information. Also use when asked to "search and filter", "find
the important parts", or any task where you suspect the raw output will be large
(multi-page scrapes, news aggregation, competitive research).
/crw-extractExtract a typed JSON object from one or more web pages against a JSON Schema
with fastCRW. Use when you need structured data — "get the price and stock
status", "extract all job listings as JSON", "pull structured fields from this
page". Step 6 of the crw workflow ladder.
/crw-mapDiscover all URLs on a website without fetching content — fast, low-cost
URL inventory via sitemap.xml + link extraction BFS. Use when you need to
know which pages exist before deciding what to scrape or crawl: "list all
pages", "find URLs on this site", "discover links", "what pages does this
site have", "map the site". Step 3 of the crw workflow ladder.
Other plugins' skills for the same job