Skip to content

Commit

Permalink
Add a NOTE explaining to use cat in sub terminal for key export
Browse files Browse the repository at this point in the history
This reduces the chance of leaking the OpenAI key through the shell
history or shell rc files.
  • Loading branch information
Peter Vandenabeele committed Apr 12, 2023
1 parent 2b8935b commit dabc355
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ You can read more about the project in the [blog post](https://medium.com/@thiag
```bash
export KOPYLOT_AUTH_TOKEN=your_api_key
```

NOTE: If you want to avoid having the key in your .bashrc, .oh-my-zsh/custom dir,
or your .bash_history or .zsh_history, a possible trick is to do something like this:

```bash
export KOPYLOT_AUTH_TOKEN=$(cat ../../../keys/openai)
```

3. Install KoPylot using pip:
```
pip install kopylot
Expand Down

0 comments on commit dabc355

Please sign in to comment.