Skip to content

Commit

Permalink
Document leak risk and workarounds
Browse files Browse the repository at this point in the history
Issue: #14
  • Loading branch information
dspinellis committed Mar 6, 2024
1 parent 45934fe commit cf48adb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ the program's name appears to The _ai-cli_ library as `rlwrap`.
* To obtain AI help, enter a natural language prompt and press `^X-a` (Ctrl-X followed by a)
in the (default) _Emacs_ key binding mode or `V` if you have configured
_vi_ key bindings.
* Keep in mind that by default _ai-cli-lib_ is sending previously entered
commands as context to the model engine you are using.
This may leak secrets that you enter, for example by setting an environment
variable to contain a key or by configuring a database password.
To avoid this problem configure the `context` setting to zero,
or use the command-line program's offered method to avoid storing
an entered line.
For instance, in _bash_ you can do this by starting the line with a
space character.


### Note for macOS users
Note that macOS ships with the _editline_ line-editing library,
Expand Down

0 comments on commit cf48adb

Please sign in to comment.