Skip to content

Using Pythagora with your own OpenAI key

Senko Rašić edited this page Mar 5, 2024 · 10 revisions

If you have your own OpenAI API key, you can easily use it with Pythagora VisualStudio Code extension.

NOTE: Your OpenAI API key must have access to GPT4 model, which means you need to make at least $5 payment to OpenAI to activate it. This is separate from your ChatGPT Plus subscription (if you have one). Read more here: https://bit.ly/openai-how-can-i-access-gpt-4

Here's how you can use Pythagora VisualStudio Code extension with your own OpenAI API key:

  1. Close VisualStudio Code
  2. Edit .env file in your GPT Pilot installation folder to set OPENAI_KEY and OPENAI_ENDPOINT to correct values
  3. Open VisualStudio Code, start Pythagora, go to settings and you should see the message You're using your own OpenAI key
  4. That's it!