A simple interactive CLI for Groq API
npm install groq-chat-cliA simple and interactive Groq API command-line chat assistant, built by Shehzad Shifa.
``bash``
npm install -g groq-chat-cli
1. Set your API key
Create a .env file in your home directory or project root:
`bash`
echo "GROQ_API_KEY=your_api_key_here" > ~/.groq-cli-env
Or set it temporarily:
`bash`
export GROQ_API_KEY=your_api_key_here
2. Run the CLI
`bash`
groq-chat
3. Chat with AI
``
> hello
> help me write a Python script
> save notes.txt "This is my note"
> exit
* Interactive chat with Groq models
* Streaming responses in real-time
* Lightweight shell-like commands (cd, ls, save)
* No destructive commands (safe by design)
* help – List commandsexit
* – Quit the CLIclear
* – Clear screencd
* – Change directorysave
* – Save text content to a file
Clone and test locally:
`bash`
git clone https://github.com/shehzadshifa/groq-chat-cli.git
cd groq-chat-cli
npm install
npm link
groq-chat
MIT © 2025 Shehzad Shifa
``