From 9cefc9fe2354d677b2de7b9196063803d5986580 Mon Sep 17 00:00:00 2001 From: SoyGema Date: Tue, 16 Sep 2025 12:06:09 +0200 Subject: [PATCH] messages .env file --- README.md | 12 ++++++++++++ docs/cai_installation.md | 2 ++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 47e7839e..26251b57 100644 --- a/README.md +++ b/README.md @@ -385,6 +385,8 @@ cai CAI leverages the `.env` file to load configuration at launch. To facilitate the setup, the repo provides an exemplary [`.env.example`](.env.example) file provides a template for configuring CAI's setup and your LLM API keys to work with desired LLM models. +**File Location:** CAI looks for the `.env` file in the current directory where you execute the command, and if it doesn't find it, it searches upward in the directory hierarchy. Since you run CAI from some subdirectory of `/Users/me/Documents/`, it finds the file `/Users/me/Documents/.env`. The virtual environment only contains the installed Python packages, not application configurations like `.env` files. + :warning: Important: CAI does NOT provide API keys for any model by default. Don't ask us to provide keys, use your own or host your own models. @@ -704,6 +706,8 @@ From here on, type on `CAI` and start your security exercise. Best way to learn ### Environment Variables For using private models, you are given a [`.env.example`](.env.example) file. Copy it and rename it as `.env`. Fill in your corresponding API keys, and you are ready to use CAI. + +**File Location:** CAI looks for the `.env` file in the current directory where you execute the command. If you run CAI from some subdirectory of `/Users/me/Documents/`, it finds the file `/Users/me/Documents/.env`. The virtual environment only contains the installed Python packages, not application configurations like `.env` files.
List of Environment Variables @@ -875,6 +879,14 @@ See the following issues that treat this topic in more detail:
+
Where does CAI look for the .env file? + +CAI looks for the .env file in the current directory where you execute the command. If you run CAI from some subdirectory of /Users/me/Documents/, it finds the file /Users/me/Documents/.env + +The virtual environment only contains the installed Python packages, not application configurations like .env files. + +
+
Where are all the caiextensions? See [all caiextensions](https://gitlab.com/aliasrobotics/alias_research/caiextensions) diff --git a/docs/cai_installation.md b/docs/cai_installation.md index 84de3bb5..8a6ee354 100644 --- a/docs/cai_installation.md +++ b/docs/cai_installation.md @@ -134,6 +134,8 @@ cai CAI leverages the `.env` file to load configuration at launch. To facilitate the setup, the repo provides an exemplary `.env.example` file provides a template for configuring CAI's setup and your LLM API keys to work with desired LLM models. +**File Location:** CAI looks for the `.env` file in the current directory where you execute the command. If you run CAI from some subdirectory of `/Users/me/Documents/`, it finds the file `/Users/me/Documents/.env`. The virtual environment only contains the installed Python packages, not application configurations like `.env` files. + ```bash OPENAI_API_KEY="sk-1234" # OPENAI_API_KEY MUST BE FILLED-IN.