A zero-shot AI assistant in the terminal, backended by the GROQ AI, for blazing fast responses. The free API key from GROQ can be obtained here
To install protai, simply run the following command in your terminal:
pip install --upgrade protaiTo use this application, simply run the following command in your terminal:
protai <query>For example:
Note
On first run you will be prompted to enter your free Groq AI API key. You can get one at the Groq AI website.
Important
You need to have a valid Groq AI API key to use this application.
The application uses the following models:
-
Instant Mode:
llama-3.3-70b-versatilefor fast, zero-shot inference. -
Interactive Mode:
openai/gpt-oss-120bfor multi-turn, zero-shot inference.
To develop for this application, clone the repository and install dependencies using the provided scripts:
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
./activate_venv.shor
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
.\activate_venv.ps1To generate the wheel and upload to PyPI, we use the following command:
python setup.py uploadImportant
Only the current maintainer has access to the PyPI repository API key. If you wish to contribute, please fork the repository and submit a pull request.
protai/protai.py: CLI entry, argument parsing, main logic, reply formatting, error handling.protai/auth.py: API key storage, retrieval, validation, user prompts (usesprompt-toolkit).protai/mygroq.py: GROQ API wrapper (usesrequestsandorjson).protai/texteffects.py: Terminal output formatting.protai/ismarkdown.py: Markdown detection for replies.protai/__init__.pyandVERSION: Version management.
- Python 3.9 or later 🐍
- Groq AI API key (available at Groq AI website)
Note
- Python 3.9 or later 🐍
- Groq AI API key (available at Groq AI website)
Contributions are welcome! If you'd like to contribute to this application, please fork the repository and submit a pull request.
Warning
WSL2 is not supported for development. Please use a native Linux or Windows environment. There are issues with keyring access in WSL2.
This application is licensed under the MIT License. See LICENSE for details.
