Skip to content

Settings Page

To access the plugin settings, log into your control panel and visit Settings > Sidekick.

Depending on your preference, you can alternatively use the PHP config file to manage settings.

OpenAI API Key

Sidekick requires an OpenAI API key to function. You can obtain one from your OpenAI account.

Once you have an API key, enter it into the OpenAI API Key field and save the settings.

OpenAI API key field

Use an environment variable!

For security reasons, it is very highly recommended to store your API key in an environment variable. (see below)

Using Environment Variables

It's recommended to use an environment variable for your API key to enhance security and portability.

  1. Add the following to your .env file:
dotenv
OPENAI_API_KEY="your-openai-api-key"
  1. Then simply reference the environment variable in the settings field using the $ syntax:
OpenAI API key field using an environment variable

That's it! After saving the settings, Sidekick will use your API key via the environment variable.