browser-use-pydantic
Browser Use on Pydantic AI. The agent writes Python against raw CDP (browser-harness).
uv add browser-use-pydantic
export OPENAI_API_KEY=...
import asyncio
from browser_use_pydantic import Agent, Browser
async def main():
async with Agent('Find the top story on Hacker News', llm='openai/gpt-5.6-luna') as agent:
result = await agent.run()
print(result.final_result())
asyncio.run(main())
Options
Agent(
task,
llm='openai/gpt-5.6-luna', # or 'anthropic/...', 'openrouter/...', or a Pydantic AI model
browser=Browser(), # see below
output_model_schema=MyModel, # typed result in result.structured_output
reasoning='medium',
workspace='./work', # files the agent saves; default: a temp dir
)
result = await agent.run(max_steps=100, timeout=1700)
result.final_result() # answer text, or None if it did not finish
result.structured_output # MyModel instance
result.status # completed | max_steps | timeout | error
result.partial # last checkpoint(..., partial=True) when unfinished
agent.add_new_task('Now summarize the comments') # next run() continues the conversation
await agent.run()
Browser
Browser() # your local Chrome
Browser(cdp_url='http://localhost:9222') # any browser with remote debugging
Browser(use_cloud=True) # Browser Use Cloud, needs BROWSER_USE_API_KEY
Develop
uv run pytest runs a real headless Chrome with a scripted model; it makes no provider calls. eval/ is the browser-use-pi eval contract.
Metadata
Release files for browser-use-pydantic 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browser_use_pydantic-0.1.0.tar.gz | 27.1 kB | With provenance | Details for browser_use_pydantic-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser_use_pydantic-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for browser_use_pydantic-0.1.0-py3-none-any.whl |
Total release size: 46.0 kB
Release files / browser_use_pydantic-0.1.0.tar.gz
| Download URL | browser_use_pydantic-0.1.0.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2ce53a1eb44652f8212aa8460bf4d3a25b5c81b5faa840d3174c25451a39205
|
|
BLAKE2b-256 checksum How to use checksums |
ece7bf5ecf0486d18efbb64841221ed17c8e635e0f9e7cc0aa8325a30f52d7ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / browser_use_pydantic-0.1.0-py3-none-any.whl
| Download URL | browser_use_pydantic-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa869e69971353919f53a327bf4ebdf99d8fc6351379b3ab7e25159c0fcb4f4d
|
|
BLAKE2b-256 checksum How to use checksums |
ed69badf30438f5d6f37992f957caa01b0ba78694ca0085c8e9d3189fdea5adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for browser-use-pydantic 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for browser_use_pydantic-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.