Skip to main content

groq-terminal-ai is a command line tool that uses AI to generate terminal commands

Project description

groq-terminal-ai

groq-terminal-ai is a CLI tool that harnesses the power of Groq's API to intelligently generate terminal commands based on natural language instructions.

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 llama3-8b-8192)
    
  • 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

  • llama3-8b-8192
  • gemma2-9b-it
  • gemma-7b-it
  • llama3-70b-8192
  • llama-3.1-70b-versatile
  • llama-3.1-8b-instant
  • llava-v1.5-7b-4096-preview
  • mixtral-8x7b-32768

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

groq_terminal_ai-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

groq_terminal_ai-1.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file groq_terminal_ai-1.0.1.tar.gz.

File metadata

  • Download URL: groq_terminal_ai-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for groq_terminal_ai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 91e61a4dde44d33cd02405cfabf867bab10fec291b766b343ebba9a12acc012e
MD5 71a167adde001be3e0b80baee6b507c3
BLAKE2b-256 17184fbc323e7b7bba9e2de6356cb80832f7b7b062f643d8198db48c8463f930

See more details on using hashes here.

File details

Details for the file groq_terminal_ai-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for groq_terminal_ai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bca7e2eb65f7c39fa69fd57582f3c1b2fb8dcb6d8620aabf6ac2c020dd2d6f2
MD5 8fb9b1c89f9db5f1126d1b7c4d935f90
BLAKE2b-256 f0bd8f565240cee194adb2ba568cca45a80b45d34637d1c9647ef5d5adb9beb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page