AI chat asistent in your terminal powered by OpenAI GPT-3.5
Project description
Welcome to terminalGPT, the terminal-based ChatGPT personal assistant app! With terminalGPT, you can easily interact with the OpenAI GPT-3.5 and GPT-4 language models.
Whether you need help with a quick question or want to explore a complex topic, TerminalGPT is here to assist you. Simply enter your query and TerminalGPT will provide you with the best answer possible based on its extensive knowledge base.
Why?
Some advantages of using TerminalGPT over the chatGPT browser-based app:
- It doesn't disconnect like the browser-based app, so you can leave it running in a terminal session on the side without losing context.
- It's highly available and can be used whenever you need it.
- It's faster with replies than the browser-based app.
- You can use TerminalGPT with your IDE terminal, which means you won't have to constantly switch between your browser and your IDE when you have questions.
- TerminalGPT's answers are tailored to your machine's operating system, distribution, and chip-set architecture
- Doesn't use your conversation data for training the model (unlike the browser-based app).
- Your conversations are stored locally on your machine, so only you can access them.
Pre-requisites
- Python 3.6 or higher
- An OpenAI Account and API key.
- Sign up at https://beta.openai.com/signup using email or Google/Microsoft account.
- Go to https://beta.openai.com/account/api-keys or click on "View API keys" in the menu to get your API key.
Notes: OpenAI FREE API trial expired on 01-04-2023. You can still use the API, but you will need to set up a payment method.
- To set up a payment method click here.
- To check your usage click here.
- To check pricing click here.
Installation
- Install the latest TerminalGPT with pip install.
pip install terminalgpt -U --user
- Now you have
terminalgpt
command available in your terminal. Run the following install command to configure the app.
terminalgpt install
- Enter your OpenAI API key when prompted and press enter.
That's it! You're ready to use TerminalGPT!
Usage
TL;DR
Usage: main.py [OPTIONS] COMMAND [ARGS]...
*~ TerminalGPT - Your Personal Terminal Assistant ~*
Options:
--version Show the version and exit.
-m, --model [gpt-3.5-turbo|gpt-4]
Choose a model to use. [default:
gpt-3.5-turbo]
-p, --plain Plain text output.
--help Show this message and exit.
Commands:
delete Choose a previous conversation to load.
install Creating a secret api key for the chatbot.
load Choose a previous conversation to load.
new Start a new conversation.
one-shot One shot question answer.
New
Start a new conversation:
terminalgpt new
One-Shot
One shot question to get a fast answer in the terminal.
terminalgpt one-shot "What is the meaning of life?"
Load
Load previous conversations:
terminalgpt load
Delete
Delete previous conversations:
terminalgpt delete
Future Plans
- Support optional Vim input mode.
- Auto-completion for all commands.
- Support local models
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
Hashes for terminalgpt-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f0a273f306e1c75445ebf212550bbb3168cf23ff34fe223d862e6fac3831a3 |
|
MD5 | 059694119f11ceb088dc8338e31cbb06 |
|
BLAKE2b-256 | b3e4d4756c04ac790e5c47d4d2b8c5dd91658c94ad4d9cc5c1d61c1325171caa |