Skip to content

A Python-based command-line tool that interacts with OpenAI's GPT-4 to generate and execute command-line solutions based on user input.

Notifications You must be signed in to change notification settings

yetanotherf0rked/gcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gcmd: GPT Command-Line Assistant

A Python-based command-line tool that interacts with OpenAI's GPT-4 to generate and execute command-line solutions based on user input.

gcmd demo

Features

  • Receives user requests and returns command-line solutions.
  • Allows quick copy-to-clipboard functionality.
  • Uses an interactive terminal menu for seamless navigation.

Prerequisites

  1. Python 3.6 or later
  2. An OpenAI API key. Set it as an environment variable named OPENAI_GPT_CMD_API_KEY.

Installation

  1. Clone this repository

  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up the environment variable for the OpenAI API key:

    export OPENAI_GPT_CMD_API_KEY="your_openai_api_key"

Usage

python gpt-cmd.py "Your prompt"

License

WTFPL

About

A Python-based command-line tool that interacts with OpenAI's GPT-4 to generate and execute command-line solutions based on user input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages