@@ -93,7 +93,11 @@ git clone https://github.com/browserbase/stagehand-python.git
93
93
cd stagehand-python
94
94
95
95
# Install in editable mode with development dependencies
96
- pip install -e .[dev]
96
+ pip install -e " .[dev]"
97
+
98
+ # ## INSTRUCTION TO BE REMOVED BEFORE RELEASE
99
+ # install google cua
100
+ pip install temp/path-to-the-cua-wheel.wheel
97
101
```
98
102
99
103
## Requirements
@@ -111,21 +115,21 @@ The main dependencies include:
111
115
112
116
### Development Dependencies
113
117
114
- The development dependencies are automatically installed when using ` pip install -e .[dev] ` and include:
118
+ The development dependencies are automatically installed when using ` pip install -e " .[dev]" ` and include:
115
119
- pytest, pytest-asyncio, pytest-mock, pytest-cov (testing)
116
120
- black, isort, ruff (code formatting and linting)
117
121
- mypy (type checking)
118
122
- rich (enhanced terminal output)
119
123
120
124
## Environment Variables
121
125
122
- Before running your script, set the following environment variables:
126
+ Before running your script, copy ` .env.example ` to ` .env. ` set the following environment variables:
123
127
124
128
``` bash
125
- export BROWSERBASE_API_KEY=" your-api-key"
126
- export BROWSERBASE_PROJECT_ID=" your-project-id"
129
+ export BROWSERBASE_API_KEY=" your-api-key" # if running remotely
130
+ export BROWSERBASE_PROJECT_ID=" your-project-id" # if running remotely
127
131
export MODEL_API_KEY=" your-openai-api-key" # or your preferred model's API key
128
- export STAGEHAND_API_URL=" url-of-stagehand-server"
132
+ export STAGEHAND_API_URL=" url-of-stagehand-server" # if running remotely
129
133
export STAGEHAND_ENV=" BROWSERBASE" # or "LOCAL" to run Stagehand locally
130
134
```
131
135
0 commit comments