A Modern Command-Line Tool for Interacting with Grog LLMs
pipx install groq-toolpipx install git+https://github.com/daisseur/groqcli.gitpip install groq-toolgit clone https://github.com/daisseur/groqcli.git
cd groqcli
pip install .groqcli chat "Explain black holes in 3 points"groqcli chat my_file.txtgroqcli chat "Transform this script into TypeScript" --system formatScriptgroqcli chat --last 1groqcli chat --save-session myfile.groqgroqcli chat --load-session myfile.groqCompatible with
--last(it does not save the next answer in another timestamp file)
groqcli: Run the command-line toolgroqcli --system <prompt>: Use a predefined system promptgroqcli --save: Save the current conversationgroqcli resume: Load a previous conversationgroqcli models: List available modelsgroqcli prompts edit: Edit predefined system prompts
uwu: Cute and cheerful tone (UwU)formatScript: Script format onlyfriendly: Friendly and helpful tonetech: Precise and technical explanationsjson: JSON format onlydefault: Default helpful assistantfr-default: French-speaking helpful assistant
GroqCLI Files is a module of the GroqCLI ecosystem that allows you to manage and interact with files in a convenient and efficient way. This module provides a set of commands and options that enable you to send multiple files to groq llms.
- Get documentations for a directory of API endpoints:
Set up a useful system prompt
groqcli set-system endpointFormat "You have to answer using this format: # {endoint path}\nEach params (both required and optional) * `{params}`: `{type}`"Run the command
groqcli-files ./APIEndpoints -f ~/Server/Work/Max/HubRP/endpoints.md --system endpointFormatTo use GroqCLI Files, simply run the groqcli-files command followed by the desired options.
GroqCLI is fully extensible and can be customized to fit your needs. You can add new features, commands, and prompts by modifying the source code.
If you encounter any issues or have questions, please open an issue on the GitHub repository
Special thanks to @gmfunk9 for providing the inspiration for this project.