Skip to content

Conversation

@SoyGema
Copy link

@SoyGema SoyGema commented Sep 16, 2025

Clarifies where CAI looks for the .env configuration file to help users understand the file resolution behavior.

Changes

  • Added explanation that CAI searches for .env file in current directory and upward in directory hierarchy
  • Clarified that virtual environments only contain Python packages, not application configurations
  • Updated both README.md and docs/cai_installation.md with consistent messaging
  • Added new FAQ section about .env file location

This documentation update addresses common user confusion about where to place the .env file when using CAI from
different directories.

Mery-Sanz and others added 30 commits May 20, 2025 10:01
Fix tool outputs

See merge request aliasrobotics/alias_research/cai!183
Issue 127: CAI_MAX_TURNS implemented

See merge request aliasrobotics/alias_research/cai!185
add CAI_WORKSPACE_DIR to /config

See merge request aliasrobotics/alias_research/cai!186
flag discriminator added onetool agent handoff

See merge request aliasrobotics/alias_research/cai!184
# Conflicts:
#   src/cai/cli.py
Pricing streaming

See merge request aliasrobotics/alias_research/cai!188
Support pricing in alias0

See merge request aliasrobotics/alias_research/cai!189
Robust pricing

See merge request aliasrobotics/alias_research/cai!190
vmayoral and others added 21 commits August 18, 2025 08:07
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
* Reproduce prompt injection flaw in CAI

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Mitigate prompt injection

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Add a second PoC, refactor and propose a message when guardrails are triggered

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Add CAI_GUARDRAILS and 2 additional PoCs

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Mitigate PoC 3

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Mitigate PoC 4

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Add and mitigate PoCs 5 and 6

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Add PoCs 7 to 10

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Test and mitigate PoCs 7 to 10

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Add PoCs 11 to 14

Inspired by 'Embrade The Red' research and also by 'The Month of AI bugs'

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

* Mitigate PoCs 11 to 14

Signed-off-by: Víctor Mayoral Vilches <[email protected]>

---------

Signed-off-by: Víctor Mayoral Vilches <[email protected]>
* Manual port: async sessions + friendly IDs + tolerant session commands over origin/main; add tests for interactive sessions; no push

* Add guardrail tests

---------

Co-authored-by: System Administrator <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
Signed-off-by: Víctor Mayoral Vilches <[email protected]>
* Update README.md to add note on installing python3.12-venv

* Updated README.md to move the note to FAQ
Gemini is ready to use with this configuration.
```
OPENAI_API_KEY="gemini_key"
OPENAI_BASE_URL="gemini_openai_compatible_url"
CAI_MODEL=openai/gemini-2.5-pro
```
@SoyGema SoyGema added documentation Improvements or additions to documentation configuration Config problems .env , setup , install labels Sep 16, 2025
@vmayoral vmayoral closed this Oct 14, 2025
@SoyGema SoyGema deleted the env_config_docs branch October 22, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration Config problems .env , setup , install documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.