https://github.com/aweirddev/term-gpt
Ask ChatGPT directly on your terminal! Fast & Free!
https://github.com/aweirddev/term-gpt
ai chat chatgpt commands free terminal
Last synced: 17 days ago
JSON representation
Ask ChatGPT directly on your terminal! Fast & Free!
- Host: GitHub
- URL: https://github.com/aweirddev/term-gpt
- Owner: AWeirdDev
- License: mit
- Created: 2023-06-10T13:37:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-11T04:49:11.000Z (almost 3 years ago)
- Last Synced: 2025-01-24T12:32:30.231Z (over 1 year ago)
- Topics: ai, chat, chatgpt, commands, free, terminal
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# term-gpt
Ask ChatGPT directly on your terminal! Fast & **No OpenAI API key required!**
## Installation
You can install this project via pip, registered as `term-chatgpt`:
```haskell
$ pip install term-chatgpt
```
### Requirements
- Python `>=3.10` (`match`, `case` syntax)
- Required packages
- rich
- textual
- requests
- questionary
## Quick Start
You can start an instance with:
```bash
$ term-gpt
```
```bash
? 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.
```
## Modes
`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
Terminal chat.
```bash
$ 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
Full screen mode.

### quick
Quick mode.
```bash
$ term-gpt -m quick
```
```
Ask: Hello!
โจ Response:
Hi there!
```
### run
Run & ask ChatGPT about shell commands. (Based on your platform)
```bash
$ 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
```