Add BrowseCLI in a Daytona sandbox example (Verified Browserbase browser over CDP)#5128
Draft
shrey150 wants to merge 1 commit into
Draft
Add BrowseCLI in a Daytona sandbox example (Verified Browserbase browser over CDP)#5128shrey150 wants to merge 1 commit into
shrey150 wants to merge 1 commit into
Conversation
…ser over CDP) Runs the agent loop in a Daytona Sandbox and connects out over CDP to a Verified Browserbase browser (residential IP, anti-bot, CAPTCHA solving) — the hardened browser layer a sandbox lacks. Mirrors the OpenAI x Daytona computer-use cookbook pattern. Reaching Browserbase needs Tier 3/4 egress OR the merged domain-allowlist (daytonaio/sandbox-network-whitelist#117) deployed to Daytona's proxies. Signed-off-by: Shrey Pandya <shrey@browserbase.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.
What
Adds
examples/python/browsecli-in-daytona/— a Python example that runs youragent loop inside a Daytona Sandbox and connects out over CDP to a Verified
Browserbase browser (residential IP, anti-bot fingerprint hardening, automatic
CAPTCHA solving). That hardened browser is the layer a sandbox lacks: a sandbox's
in-sandbox Chromium is immature and browses from a datacenter IP that
Cloudflare / Akamai / DataDome block on sight.
The example keeps the browser out of the sandbox — the sandbox runs the
browseCLIand drives a remote Browserbase session. This mirrors the
OpenAI × Daytona computer-use cookbook
pattern, but uses Browserbase as the anti-bot / CAPTCHA browser layer rather than
the sandbox's local desktop browser.
Files
examples/python/browsecli-in-daytona/:main.py— builds the sandbox image declaratively (Image.debian_slim+ Node 20 + thebrowseCLI; no Chrome installed), creates the Sandbox, uploads + runs the demo, tears down. Browserbase creds are injected per-exec, never baked into the image.browsecli-demo.sh— creates a Verified Browserbase session (--proxies --verified --solve-captchas), opens a Cloudflare-protected page over CDP, and asserts it reached real content instead of a challenge wall.requirements.txt,.env.example,README.md.Prerequisites (called out in the README)
daytonaio/sandbox-network-whitelist#117, merged) deployed to Daytona's Envoy proxies. The IP-levelnetworkAllowListdoes not bypass the SNI/domain filter.The Daytona SDK build/exec flow in this example is verified on real Daytona
infrastructure; egress is the only gate.
Note
Opening this as a draft — the egress allowlist (#117) is merged but the
rollout to Daytona's proxies gates the full end-to-end run on lower tiers. Happy
to adjust placement/conventions per maintainer preference.
Summary by cubic
Adds
examples/python/browsecli-in-daytona/: a Python example that runs an agent in a Daytona Sandbox and drives a Verified Browserbase browser over CDP via thebrowseCLI. Enables reliable browsing of protected sites from the sandbox without installing Chrome, using residential IP, anti-bot hardening, and auto CAPTCHA solving.New Features
browse; no Chrome in-sandbox.--proxies --verified --solve-captchas), opens a Cloudflare-protected page over CDP, and checks for real content.BROWSERBASE_API_KEY), then sandbox teardown.README.md,.env.example, andrequirements.txt(daytona>=0.187.0).Migration
--verified.daytonaio/sandbox-network-whitelist#117.Written for commit e6d4410. Summary will update on new commits.