Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for setting API Key in environment #29

Open
DanielKehoe opened this issue Nov 20, 2024 · 2 comments
Open

Add instructions for setting API Key in environment #29

DanielKehoe opened this issue Nov 20, 2024 · 2 comments

Comments

@DanielKehoe
Copy link

I'd like to add the Anthropic API key to my environment so I don't need to paste it into the interface each time I launch the application. Can you add instructions to the README?

@Joseph-M-Cook
Copy link

I noticed if I did not put my Anthropic API key into the GUI, I was still able to run the application and make authenticated requests with my credentials.

This is either because:

  • The API key is cached after entered into the GUI once
  • I previously set my environment variable for ANTHROPIC_API_KEY on my machine.

I would suggest trying:

MacOS/Linux:
export ANTHROPIC_API_KEY='your-api-key-here'

Windows:
setx ANTHROPIC_API_KEY "your-api-key-here"

https://docs.anthropic.com/en/docs/initial-setup

@Joseph-M-Cook
Copy link

Just opened up a pull request to include this in the documentation. Thanks for opening this @DanielKehoe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants