I've made a simple ChatGPT terminal client using the C programming language in its standard GNU89. Currently, is only available for Unix-based systems (tested on Linux).
The tool implements OpenAI's API using libcurl to provide a conversational-like experience through an interactive terminal, but it also allows users to directly ask questions to the model directly from their default shell (bash, sh, etc.).
You can switch between models through the interactive shell and/or the client's configuration.
Requires a valid OpenAI API key. API usage may be billed.
More info: https://www.lumito.net/2023/07/20/coding-a-c-chatgpt-client-for-unix-based-systems/
Source code: https://github.com/LumitoLuma/chatgpt-client
Comments and suggestions are welcome. Thanks!
Note: As of July 29, 2023, I am unable to provide prebuilt binaries. Please download the source code and follow the build instructions. Worked for me using Debian 12 and Termux (Android). If you have any issues while building the client, ask for help below.