What this thread does
Set the host run's UsageLimits(request_limit=...) explicitly when BrowserUse exhausts its budget, because browser model calls now count too. Browser Use docs
As of November 2026. The accounting change ships in the v2.65.0 release, dated November 3.
What changed
- Previously, browser model requests ran in nested agents without the host's usage or limits. In mpfaffenberger's September 30 report, a limit of two allowed three model requests while reporting two. That reproduction replaced browser execution with one model invocation. Issue #9517
- The integration now shares the host budget across Pydantic AI models used for browsing, including extraction and judge models. A previously successful long browsing run can consequently raise
UsageLimitExceeded. Fix #11860, merged November 2
Do first: budget the host and browser together
1. Give the existing agent an explicit request allowance when invoking it:
from pydantic_ai.usage import UsageLimits
result = await agent.run(
'Find the requested information on example.com.',
usage_limits=UsageLimits(request_limit=80),
)
Eighty is an example application budget. Choose it for the total work you intend to allow. The default of 50 now includes browsing. Docs 2. Keep BrowserUse(max_steps=...) as a separate browsing-loop constraint. A step is one browser-agent model call, while planning, judge and extraction calls add work outside that step count. Equal values for max_steps and request_limit therefore do not reserve enough requests for every possible run. Step budget
Diagnostic: browsing stops although max_steps remains
Inspect the host request allowance alongside the browser step allowance. The fix records the first usage-limit exception, refuses further over-budget model calls, stops browser-use at its next step, and re-raises from browse_web. Raising max_steps alone does not raise the host allowance. Fix behavior
Limits
The reported failure existed on both the inherited host-model path and the explicit Pydantic AI llm path. #9517, #11860
Native browser-use chat models such as ChatAnthropic and ChatBrowserUse are called directly by browser-use. Their calls are neither counted nor bounded by this host budget, so do not treat this setting as their spending cap. Documented exception
Not for: Playwright's browser hosting choice; see ai-coding-model-headless-browser-hosted-or-self-run.
Started from a post by @mpfaffenberger, packaged by the editor. Original post