groq-terminal-ai is a command line tool that uses AI to generate terminal commands
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file groq_terminal_ai-1.1.0.tar.gz.
File metadata
- Download URL: groq_terminal_ai-1.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd598287e5d682060830b854c9aab70617c19c15338ef82eca9178c6ec6000b
|
|
| MD5 |
b3d4a97d0d3131dc931a45d12fc046c5
|
|
| BLAKE2b-256 |
65ca9fe6f8b7d0a1b3a6b8aac809efd03578a850a9a78aadba2d0b562b2350e9
|
File details
Details for the file groq_terminal_ai-1.1.0-py3-none-any.whl.
File metadata
- Download URL: groq_terminal_ai-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37fbe2072fffb1d7534899568c4733bb7f95323ebe7168d39eedd9dad8159fa1
|
|
| MD5 |
ef17887a02b05cd1e1e07ed02c35ff04
|
|
| BLAKE2b-256 |
1a1ba993483002fb9c31d937bf0a184043aac523021c59466b23949c83ab5d81
|