From af4e2afff664ae981512d3363265cde489038cb4 Mon Sep 17 00:00:00 2001 From: Andrew Edstrom Date: Tue, 22 Oct 2024 09:34:25 -0600 Subject: [PATCH 1/5] Add note about where to find the app for Vertex after it starts up --- computer-use-demo/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index 8ef5cbc9..b57d2144 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -114,6 +114,7 @@ docker run \ -p 8080:8080 \ -it computer-use-demo ``` +Once the app starts up, you should see a message like `✨ Computer Use Demo is ready!`, after which the demo app will be available at http://localhost:8080. This example shows how to use the Google Cloud Application Default Credentials to authenticate with Vertex. From ce25e7845007bfd5b37d39ebd1c8cba5d851485e Mon Sep 17 00:00:00 2001 From: Andrew Edstrom Date: Tue, 22 Oct 2024 09:40:16 -0600 Subject: [PATCH 2/5] Move instructions on accessing the app to the end of the quickstart section --- computer-use-demo/README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index b57d2144..2a350776 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -43,16 +43,6 @@ docker run \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest ``` -Once the container is running, open your browser to [http://localhost:8080](http://localhost:8080) to access the combined interface that includes both the agent chat and desktop view. - -The container stores settings like API key and custom system prompt in `~/.anthropic/`. Mount this directory to persist these settings between container runs. - -Alternative access points: - -- Streamlit interface only: [http://localhost:8501](http://localhost:8501) -- Desktop view only: [http://localhost:6080/vnc.html](http://localhost:6080/vnc.html) -- Direct VNC connection: `vnc://localhost:5900` (for VNC clients) - ### Bedrock You'll need to pass in AWS credentials with appropriate permissions to use Claude on Bedrock. @@ -114,12 +104,23 @@ docker run \ -p 8080:8080 \ -it computer-use-demo ``` -Once the app starts up, you should see a message like `✨ Computer Use Demo is ready!`, after which the demo app will be available at http://localhost:8080. This example shows how to use the Google Cloud Application Default Credentials to authenticate with Vertex. You can also set `GOOGLE_APPLICATION_CREDENTIALS` to use an arbitrary credential file, see the [Google Cloud Authentication documentation](https://cloud.google.com/docs/authentication/application-default-credentials#GAC) for more details. +### Accessing the demo app + +Once the container is running, open your browser to [http://localhost:8080](http://localhost:8080) to access the combined interface that includes both the agent chat and desktop view. + +The container stores settings like API key and custom system prompt in `~/.anthropic/`. Mount this directory to persist these settings between container runs. + +Alternative access points: + +- Streamlit interface only: [http://localhost:8501](http://localhost:8501) +- Desktop view only: [http://localhost:6080/vnc.html](http://localhost:6080/vnc.html) +- Direct VNC connection: `vnc://localhost:5900` (for VNC clients) + ## Screen size Environment variables `WIDTH` and `HEIGHT` can be used to set the screen size. For example: From ccf4fdd36a1a56696daaa20a0a1706527ba6f0c7 Mon Sep 17 00:00:00 2001 From: Andrew Edstrom Date: Tue, 22 Oct 2024 10:00:01 -0600 Subject: [PATCH 3/5] dummy change to trigger CI --- computer-use-demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index 2a350776..a99414dd 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -113,7 +113,7 @@ You can also set `GOOGLE_APPLICATION_CREDENTIALS` to use an arbitrary credential Once the container is running, open your browser to [http://localhost:8080](http://localhost:8080) to access the combined interface that includes both the agent chat and desktop view. -The container stores settings like API key and custom system prompt in `~/.anthropic/`. Mount this directory to persist these settings between container runs. +The container stores settings like the API key and custom system prompt in `~/.anthropic/`. Mount this directory to persist these settings between container runs. Alternative access points: From 854b50b899a51b363f2adb58603ca547867995c4 Mon Sep 17 00:00:00 2001 From: Andrew Edstrom Date: Tue, 22 Oct 2024 10:04:18 -0600 Subject: [PATCH 4/5] Add link to section below --- computer-use-demo/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index a99414dd..4216aa2e 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -43,6 +43,8 @@ docker run \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest ``` +Once the container is running, see the [Accessing the demo app](#accessing-the-demo-app) section below for instructions on how to connect to the interface. + ### Bedrock You'll need to pass in AWS credentials with appropriate permissions to use Claude on Bedrock. @@ -52,7 +54,7 @@ You have a few options for authenticating with Bedrock. See the [boto3 documenta #### Option 1: (suggested) Use the host's AWS credentials file and AWS profile ```bash -export AWS_PROFILE= +export AWS_PROFILE= docker run \ -e API_PROVIDER=bedrock \ -e AWS_PROFILE=$AWS_PROFILE \ @@ -65,6 +67,8 @@ docker run \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest ``` +Once the container is running, see the [Accessing the demo app](#accessing-the-demo-app) section below for instructions on how to connect to the interface. + #### Option 2: Use an access key and secret ```bash @@ -84,6 +88,8 @@ docker run \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest ``` +Once the container is running, see the [Accessing the demo app](#accessing-the-demo-app) section below for instructions on how to connect to the interface. + ### Vertex You'll need to pass in Google Cloud credentials with appropriate permissions to use Claude on Vertex. @@ -105,6 +111,8 @@ docker run \ -it computer-use-demo ``` +Once the container is running, see the [Accessing the demo app](#accessing-the-demo-app) section below for instructions on how to connect to the interface. + This example shows how to use the Google Cloud Application Default Credentials to authenticate with Vertex. You can also set `GOOGLE_APPLICATION_CREDENTIALS` to use an arbitrary credential file, see the [Google Cloud Authentication documentation](https://cloud.google.com/docs/authentication/application-default-credentials#GAC) for more details. From 2bb33ea98c1333da6dc64262857d3caa190c4424 Mon Sep 17 00:00:00 2001 From: Andrew Edstrom Date: Tue, 22 Oct 2024 10:04:59 -0600 Subject: [PATCH 5/5] Fix AWS profile --- computer-use-demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index 4216aa2e..a7d09e80 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -54,7 +54,7 @@ You have a few options for authenticating with Bedrock. See the [boto3 documenta #### Option 1: (suggested) Use the host's AWS credentials file and AWS profile ```bash -export AWS_PROFILE= +export AWS_PROFILE= docker run \ -e API_PROVIDER=bedrock \ -e AWS_PROFILE=$AWS_PROFILE \