Ask ChatGPT directly on your terminal! Fast & No OpenAI API key required!
You can install this project via pip, registered as term-chatgpt
:
$ pip install term-chatgpt
- Python
>=3.10
(match
,case
syntax) - Required packages
- rich
- textual
- requests
- questionary
You can start an instance with:
$ term-gpt
? Select mode (Use arrow keys or k-up and j-down keys.)
terminal chat
full screen
» quick ask
run commands
Ask: Who are you?
✨ Response:
I am Copilot, a large language model developed by OpenAI that can assist in generating human-like text based on the given prompt.
term-gpt
has four different modes, including:
termainl
: Terminal chat. (continuous)full
: Full screen mode.quick
: "Quick ask" mode. (one-time)run
: Run & ask ChatGPT about shell commands.
Additionally, you can specify the modes by using the -m
argument. For instance: term-gpt -m terminal
. Or, if you want to assign the question, use the -a
argument. For instance: term-gpt -a "Hello!"
.
Terminal chat.
$ term-gpt -m terminal
(hint: type 'quit' to quit)
🤔 Who are you?
✨ Copilot
Hello! I am Copilot, a large language model trained by OpenAI. How may I
assist you today?
Full screen mode.
Quick mode.
$ term-gpt -m quick
Ask: Hello!
✨ Response:
Hi there!
Run & ask ChatGPT about shell commands. (Based on your platform)
$ term-gpt -m run
(hint: type 'quit' to quit)
🔎 I want to see all the files in this dir
... Working
✨ Copilot
ls
? Select an action (Use arrow keys or k-up and j-down keys.)
» ✅ Execute
✨ Explain
🤔 Revise
🔁 Retry
❌ Cancel