anthropics / anthropic-quickstarts

A collection of projects designed to help developers quickly get started with building deployable applications using the Anthropic API
MIT License
6.35k stars 837 forks source link

Add Guide to install via Powershell or CMD #106

Open PierrunoYT opened 5 days ago

PierrunoYT commented 5 days ago

This commands are not working for Windows which you find in the description

acophisoph commented 5 days ago

For windows the simplest way is to use wsl

  1. go to command prompt for windows and type wsl --install

Then hook up the backend of docker desktop to wsl

  1. go to docker desktop
  2. go to settings (gear icon)
  3. checkmark the (Use WSL 2 Backend)

Once this is all setup you want to restart your computer

Then use this command in command prompt (everything is converted to be used by windows)

set ANTHROPIC_API_KEY=your_api_key docker run ^ -e ANTHROPIC_API_KEY=%ANTHROPIC_API_KEY% ^ -v %USERPROFILE%.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

replace your_api_key with the actual Anthropic API Key