add explanation on how to add OPENAI_API_KEY to docs (#28)

Signed-off-by: Hugo Biais <hugobiais75@gmail.com>
This commit is contained in:
Hugo
2025-04-16 11:24:35 -07:00
committed by GitHub
parent 94889dd76e
commit b84075aa64

View File

@@ -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