YGKA is an advanced ChatGPT client for shell that acts as Your Genius Knowledgeable Assistant. YGKA supports Unix/Linux pipelines and requires no setting up of tokens or API keys. Furthermore, if you want to use an OpenAI API key, you can easily configure it.
To begin using YGKA, install it with pip:
pip install ygkaOnce you've installed YGKA, you can start using it right away, like following.
To execute a command, use the following syntax:
ygka "<your command here>"For example, to ask "hello?" using YGKA, you can use the following command:
ygka "hello?"You can also use YGKA with Unix pipeline. For example, to ask "what is this file?" while viewing the contents of a text file, you can use the following command:
cat textfile.txt | ygka "what is this file?"By default, YGKA is configured to use the reverse-engineered ChatGPT client and retrieve login information from your browser, so you don't need to configure anything to use YGKA. However, for those who want to use different models with an OpenAI API Key, you can configure it as follows:
~/.ygka_config.json file as follows:{
...
"language_model": <language model of your preference>, //"official_chatgpt"
"openai_api_key": <your OpenAI API key>
}Here, you can specify the language model of your preference and add your OpenAI API key.
Feel free to contribute to YGKA by adding more functionality or fixing bugs.