How to Use Firecrawl government documents in opencode
Find ranked US statutes, regulations, codes, court opinions, and agency publications with titles, URLs, and matched excerpts. Use it to locate sources for a legal or regulatory question, then check the underlying document's status and version.
Prompts to try with Firecrawl government documents in opencode
Copy an example into opencode, or ask in your own words.
Use Firecrawl government documents to find federal food allergen labeling sources and add a linked reading list to this project's research notes.
Use Firecrawl government documents to find California consumer privacy notice sources and compare the returned excerpts with this project's privacy-policy draft.
Use Firecrawl government documents to find Seattle accessory dwelling unit code sources and build a source-list view in this project.
Use Firecrawl government documents to find federal appellate opinions citing 42 U.S.C. § 1983 and create a bibliography with returned titles and URLs.
Use Firecrawl government documents to find EPA greenhouse gas reporting sources and add a research appendix to this project's documentation.
How to set up Firecrawl government documents 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 government documents
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/gov-search", "input": { "query": "<query>" } }'
Then paste one of the prompts above: opencode finds Firecrawl government documents on Spiral, shows the price and runs it.
Firecrawl government documents providers and prices
Spiral runs Firecrawl government documents through Firecrawl. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| K | 1 to 100 | 10 | Number of results to return. |
| Court type | federal-supreme, federal-appellate, federal-district, federal-bankruptcy, federal-special, military, state-supreme, state-appellate and 3 more | Keep only pages from one type of court: |
Every API field of Firecrawl Government · Search is on its tool page: open its card above.
What can you do with Firecrawl government documents in opencode?
Add linked US legal sources to a project's policy notes or research interface. A coding agent can organize Firecrawl's ranked titles, URLs, and excerpts into a reviewable source list.
Find the regulation behind a requirement
Locate US food-labeling regulations and agency publications for an allergen-labeling research brief.
Build a state-law source list
Collect California and Colorado privacy statutes into separate reading lists with titles, excerpts, and source links.
Discover opinions interpreting a statute
Find federal court opinions citing 42 U.S.C. § 1983 for a legal research bibliography.
Prepare a local-code reading list
Find Seattle code provisions relevant to accessory dwelling units and collect the returned document links for review.
Check sources behind a policy claim
Search for statutes, regulations, and agency guidance behind a claim about US emissions reporting, then inspect the underlying texts.
Maintain an agency-publication watchlist
Repeat focused EPA searches and flag newly appearing URLs for review without treating a ranking change as a legal change.
More on Firecrawl government documents and opencode
Overview
Firecrawl government documents in other agents
Questions about Firecrawl government documents in opencode
Can opencode use Firecrawl government documents?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Firecrawl government documents like any built-in tool.
How much does Firecrawl government documents cost in opencode?
$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a Firecrawl account to use Firecrawl government documents in opencode?
No. Spiral runs Firecrawl government documents 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 government documents in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Firecrawl government documents runs?
Firecrawl government documents runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Which jurisdictions and documents does Firecrawl cover?
The Government Index focuses on US federal, state, and local material. It searches statutes, regulations, codes, court opinions, and other government publications.
Does a result contain the full legal document?
Results provide matched excerpts with a title, URL, description, and rank. Read the linked document when the excerpt does not establish the rule.
How many results can one search return?
Each search returns up to 100 ranked results, with 10 as the default. That result cap does not establish how many relevant documents exist.
Are all matches current, enacted law?
Matches can include bills, historical versions, agency guidance, and third-party reproductions. Verify the issuer, jurisdiction, effective status, and version before citing a match as current governing law.
Can a filtered search miss relevant documents?
Yes. Filters retain pages with matching index labels, so relevant unlabeled pages can disappear from the results; court labels are most complete for federal courts and case-law collections.
Start using Firecrawl government documents 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


