Skip to main content
Firecrawl tools for the Vercel AI SDK. Scrape, search, browse, and extract web data in your AI applications.

Install

Set environment variables:
These examples use the Vercel AI Gateway string model format, but Firecrawl tools work with any AI SDK provider. You can swap in openai('gpt-5-mini'), anthropic('claude-sonnet-4.5'), or any supported provider.

Quick Start

The easiest way to get started. FirecrawlTools() gives you search, scrape, and browser tools with an auto-generated system prompt that guides the model on tool selection.
With custom options:
Disable any tool by passing false:

Individual Tools

Every tool is dual-purpose - use it directly as a tool (reads FIRECRAWL_API_KEY from env) or call it as a factory for custom config:

Scrape

Search + Scrape

Map

Stream

Browser

The browser tool auto-creates a cloud session on first use and cleans up on process exit:
To get a live view URL (for watching the browser in real-time) or manually control the session lifecycle:

Async Tools

Crawl, batch scrape, extract, and agent return a job ID. Pair them with poll to get results:

Crawl

Batch Scrape

Agent

Autonomous web data gathering - searches, navigates, and extracts data on its own.

All Exports