AI 中文摘要Claude 生成
Firecrawl OpenCode 外掛程式現已推出,使 AI Agent 能夠直接從終端執行網頁爬取、搜尋與瀏覽,為 AI 應用提供實時網頁資料能力。
安裝與設置
- 透過
npm install -g firecrawl-cli全域安裝 Firecrawl CLI - 在
opencode.json中新增外掛程式配置,引用opencode-firecrawl - 首次使用時 Agent 將提示認證,或提前透過瀏覽器登入(
firecrawl login --browser)設置 - 可選設置環境變數
FIRECRAWL_API_KEY實現自動認證,外掛程式會自動將其傳遞至 shell 指令
核心功能
外掛程式將 Firecrawl CLI 能力註冊至 OpenCode,Agent 得以執行:
- 搜尋網頁並可選地爬取搜尋結果
- 爬取單一網頁,輸出乾淨的 Markdown、HTML 或結構化資料
- 對網站進行 URL 全面對應
- 遞迴爬取整個網站
- 人工智慧驅動的自主網頁資料提取
設計特色
所有輸出寫入 .firecrawl/ 目錄,避免充斥 Agent 的上下文窗口。這一設計確保 Agent 在執行多個網頁操作時能維持清晰的工作流程,不會因大量爬取結果而淹沒其他任務指令。
適用場景
該外掛程式適合需要實時網頁資料的應用,使 Agent 能自主決定何時爬取資料、爬取哪些資料,無需人工干預,擴展了 Agent 在開放網際網路環境中的自主性和應用深度。
The Firecrawl plugin is now available in @opencode 🔥
— Firecrawl (@firecrawl) March 20, 2026
$ npm install -g firecrawl-cli
Let agents scrape, search, and browse the web for real-time context - right from your terminal. pic.twitter.com/anBdemPPx9
Add the Firecrawl plugin to OpenCode now: https://t.co/WEtIHXW5Ex
— Firecrawl (@firecrawl) March 20, 2026
