groq-terminal-ai
https://github.com/user-attachments/assets/a6cb57a5-a597-438c-b976-4a6fd48960af
groq-terminal-ai is a cross-platform CLI tool that utilizes Groq's API to intelligently generate terminal commands from natural language instructions. It supports Linux, macOS, and Windows.
Key Features
- AI-Powered Command Generation: Leverages Groq's advanced language models to interpret user instructions and generate accurate terminal commands.
- Cross-Platform Compatibility: Seamlessly operates on Linux, macOS, and Windows operating systems.
- Customizable Model Selection: Offers flexibility to choose from different LLM models for tailored command generation.
- Command History: Maintains a history of previous instructions and commands for context-aware suggestions.
- Efficient Caching: Implements a command cache to quickly retrieve previously generated commands.
Installation
Install groq-terminal-ai using pip:
pip install groq-terminal-ai
Usage
Step 1. Set your Groq API key
ai --groq-api-key <your-api-key>
Step 2. Generate a command
ai list all png files in the current directory
Optional Parameters
-
Choose a specific LLM model:
ai --model <model-name> (default llama-3.1-8b-instant)
-
Set the history size for context-aware suggestions:
ai --history-size <number> (default 3)
-
Enable or disable instruction history:
ai --use-history <true/false> (default true)
-
For more information on available options:
ai --help
Supported Models
Current Production Models
- llama-3.3-70b-versatile - Latest Llama 3.3 model with excellent reasoning capabilities
- llama-3.1-8b-instant - Fast and efficient model, great for quick command generation
- gemma2-9b-it - Google's Gemma 2 model optimized for instruction following
Latest Advanced Models
- meta-llama/llama-4-scout-17b-16e-instruct - Llama 4 Scout for complex reasoning tasks
- meta-llama/llama-4-maverick-17b-128e-instruct - Llama 4 Maverick for multilingual tasks
- deepseek-r1-distill-llama-70b - Advanced reasoning model for complex problem-solving
- deepseek-r1-distill-qwen-32b - Efficient reasoning model with strong coding capabilities
- qwen-2.5-32b - Qwen 2.5 with improved coding and instruction following
- qwen-qwq-32b - Latest Qwen reasoning model
- mistral-saba-24b - Updated Mistral model
Legacy Models (Being Deprecated)
- llama3-70b-8192 - Will be deprecated on August 30, 2025 (use llama-3.3-70b-versatile instead)
- llama3-8b-8192 - Will be deprecated on August 30, 2025 (use llama-3.1-8b-instant instead)
Metadata
Release files for groq-terminal-ai 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| groq_terminal_ai-1.1.0.tar.gz | 7.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| groq_terminal_ai-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / groq_terminal_ai-1.1.0.tar.gz
| Download URL | groq_terminal_ai-1.1.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdd598287e5d682060830b854c9aab70617c19c15338ef82eca9178c6ec6000b
|
|
BLAKE2b-256 checksum How to use checksums |
65ca9fe6f8b7d0a1b3a6b8aac809efd03578a850a9a78aadba2d0b562b2350e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Release files / groq_terminal_ai-1.1.0-py3-none-any.whl
| Download URL | groq_terminal_ai-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37fbe2072fffb1d7534899568c4733bb7f95323ebe7168d39eedd9dad8159fa1
|
|
BLAKE2b-256 checksum How to use checksums |
1a1ba993483002fb9c31d937bf0a184043aac523021c59466b23949c83ab5d81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Security for groq-terminal-ai 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.