Sgpt
From Notes_Wiki
Home > API access to AI tools > Sgpt
To install sgpt on Rocky Linux 9.x use:
- Download the rpm file from https://github.com/tbckr/sgpt/releases
- Install using "dnf localinstall"
- Get OpenAI API keys via https://platform.openai.com/api-keys
- Configure key in .bashrc via as:
- export OPENAI_API_KEY="<key>"
- Open a new terminal and search with:
- sgpt "mass of sun"
- sgpt sh --execute "list all files in current directory sorted by modification time in desecening order"