Skip to content

Commit 169cb5c

Browse files
committed
Remove the Cloud Run integration.
1 parent f7749b8 commit 169cb5c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7
-9512
lines changed

README.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ python main.py --query "Go to Google and type 'Hello World' into the search bar"
8989

9090
**Available Environments:**
9191

92-
- `cloud-run`: Connects to a deployed Cloud Run service (default).
9392
- `playwright`: Runs the browser locally using Playwright.
9493
- `browserbase`: Connects to a Browserbase instance.
9594
- `hud`: Integrates with hud's browser environment.
@@ -124,25 +123,6 @@ Runs the agent using hud's browser environment. This is the same environment use
124123
python main.py --query="Go to Google and type 'Hello World' into the search bar" --env="hud"
125124
```
126125

127-
**Cloud Run**
128-
129-
Connects to an [API Server](./apiserver/) deployed on Cloud Run for computer use.
130-
You should use the simple one-click deploy setup from AI Studio to obtain the API server address, as well as the API server key.
131-
132-
1. Run the sample code against your Cloud Run API server:
133-
134-
```bash
135-
python main.py \
136-
--query="Go to Google and type 'Hello World' into the search bar" \
137-
--api_server="https://your-cloud-run-service-url.run.app/" \
138-
--api_server_key="your_api_server_key"
139-
```
140-
141-
- 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-
146126
## Agent CLI
147127

148128
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
152132
| Argument | Description | Required | Default | Supported Environment(s) |
153133
|-|-|-|-|-|
154134
| `--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 |
158136
| `--initial_url` | The initial URL to load when the browser starts. | No | https://www.google.com | `playwright` |
159137
| `--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` |
160138

@@ -163,7 +141,6 @@ The `main.py` script is the command-line interface (CLI) for running the browser
163141
| Variable | Description | Required |
164142
|-|-|-|
165143
| 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) |
167144
| BROWSERBASE_API_KEY | Your API key for Browserbase. | Yes (when using the browserbase environment) |
168145
| BROWSERBASE_PROJECT_ID | Your Project ID for Browserbase. | Yes (when using the browserbase environment) |
169146
| 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) |
@@ -196,16 +173,4 @@ python hud_eval.py --taskset OSWorld-Verified --parallel --max_concurrent 50
196173

197174
For an in-depth explanation of how the system works, please see the instructions document available here:
198175

199-
https://docs.google.com/document/d/1jTWQPVCIso7mo5SbQCn2DKZXWFlL_g3D2f-JOrZa1do/edit?tab=t.0
200-
201-
## Advanced Topics
202-
203-
### Cloud Run
204-
205-
Besides the AIS Cloud Run integration, you can also manually deploy the Cloud Run API server yourself:
206-
207-
```bash
208-
gcloud run deploy computer-use-api --image=us-docker.pkg.dev/cloudrun/solutions/computer-use/apiserver:latest --no-invoker-iam-check
209-
```
210-
211-
Warning: the command above deploys a service that allows unauthenticated invocations.
176+
https://docs.google.com/document/d/1jTWQPVCIso7mo5SbQCn2DKZXWFlL_g3D2f-JOrZa1do/edit?tab=t.0

apiserver/.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

apiserver/.gcloudignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

apiserver/Dockerfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

apiserver/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

apiserver/app.py

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)