diff --git a/README.md b/README.md index abb505a1..7b3f1325 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,13 @@ Next, set your OpenAI API key as an environment variable: 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`). + > **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`). + > + > **Tip:** You can also place your API key into a `.env` file at the root of your project: + > ```env + > OPENAI_API_KEY=your-api-key-here + > ``` + > The CLI will automatically load variables from `.env` (via `dotenv/config`). Run interactively: