Skip to content
Farkhod Sadykov edited this page Feb 2, 2024 · 24 revisions

Changing API Key

If you need to change your API key, you can edit config file located in ~/.config/shell_gpt/.sgptrc. Change line with OPENAI_API_KEY.

429 Too many requests

If you are getting HTTPError 429 Client Error Too Many Requests for url: https://api.openai.com/v1/chat/completions

ChatGPT API and ChatGPT Plus subscription are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only. The ChatGPT API is not available for free.

Compiled ShellGPT binary

You can build sgpt into a single binary file using pyinstaller. It will include all dependencies along with the Python interpreter, dynamically linked libraries, and the app into a single package.

git clone https://github.com/TheR1D/shell_gpt.git
cd shell_gpt
python3 -m venv venv
source venv/bin/activate
pip install pyinstaller
pip install -e .
cd sgpt
pyinstaller --onefile app.py

This process generates a "dist" directory containing the binary file "app" that you can execute with ./app --help.

Please note:

  • The binary will be compatible with the operating system and architecture you compile it on. For example, if you compile your Python script into a binary on a Linux machine, the resulting binary will only be compatible with Linux.
  • This method may lead to significant performance degradation.
Clone this wiki locally