stagehand icon indicating copy to clipboard operation
stagehand copied to clipboard

Is there python sdk for stagehand?

Open agn-7 opened this issue 11 months ago • 18 comments

Hi there,

I was looking for the python SDK for the Stagehand, for example, using the observe() method in a python project. but apparently, that sdk-python repo is a SDK for browserbase not stagehand, am I right?

agn-7 avatar Jan 09 '25 12:01 agn-7

Hey @agn-7 we are working on the python SDK for stagehand. Stay tuned, please. If you mean this https://github.com/browserbase/sdk-python then yes, thats for browserbase, not for stagehand.

filip-michalsky avatar Jan 09 '25 14:01 filip-michalsky

@filip-michalsky great. thank you for the instant response.

agn-7 avatar Jan 09 '25 16:01 agn-7

Hey guys, thanks for the hard work! Any updates/ETA on the status of the stagehand python SDK? Currently, this is the only thing stopping me and my team from using it, have heard similar from a few other people too.

Thanks!

gitanon112 avatar Jan 23 '25 19:01 gitanon112

what's this? is it a third-party python implementation of stagehand?

https://pypi.org/project/stagehand-py/

kavinstewart avatar Jan 24 '25 00:01 kavinstewart

@kavinstewart that's not third-party, it's work in progress on our end! Not quite ready for prime time, yet, though.

@gitanon112 I don't have an exact ETA update on it, as there are a few dependencies to mirror the functionality of the TS stagehand library. It's great feedback and a signal from your guys to follow up here. We will communicate as soon as it's ready.

filip-michalsky avatar Jan 24 '25 01:01 filip-michalsky

Thank you very much! Good luck and great work :)

gitanon112 avatar Jan 24 '25 22:01 gitanon112

+1

tylerdurden4285 avatar Jan 26 '25 07:01 tylerdurden4285

+1!

rtolsma avatar Jan 26 '25 22:01 rtolsma

+1

tfbecker avatar Feb 05 '25 11:02 tfbecker

looking forward it

darcyc-chen avatar Feb 13 '25 00:02 darcyc-chen

+1

aguynamedben avatar Feb 21 '25 07:02 aguynamedben

+1

jhoetter avatar Mar 04 '25 10:03 jhoetter

is it ready now?

algo-rhythm10 avatar Mar 15 '25 10:03 algo-rhythm10

Hi @filip-michalsky, any update? Is this ready now?? https://pypi.org/project/stagehand-py/

rahimnadan avatar Mar 24 '25 07:03 rahimnadan

+1

mjiang4 avatar Mar 31 '25 20:03 mjiang4

Hey all, thank you for your patience. We launched the Python SDK for stagehand via waitlist today - you can sign on the waitlist here:

https://docs.google.com/forms/d/e/1FAIpQLSeq1gJo3fMeTr_WT-eErRdK-4VcPZK-oVpaBHcbd_2M3Hi1Wg/viewform

filip-michalsky avatar Mar 31 '25 20:03 filip-michalsky

Is the waitlist form still active, I just submitted a response @filip-michalsky

OluwaFavour avatar Apr 04 '25 15:04 OluwaFavour

+1 submitted

tranlybuu avatar Apr 18 '25 02:04 tranlybuu

following -- is the WL still open?

rayli09 avatar May 14 '25 06:05 rayli09

hello, what about the python sdk? is it ready? @filip-michalsky

YossefAboukrat avatar May 29 '25 11:05 YossefAboukrat

There are issues in using Stagehand Python SDK. It is showing missing library.i am in python environment but it is asking me to install uv environment. ImportError: stagehand-py package not found, please run uv add stagehand-py. from crewai import Agent, Task, Crew from crewai_tools import StagehandTool from stagehand.schemas import AvailableModel

Initialize the tool with your API keys

stagehand_tool = StagehandTool( api_key="bb_live_TpO7uzUJ7hCeSLReYv6xnEuCidY", project_id="cd5c2954", model_api_key="sk-proj-", model_name=AvailableModel.GPT_4O_MINI, dom_settle_timeout_ms=5000, # Wait longer for DOM to settle headless=False, # Run browser in headless mode self_heal=True, # Attempt to recover from errors wait_for_captcha_solves=True, # Wait for CAPTCHA solving verbose=1, # Control logging verbosity (0-3) )

This it self givind error

bibinkunjumon2020 avatar May 30 '25 05:05 bibinkunjumon2020

As the stagehand python SDK has been released, I close this issue.

agn-7 avatar May 30 '25 09:05 agn-7

Hey @agn-7, you linked to the Browserbase Python SDK. Has the Stagehand Python SDK actually been released yet?

JoeDo avatar May 30 '25 18:05 JoeDo

@JoeDo Ohh, I was wrong!

agn-7 avatar May 31 '25 15:05 agn-7

AWS has released a package that looks like Stagehand, named nova-act

agn-7 avatar May 31 '25 15:05 agn-7

@filip-michalsky poking around the SDK, is local mode not supported? Seeing validations that a browserbase API, server URL, etc. are required to initialize.

arvindsaripalli avatar Jun 09 '25 15:06 arvindsaripalli

+1

ahmed-z0 avatar Jun 16 '25 04:06 ahmed-z0

Hi All, the python SDK is now released and GA!

please pip install stagehand

Looking forward to your feedback :)

filip-michalsky avatar Jun 17 '25 16:06 filip-michalsky