OpenCode plugin for Firecrawl — gives your AI agent reliable web scraping, crawling, and search via the Firecrawl CLI.
Add the plugin to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-firecrawl"]
}Then install the Firecrawl CLI globally:
npm install -g firecrawl-cliOn first use, the agent will prompt you to authenticate. You can also set up in advance:
# Browser login (recommended)
firecrawl login --browser
# Or set an API key
export FIRECRAWL_API_KEY=fc-your-api-keyGet an API key at firecrawl.dev.
If FIRECRAWL_API_KEY is set in your environment, the plugin automatically passes it to shell commands.
This plugin registers the Firecrawl CLI skill with OpenCode. Once installed, the agent can:
- Search the web with optional scraping of results
- Scrape any webpage to clean markdown, HTML, or structured data
- Map all URLs on a website
- Crawl entire websites recursively
- Agent — AI-powered autonomous web data extraction
All output is written to a .firecrawl/ directory to avoid flooding context.
ISC