Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

docs: mention dotenv support in Quickstart (#262)

Dan Lewis603def0c7ad1
diff --git a/README.md b/README.md
index abb505a18f..7b3f1325d4 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: