An open API service indexing awesome lists of open source software.

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!

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.

![Full Screen Preview](https://i.imgur.com/EjYcT0p.png)

### 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
```