Firecrawl CLI
$ firecrawl Official Med RiskFirecrawl CLI (firecrawl) scrapes JS-rendered pages, maps site URLs, searches web/doc indexes, and crawls domains directly into clean Markdown or JSON files built for LLM context windows. Includes --api-url for self-hosted instances.
npm install -g firecrawl-cli Writing scraped Markdown directly to disk with firecrawl scrape -o saves massive context tokens compared to returning raw web pages through MCP tool results.
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
Built expressly for AI agents with clean Markdown/JSON extraction, --limit bounds, --status, and official skill initialization (init).
- Outputs LLM-ready Markdown/JSON and ships official agent skill setup (
init)
API calls consume paid Firecrawl credits (billing side effect) and send target URLs to Firecrawl Cloud unless --api-url targets a self-hosted server.
- Credit-metered API calls (
--statuschecks balance); supports--api-urlself-hosting
Lightweight npm/npx CLI without requiring local headless Chromium binaries.
- Installed via
npm install -g firecrawl-cliornpx
Turns cluttered HTML/SPAs into clean Markdown/JSON, slashing token usage dramatically.
- Server-side JS rendering and Markdown extraction
Official Firecrawl CLI (firecrawl/cli) under MIT license.
- Official
firecrawl/clirepository
Good official docs at docs.firecrawl.dev and per-subcommand --help.
- Official CLI docs at docs.firecrawl.dev/sdks/cli
Security, Auth & Guardrails
Reads FIRECRAWL_API_KEY env var (or -k/--api-key), or stores credentials locally via firecrawl login.
CLI is MIT open-source; Firecrawl Cloud API bills per credit/page (free tier + paid plans; self-hostable via --api-url).
# Firecrawl CLI Agent Rules - Check `firecrawl --status` before large jobs and cap `search` / `crawl` calls with `--limit` so API credits aren't exhausted. - Prefer `-o <file>` when scraping long pages so huge Markdown documents go to disk before selective reading.
Agent-Ready Command Recipes
Safe Read-Only Queries
firecrawl --status
Prints CLI version, active authentication state, concurrency limit, and credit balance.
firecrawl search 'hurl http cli documentation' --limit 5
Queries Firecrawl search with --limit 5 to keep terminal output compact.
Controlled Writes & Previews
firecrawl scrape https://hurl.dev/docs/man-page.html -o page.md
Renders and extracts page content into page.md on disk, consuming API credits.
Strengths for Agents
- + Outputs clean LLM-ready Markdown/JSON without local browser setup.
- + Ships official agent skill scaffolding and
--statuscredit inspection. - + Supports
--api-urlfor self-hosted Firecrawl deployments.
Caveats & Pitfalls
- ! Cloud API calls consume Firecrawl credits (
crawlcan burn credits rapidly if unbounded). - ! Requires
FIRECRAWL_API_KEYor login for full usage.