How to get a OpenAI API key

Checked by hand 2026-10-30

  1. Click Create new secret key.
  2. Type a name for the key and pick the project it is for.
  3. Open Expiration and pick how long the key should last. Create secret key stays greyed out until you do.
  4. Leave Permissions on All, or limit them, then click Create secret key. The key is shown only once, in the next box.

What you end up with

  • OPENAI_API_KEY

Do it in one click with Footgun Keys