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.
Prompts to try with Firecrawl in opencode
Copy an example into opencode, or ask in your own words.
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
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Firecrawl
One request; the result comes back by polling or a webhook.
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.
Firecrawl tools you can run in opencode
3Ready to run from opencode: today's price, with every fee included.
$0.001746 per page crawled ($0.00873 with JSON output). PII redaction, a prompt injection check or lockdown: $0.006984 more per page each.
$0.001746 per unit of work the agent does, up to the run's limit ($4.36475 by default).
$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.
Firecrawl success rate and speed on Spiral
Success and speed over the last 24 hours, across every run of these tools on Spiral.
| Tool | Success | Median time | Runs |
|---|---|---|---|
| Firecrawl Crawl · Website Pages | Not enough runs | ||
| Firecrawl Agent · Web Research | Not enough runs | ||
| Firecrawl Batch Scrape · Many Pages | 95.2% | 14.8s | 63 |
More on Firecrawl and opencode
Overview
Firecrawl in other agents
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.
Start using Firecrawl in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


