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