narrator icon indicating copy to clipboard operation
narrator copied to clipboard

API Keys

Open GreenerX opened this issue 1 year ago • 1 comments

Where can I add my API keys so that I don't need to export them every time I launch the project?

GreenerX avatar Nov 25 '23 17:11 GreenerX

Put it an .env file and make sure it gets loaded by either:

  • following https://stackoverflow.com/a/61029741/7365866
  • using a more popular tool (Poetry), there's a guide: https://www.ianwootten.co.uk/2022/02/18/how-to-use-env-files-with-poetry/:
  • using pdm and adding this to your pdm file:
[tool.pdm.scripts]
_.env_file = ".env"

There are other ways, but these would be the most popular (most popular first)

Example .env:

ELEVEN_API_KEY=
ELEVEN_VOICE_ID=

ben-xD avatar Nov 25 '23 22:11 ben-xD