GroqShell is a command-line interface for interacting with Groq AI models. It allows users to easily send prompts to Groq models and receive responses directly in their terminal.
- Interact with Groq AI models from the command line
- Select from available Groq models
- Option to force JSON output
- Persistent model selection
To install GroqShell, follow these steps:
-
Clone the repository:
git clone https://github.com/johnnycage111/groqshell.git cd groqshell
-
Install the package:
pip install .
Before using GroqShell, make sure to set your Groq API key as an environment variable:
export GROQ_API_KEY='your-api-key-here'
Basic usage:
groqshell -p "Your prompt here"
Force JSON output:
groqshell -p "Your prompt here" -j
Select a different Groq model:
groqshell -m
-p
,--prompt
: The prompt to send to the Groq AI model (required)-j
,--json
: Force JSON output-m
,--model
: Select a Groq model before sending the prompt
Contributions are welcome! Please feel free to submit a Pull Request.
This