Add direct API examples for Browser Use Cloud custom proxy#4
Draft
MagMueller wants to merge 1 commit intomainfrom
Draft
Add direct API examples for Browser Use Cloud custom proxy#4MagMueller wants to merge 1 commit intomainfrom
MagMueller wants to merge 1 commit intomainfrom
Conversation
Add examples showing how to call the Browser Use Cloud API directly without using the SDK: - examples/direct-api/custom_proxy.sh - curl/bash script - examples/direct-api/custom_proxy.py - Python with requests - examples/direct-api/custom_proxy.ts - TypeScript with fetch All examples demonstrate creating a browser session with a custom HTTP or SOCKS5 proxy, supporting environment variable configuration for proxy host, port, and optional authentication. Addresses request from Aitor for curl & other language examples beyond the SDK. Co-authored-by: Magnus Müller <MagMueller@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds examples for calling the Browser Use Cloud API directly without using the SDK, as requested by Aitor. These examples demonstrate how to create browser sessions with custom proxy support.
New Files
examples/direct-api/custom_proxy.sh- curl/bash scriptexamples/direct-api/custom_proxy.py- Python with requests (no SDK)examples/direct-api/custom_proxy.ts- TypeScript with fetch (no SDK)examples/direct-api/README.md- Documentation for direct API examplesFeatures
All examples support:
BROWSER_USE_API_KEY,PROXY_HOST,PROXY_PORT)PROXY_USERNAME,PROXY_PASSWORD)Changes
README.mdto reference the new direct API examplesRelated
Slack Thread
Summary by cubic
Adds direct API examples for creating Browser Use Cloud sessions through a custom proxy without the SDK. Includes curl, Python, and TypeScript examples and a README link.
examples/direct-api/withcustom_proxy.sh,custom_proxy.py, andcustom_proxy.ts.BROWSER_USE_API_KEY,PROXY_HOST,PROXY_PORT, optionalPROXY_USERNAME,PROXY_PASSWORD.cdpUrlandliveUrl.Written for commit 481d391. Summary will update on new commits.