[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Firecrawl](https://spiral.ai/integrations/opencode/firecrawl)

# How to Use Firecrawl in opencode

To use Firecrawl in opencode, connect Spiral to opencode once, then ask for what you want in plain words. opencode can then reach all 11 Firecrawl tools on Spiral, priced per run from one balance.

|  |  |
| --- | --- |
| Tools | 11 |
| Categories | Web, Data |
| Served by | Firecrawl |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with Firecrawl in opencode

- Scrape https://example.com/pricing with Firecrawl and turn it into a comparison table. Save the result in ./assets.
- Crawl the docs at https://docs.example.com with Firecrawl and summarize each section.
- Pull the latest posts from this blog with Firecrawl and list their titles and dates.
- Scrape the job listings at https://example.com/careers with Firecrawl and give me a CSV.
- Scrape the changelog at https://example.com/changelog with Firecrawl and list this month's changes.

## How to set up Firecrawl in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Firecrawl**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "firecrawl",
    "model": "firecrawl/crawl",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Firecrawl on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Firecrawl tools and prices

- [Firecrawl Crawl · Website Pages](https://spiral.ai/tools/firecrawl/firecrawl/crawl) (Firecrawl): $0.001746 per page crawled ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per page each.
- [Firecrawl Agent · Web Research](https://spiral.ai/tools/firecrawl/firecrawl/agent) (Firecrawl): $0.001746 per unit of work the agent does, up to the run's limit ($4.36475 by default).
- [Firecrawl Batch Scrape · Many Pages](https://spiral.ai/tools/firecrawl/firecrawl/batch-scrape) (Firecrawl): $0.001746 per URL ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per URL each.

## What can you do with Firecrawl in opencode?

opencode can scrape and crawl websites with Firecrawl right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.

### Competitor tracking

Pricing pages and changelogs turned into tables.

### Docs for your agent

Crawl a docs site so your agent can answer from it.

### Lead and job lists

Structured rows from listing pages.

### Price monitoring

Track competitors' prices on a schedule.

### Content audits

Inventory every page on a site.

### Market research

Collect reviews and listings into one table.

## Overview

- [Firecrawl](https://spiral.ai/providers/firecrawl)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Firecrawl in other agents

- [Amp](https://spiral.ai/integrations/amp/firecrawl)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/firecrawl)
- [Claude](https://spiral.ai/integrations/claude-desktop/firecrawl)
- [Claude Code](https://spiral.ai/integrations/claude-code/firecrawl)
- [Cline](https://spiral.ai/integrations/cline/firecrawl)
- [Codex](https://spiral.ai/integrations/codex/firecrawl)
- [Cursor](https://spiral.ai/integrations/cursor/firecrawl)
- [Devin](https://spiral.ai/integrations/devin/firecrawl)
- [dots](https://spiral.ai/integrations/dots/firecrawl)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/firecrawl)
- [Gemini](https://spiral.ai/integrations/gemini/firecrawl)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/firecrawl)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/firecrawl)
- [goose](https://spiral.ai/integrations/goose/firecrawl)
- [Grok](https://spiral.ai/integrations/grok/firecrawl)
- [Grok Build](https://spiral.ai/integrations/grok-build/firecrawl)
- [Hermes](https://spiral.ai/integrations/hermes/firecrawl)
- [Instinct](https://spiral.ai/integrations/instinct/firecrawl)
- [Manus](https://spiral.ai/integrations/manus/firecrawl)
- [Muse](https://spiral.ai/integrations/muse/firecrawl)
- [Muse Code](https://spiral.ai/integrations/muse-code/firecrawl)
- [n8n](https://spiral.ai/integrations/n8n/firecrawl)
- [Notion](https://spiral.ai/integrations/notion/firecrawl)
- [OpenClaw](https://spiral.ai/integrations/openclaw/firecrawl)
- [Perplexity](https://spiral.ai/integrations/perplexity/firecrawl)
- [Raycast](https://spiral.ai/integrations/raycast/firecrawl)
- [VS Code](https://spiral.ai/integrations/vscode/firecrawl)
- [Windsurf](https://spiral.ai/integrations/windsurf/firecrawl)
- [Zapier](https://spiral.ai/integrations/zapier/firecrawl)

## More opencode guides

- [Exa](https://spiral.ai/integrations/opencode/exa)
- [ScrapeCreators](https://spiral.ai/integrations/opencode/scrapecreators)
- [Alexandria](https://spiral.ai/integrations/opencode/alexandria)
- [TikHub](https://spiral.ai/integrations/opencode/tikhub)
- [Wikipedia structured article](https://spiral.ai/integrations/opencode/wikipedia-structured-article)
- [Meshy 6 Preview Image to 3D](https://spiral.ai/integrations/opencode/meshy-6-preview-image-to-3d)

## Questions about Firecrawl in opencode

**Can opencode use Firecrawl?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Firecrawl like any built-in tool.

**How much does Firecrawl cost in opencode?**

Each tool has its own price, for example Firecrawl Crawl Website Pages: $0.001746 per page crawled ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per page each; Firecrawl Agent Web Research: $0.001746 per unit of work the agent does, up to the run's limit ($4.36475 by default); Firecrawl Batch Scrape Many Pages: $0.001746 per URL ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per URL each. You pay per run from one Spiral balance, and failed runs are free.

**Do I need a Firecrawl account to use Firecrawl in opencode?**

No. Spiral runs Firecrawl on its own Firecrawl account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Firecrawl in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Firecrawl runs?**

Firecrawl runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which Firecrawl tools can opencode use?**

opencode can reach all 11 Firecrawl tools on Spiral, covering web and data. Popular ones include Firecrawl Crawl · Website Pages, Firecrawl Agent · Web Research, and Firecrawl Batch Scrape · Many Pages. Ask for one by name, or describe the task and opencode picks a fitting tool.

**Can opencode compare Firecrawl tools?**

Yes. Ask opencode to run the same request on two Firecrawl tools and show both results with what each cost. Each run is priced and billed on its own.

**What happens if a Firecrawl run fails in opencode?**

It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. opencode gets the error and can retry or try another tool.

**Is there a Firecrawl subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps opencode from stopping when the balance runs low.

