You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace `https://your-cloud-run-service-url.run.app/` with the actual URL of your deployed Cloud Run service.
142
-
- Replace `your_api_server_key` with the actual API server key.
143
-
- If `--env` is not specified, it defaults to `cloud-run`, so providing `--api_server` is sufficient to use this mode.
144
-
-**Note:** When using the Cloud Run environment, the script will print a link to a live stream of screenshots, allowing you to follow the agent's actions in real-time.
145
-
146
126
## Agent CLI
147
127
148
128
The `main.py` script is the command-line interface (CLI) for running the browser agent.
@@ -152,9 +132,7 @@ The `main.py` script is the command-line interface (CLI) for running the browser
|`--query`| The natural language query for the browser agent to execute. | Yes | N/A | All |
155
-
|`--env`| The computer use environment to use. Must be one of the following: `cloud-run`, `playwright`, or `browserbase`| No |`cloud-run`| All |
156
-
|`--api_server`| The URL of the API Server. | Yes if --env is `cloud-run`| N/A |`cloud-run`|
157
-
|`--api_server_key`| The API key for the API Server. If not provided, the script will try to use the `API_SERVER_KEY` environment variable. | No | None (tries `API_SERVER_KEY` env var) |`cloud-run`|
135
+
|`--env`| The computer use environment to use. Must be one of the following: `playwright`, or `browserbase`| No | N/A | All |
158
136
|`--initial_url`| The initial URL to load when the browser starts. | No |https://www.google.com|`playwright`|
159
137
|`--highlight_mouse`| If specified, the agent will attempt to highlight the mouse cursor's position in the screenshots. This is useful for visual debugging. | No | False (not highlighted) |`playwright`|
160
138
@@ -163,7 +141,6 @@ The `main.py` script is the command-line interface (CLI) for running the browser
163
141
| Variable | Description | Required |
164
142
|-|-|-|
165
143
| GEMINI_API_KEY | Your API key for the Gemini model. | Yes |
166
-
| API_SERVER_KEY | The API key for your deployed Cloud Run API server, if it's configured to require one. Can also be provided via the `--api_server_key` argument. | Conditionally (if API server requires it and not passed via CLI) |
167
144
| BROWSERBASE_API_KEY | Your API key for Browserbase. | Yes (when using the browserbase environment) |
168
145
| BROWSERBASE_PROJECT_ID | Your Project ID for Browserbase. | Yes (when using the browserbase environment) |
169
146
| HUD_API_KEY | Your API key for hud. Required for running evaluations with hud_eval.py. | Yes (when using the hud enviornment or running hud_eval.py) |
0 commit comments