From b84075aa64b7f79ba06b393da9996e23fd225cde Mon Sep 17 00:00:00 2001 From: Hugo <34518954+hugobiais@users.noreply.github.com> Date: Wed, 16 Apr 2025 11:24:35 -0700 Subject: [PATCH] add explanation on how to add OPENAI_API_KEY to docs (#28) Signed-off-by: Hugo Biais --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 1a8c2460..b82e79c1 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,14 @@ Install globally: npm install -g @openai/codex ``` +Next, set your OpenAI API key as an environment variable: + +```bash +export OPENAI_API_KEY="your-api-key-here" +``` + +> **Note:** This command sets the key only for your current terminal session. To make it permanent, add the `export` line to your shell's configuration file (e.g., `~/.zshrc`). + Run interactively: ```shell