From c7f5b4f4b6bf95ee04eb969317cd1ef3eb1f916b Mon Sep 17 00:00:00 2001 From: rndstan <168363946+rndstan@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:57:32 -0400 Subject: [PATCH] Update README.md Adding Windows commands prompt instructions for the less experienced people, so they don't need to run it on a Linux VM --- computer-use-demo/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/computer-use-demo/README.md b/computer-use-demo/README.md index ad96a3d4..24d10e6e 100644 --- a/computer-use-demo/README.md +++ b/computer-use-demo/README.md @@ -34,6 +34,7 @@ Please use [this form](https://forms.gle/BT1hpBrqDPDUrCqo7) to provide feedback > [!TIP] > You can find your API key in the [Anthropic Console](https://console.anthropic.com/). +#### Mac / Linux ```bash export ANTHROPIC_API_KEY=%your_api_key% docker run \ @@ -46,6 +47,13 @@ docker run \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest ``` +#### Windows +Open your cmd in administrator mode then paste the following: +``` +set ANTHROPIC_API_KEY=[paste your Anthropic API key here (remove this message along with the square brackets)] +docker run -e ANTHROPIC_API_KEY=%ANTHROPIC_API_KEY% -v %HOMEDRIVE%%HOMEPATH%\.anthropic:/home/computeruse/.anthropic -p 5900:5900 -p 8501:8501 -p 6080:6080 -p 8080:8080 -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