feat(providers): add Firecrawl as a built-in browser provider#1456
Open
rakshith48 wants to merge 2 commits into
Open
feat(providers): add Firecrawl as a built-in browser provider#1456rakshith48 wants to merge 2 commits into
rakshith48 wants to merge 2 commits into
Conversation
Adds Firecrawl (cloud browser via its Browser Sandbox) alongside
Browserbase/Browserless/Kernel/etc.:
- native/providers.rs: connect_firecrawl() (POST /v2/browser -> cdpUrl,
FIRECRAWL_API_KEY/URL env, optional FIRECRAWL_PROFILE_NAME) + session
cleanup (DELETE /v2/browser/{id}) + match/error wiring
- doctor/providers.rs: FIRECRAWL_API_KEY presence check
- docs: providers/firecrawl page + nav + title registration; README section
Usable via `agent-browser -p firecrawl open <url>`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
@rakshith48 is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
Firecrawl renamed the browser-session endpoint; point connect_firecrawl() and its session cleanup at /v2/interact (same contract; /v2/browser remains a backward-compat alias). Docs/README updated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft / RFC — opening for discussion before polishing.
Adds Firecrawl as a built-in
browser.provider, alongside Browserbase / Browserless / Kernel / Browser Use / AgentCore. Firecrawl's Browser Sandbox returns a CDP WebSocket URL, so it slots into the existing provider model directly.What's here
cli/src/native/providers.rs—connect_firecrawl():POST {FIRECRAWL_API_URL}/v2/browserwithAuthorization: Bearer $FIRECRAWL_API_KEY, returns the responsecdpUrl; optionalFIRECRAWL_PROFILE_NAMEfor persistent login profiles. Session cleanup viaDELETE /v2/browser/{id}. Wired into the provider match + the "unknown provider" message.cli/src/doctor/providers.rs—FIRECRAWL_API_KEYpresence check.providers/firecrawlpage, nav + page-title registration, README provider section.Usage:
export FIRECRAWL_API_KEY=fc-... agent-browser -p firecrawl open https://example.comNotes / open questions
reqwest,ProviderSessioncleanup). No new deps.cargo build/fmtlocally in my environment — relying on CI here; happy to adjust to match lint/test conventions.packages/dashboard/public/providers/*.svg) not included yet — can add if you'd like it in this PR.firecrawl/agent-browser-plugin-firecrawl) using thebrowser.provider+command.runplugin protocol; this PR is the in-core provider equivalent per the docs' "new providers can start as plugins, then graduate to core" guidance. Glad to keep it as a plugin instead if you'd prefer.🤖 Generated with Claude Code