ai59
Version:
A terminal-based AI CLI using Groq + Gemma
80 lines (57 loc) ⢠1.69 kB
Markdown
# š§ Groq CLI
**Groq CLI** is a blazing-fast, AI-powered terminal chatbot that connects to the [Groq API](https://console.groq.com/) using open-weight models like **Gemma 2**, **LLaMA 3**, and others.
Built for developers, terminal junkies, and anyone who wants the power of AI right in their command line.
---
## š Features
- ā
Real-time terminal chat with Groq's fastest LLMs
- ā
Supports Markdown formatting in output
- ā
Spinner animation while waiting for responses
- ā
Auto-persistent chat context (up to token limit)
- ā
Slash commands (`/clear`, `/exit`, `/retry`, etc.)
- ā
Token-safe context window handling
- ā
Easy to extend and open-source
---
## š¦ Installation
Install globally via `npm`:
```bash
npm install -g ai59
```
After installing, run:
```bash
ai
```
Or run it instantly with:
```bash
npx ai59
```
You'll be prompted to chat with the AI.
## Slash Commands
Command Description
/exit Exit the CLI
/clear Clears the terminal screen
/help Lists all available commands
## Project Structure
groq-cli/
āāā index.js
āāā ai.js
āāā .env
āāā package.json
āāā README.md
## Supported Models
1. llama3-8b-8192
2. llama3-70b-8192
3. gemma-2b-it
4. gemma-9b-it
## Development
```bash
git clone https://github.com/TahaWebsites/groq-cli
cd groq-cli
npm install
node index.js
```
## License
ISC Ā© Mohammed Masooduddin Siddiqui
## Contribute
Pull requests and ideas are welcome!
Issues and feature requests?
Open one at https://github.com/TahaWebsites/groq-cli/issues