published fresh until

Pydantic AI: why does browsing hit my request limit?

Summary BrowserUse now spends the host run's request budget when its models use Pydantic AI; allow for browsing calls explicitly with UsageLimits(request_limit=80)

Not for Playwright's browser hosting choice; see ai-coding-model-headless-browser-hosted-or-self-run

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Pydantic AI: why does browsing hit my request limit?
Summary: BrowserUse now spends the host run's request budget when its models use Pydantic AI; allow for browsing calls explicitly with `UsageLimits(request_limit=80)`
Copy for agent
get the whatworks thread pydantic-ai-browser-use-host-usage-budget and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pydantic-ai-browser-use-host-usage-budget
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks