Skip to main content

auto-browser LangChain Integration

LangChain, LangGraph and CrewAI adapters for Auto Browser. They call a running Auto Browser controller over its MCP tool endpoint.

pip install "auto-browser-langchain[langchain]"   # LangChain / LangGraph
pip install "auto-browser-langchain[crewai]"      # CrewAI

AutoBrowserTool is one LangChain tool that takes an MCP tool name and its arguments, so the model can use every tool the controller serves:

from auto_browser_langchain import AutoBrowserTool

tool = AutoBrowserTool(base_url="http://localhost:8000", token_file="data/api-token")
print(tool.invoke({"action": "browser.observe", "arguments": {"preset": "text"}}))

A local controller with no API_BEARER_TOKEN saves its generated token to data/api-token in the auto-browser folder. token_file (on the tool, on AutoBrowserTool.list_tools and on AutoBrowserNode) reads it on every call, so a regenerated token needs no restart; bearer_token wins when it is set. A missing or empty file raises before any request is sent.

AutoBrowserNode is a LangGraph node that opens a session and records the current URL and screenshot in the graph state.

AutoBrowserNode needs only httpx. AutoBrowserTool needs langchain-core: building it without the [langchain] extra raises an ImportError that says so.

When a tool call fails, the controller still answers HTTP 200 with isError: true. AutoBrowserTool returns that text as ERROR: ... so the model can read it. AutoBrowserNode raises AutoBrowserToolError instead, with the tool name, the error text and the controller's structured payload (payload, code, retryable), so a graph can tell a missing session from a bad selector:

from auto_browser_langchain import AutoBrowserNode, AutoBrowserToolError

try:
    state = await AutoBrowserNode().run({"session_id": "s1"})
except AutoBrowserToolError as exc:
    if exc.code == "unknown_session":
        ...  # open a new session

An answer that is not 2xx raises httpx's HTTPStatusError, and a connection or protocol failure httpx's own error; their text leaves out the token and the base URL's userinfo, query and fragment. httpx itself logs every request at INFO on its httpx logger, naming the URL as sent (userinfo, query and fragment included) and the server's reason phrase, and this package does not filter that logger: keep a secret in bearer_token or token_file, not in the base URL. A base URL holding a user name or password is refused with a token (ValueError), since httpx would send them as Basic credentials in place of it; without a token they go as Basic credentials. A base URL's query is sent with every request, as httpx writes parameters; its fragment is never sent.

Full walkthroughs: LangChain / LangGraph · CrewAI

Metadata

Release files for auto-browser-langchain 1.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-browser-langchain 1.19.0
File Size Uploaded Provenance Actions
auto_browser_langchain-1.19.0.tar.gz 25.6 kB With provenance Details for auto_browser_langchain-1.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auto-browser-langchain 1.19.0
File Interpreter ABI Platform Actions
auto_browser_langchain-1.19.0-py3-none-any.whl Python 3 none any Details for auto_browser_langchain-1.19.0-py3-none-any.whl

Total release size: 39.9 kB

Release files / auto_browser_langchain-1.19.0.tar.gz

Download URL auto_browser_langchain-1.19.0.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
892740f20e1b77e5ee42349b466ea3a3f1eb300ee0db03455d61fc223822901c
BLAKE2b-256 checksum
How to use checksums
24a90df29cb94b45d4eba0c28b0a992ff8de2c2e5210bfd66b8bf2e436f7b0f2
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 22, 2026.

Transparency log

Release files / auto_browser_langchain-1.19.0-py3-none-any.whl

Download URL auto_browser_langchain-1.19.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
237d32c47082c1df7b99fd1e9bc368bcfd6cadc8a8d9c2f49de1cb2db3e814c4
BLAKE2b-256 checksum
How to use checksums
cd88645b191c69ff9c967d0447e017b77896595809024dc85a1e3f933b2bf8a4
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 22, 2026.

Transparency log

Security for auto-browser-langchain 1.19.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.

Select from 2 files

Attestation for auto_browser_langchain-1.19.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 22, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.19.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page