Skip to main content

⚡ groq-ai-cli

Ask AI anything, right from your terminal — powered by Groq.

ai how do I find all files larger than 1GB?
ai explain what chmod 755 does
ai write a bash for loop that renames all .txt files to .md

Responses stream instantly with syntax-highlighted code blocks, colored bullets, and bold headings — all rendered natively in your terminal.


Install

pip install groq-ai-cli

Setup

On first run, you'll be prompted to enter your Groq API key and choose a model:

ai "hello"

Or run setup manually anytime:

ai --config

Get a free API key at console.groq.com.


Usage

ai <your question>
ai --config       # change API key, model, or system prompt
ai --version      # show version
ai --help         # show help

Config

Settings are stored in ~/.config/groq-ai-cli/config.json. You can also set GROQ_API_KEY as an environment variable — it takes priority over the config file.

Available Models

Model Speed Best for
llama-3.3-70b-versatile Fast General use (default)
llama-3.1-8b-instant Fastest Quick lookups
mixtral-8x7b-32768 Fast Long context

License

MIT

Metadata

Release files for groq-ai-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for groq-ai-cli 1.0.0
File Size Uploaded
groq_ai_cli-1.0.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for groq-ai-cli 1.0.0
File Interpreter ABI Platform
groq_ai_cli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / groq_ai_cli-1.0.0.tar.gz

Download URL groq_ai_cli-1.0.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
38aba533266ec3851e5cb5f7d105a15bb017750e086be97df159400ffcbc3c83
BLAKE2b-256 checksum
How to use checksums
7f2a297953883fc03bb6fe04418b1c3970906da1fafeab4842c0997dc1bab9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / groq_ai_cli-1.0.0-py3-none-any.whl

Download URL groq_ai_cli-1.0.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebf7dacaab0519d363acccf715540f28c19a54e192f90cc2e2e583db71c638f2
BLAKE2b-256 checksum
How to use checksums
ab803b197c69e093bdbcbfaae4a21ea5cb0a999fc576cfb3557ec1992040e0da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page