Skip to content

A versatile CLI tool for managing and interacting with OpenAI chat sessions, including saving, loading, and copying conversations.

License

Notifications You must be signed in to change notification settings

grandell1234/gpt-cli-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

gpt-cli-tool

A versatile CLI tool for managing and interacting with OpenAI chat sessions, including saving, loading, and copying conversations.


How to install:

Run this command to download the CLI:

$ git clone https://github.com/grandell1234/gpt-cli-tool.git

Move into the correct folder with this:

$ cd gpt-cli-tool

Install dependencies:

$ python -m pip install openai

$ python -m pip install pyperclip

You are now ready to use it by running:

$ python3 cli.py


Setup API Keys

If you already have an API key setup in environment variables, you can skip to Instructions for use. Otherwise, you will need to open up the file in your favorite IDE where there are instructions for setting it up with an API key at the top of the file.


Instructions for use:

When you boot it up with $ python3 cli.py the help menu appears which contains all the commands you can use with it:

Screenshot 2024-05-27 at 10 11 36 AM

Some commands contain aliases such as ?exit working like ?quit.

You can do ?copy all to copy the entire conversation


Sample Conversation:

Screenshot 2024-05-27 at 10 12 59 AM

When saving conversations you can give it a name you want or it will use GPT-3.5-Turbo to generate a name for you.

Screenshot 2024-05-27 at 10 14 44 AM

This tool makes it super easy to switch out models or to save a conversation and then branch it into two separate discussions that go separate ways or that use different models.

Screenshot 2024-05-27 at 10 16 17 AM


About

A versatile CLI tool for managing and interacting with OpenAI chat sessions, including saving, loading, and copying conversations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages