When a site blocks you
Paid tools and budgets
Turn on paid browsers, unblockers and search, and cap what a read can spend.
The free stack needs no keys. Paid tools join a read only when two things are true: the key is set, and the call allows it.
- Paid tools are tried after the free ones, until a wall: then they move ahead
(escalation,
paid_after_walls, after the first wall by default, or the second when a free tool usually gets past that wall vendor). - Cheapest likely success first: each paid tool’s measured cost per read over its chance of getting past this wall vendor (bundled measurements: Firecrawl passed 88 to 100% of the labelled Cloudflare, Akamai, DataDome and PerimeterX sites at $0.004 a read; ZenRows 29 to 50% at $0.025). Your own reads update the chances.
- They are never retried automatically.
- A tool without a key is skipped, not failed.
page = await web.read(url, policy_overrides={ "allow_paid_fallbacks": True, "max_cost_usd": 0.05,}){ "tool": "read", "arguments": { "url": "https://www.g2.com/", "acquisition_policy": { "allow_paid_fallbacks": true, "max_cost_usd": 0.05 } } }receipt.cost_usd is the total measured cost. If any tool’s cost is unknown,
the total is null, never a guess.
Add keys
Section titled “Add keys”Frankensurf looks for each key in this order:
- the environment, as
FRANKENSURF_<NAME>; ~/.config/frankensurf/.env;- the
api_keysobject in~/.config/frankensurf/services.json.
FRANKENSURF_ZENROWS_API_KEY=...FRANKENSURF_FIRECRAWL_API_KEY=...FRANKENSURF_EXA_API_KEY=...Keep the file readable only by you (chmod 600). With a secrets manager such as 1Password,
Doppler or Infisical, store the keys under these names and run through it, for
example op run -- frankensurf read …. Keys never appear in results,
receipts or errors.
| Tool | Keys |
|---|---|
| Jina Reader | JINA_API_KEY (optional) |
| Firecrawl | FIRECRAWL_API_KEY |
| ZenRows | ZENROWS_API_KEY |
| Scrapfly | SCRAPFLY_API_KEY |
| Bright Data | BRIGHTDATA_API_KEY, BRIGHTDATA_ZONE |
| Browserbase | BROWSERBASE_API_KEY |
| Steel Cloud | STEEL_API_KEY |
| Hyperbrowser | HYPERBROWSER_API_KEY |
| Browserless | BROWSERLESS_API_KEY |
| Kernel | KERNEL_API_KEY |
| Anchor | ANCHOR_API_KEY |
| Cloudflare Browser Run | CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID |
| Zyte | ZYTE_API_KEY |
| Apify | APIFY_API_TOKEN |
| fastCRW | FASTCRW_API_KEY, or FASTCRW_URL for self-hosted |
| Skyvern | SKYVERN_API_KEY |
| Exa | EXA_API_KEY |
| Brave | BRAVE_API_KEY |
| Tavily | TAVILY_API_KEY |
| Parallel | PARALLEL_API_KEY |
| Serper | SERPER_API_KEY |
| SerpAPI | SERPAPI_API_KEY |
| Google Programmable Search | GOOGLE_CSE_API_KEY, and FRANKENSURF_GOOGLE_CSE_CX |
All prefixed with FRANKENSURF_.
Budgets
Section titled “Budgets”max_cost_usd caps the whole read, fallbacks included. Tools that can bound
their worst case (ZenRows, Firecrawl and the hosted browsers) refuse a call that
could pass what’s left, with BUDGET_EXHAUSTED. Tools that can’t report cost
don’t run under a cap.
A bound is an estimate. For Firecrawl, a PDF adds a credit per parsed page, so
under a cap a URL that looks like a PDF (.pdf, arXiv’s /pdf/, ?format=pdf)
is priced for the pages the policy would read, and a page nothing has fetched yet
gets one HEAD request first (free, from your machine) to learn whether it is a
PDF and how big. When a paid call still bills more than the cap (a PDF with more
pages than expected), the page you paid for is returned, not thrown away: receipt.budget is {"cap_usd": 0.02, "spent_usd": 0.0266, "exceeded": true},
cost_budget_satisfied is false, and no further paid call runs. Set
strict_cost_cap=True to fail with BUDGET_EXHAUSTED instead. A call whose
cost is unknown is always refused.