Get an OpenAI API Key

Follow these steps to create and safely store an OpenAI API key that you can use with Sidebar AI Chat.

1. Create or sign in to your OpenAI account

Visit the OpenAI platform signup page and create an account, or sign in with your existing credentials. The platform account is where you manage API access, billing, and usage.

2. Review billing status

OpenAI requires an active payment method for most API access. Go to Billing & usage to add a credit card, manage spend limits, and review usage tiers. Free trial credits may be available, but ensure your payment details are up to date before generating keys you plan to use in production.

3. Generate a new API key

Navigate to the API keys dashboard and select Create new secret key. Choose a descriptive name so you can identify the key later (for example, “Sidebar AI Chat”). OpenAI will show the key only once—copy it before closing the dialog.

4. Store the key securely

Treat the key like a password. Paste it into the provider settings inside Sidebar AI Chat, and store a backup in a secure secrets manager or encrypted notes app. Avoid sharing the key in support tickets, screenshots, or version control.

5. Rotate keys when needed

If the key is exposed or you no longer use it, return to the API keys page to revoke it and create a replacement. Update Sidebar AI Chat with the new key immediately to prevent downtime.

Additional resources