Sgpt

From Notes_Wiki

Home > API access to AI tools > Sgpt

To install sgpt on Rocky Linux 9.x use:

  1. Download the rpm file from https://github.com/tbckr/sgpt/releases
  2. Install using "dnf localinstall"
  3. Get OpenAI API keys via https://platform.openai.com/api-keys
  4. Configure key in .bashrc via as:
    export OPENAI_API_KEY="<key>"
  5. 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"


Home > API access to AI tools > Sgpt