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

https://github.com/rishabkumar7/python-chatgpt-cli

A simple wrapper for ChatGPT, allows to use ChatGPT in your CLI.
https://github.com/rishabkumar7/python-chatgpt-cli

chatgpt chatgpt-api cli cli-app python python3

Last synced: 7 months ago
JSON representation

A simple wrapper for ChatGPT, allows to use ChatGPT in your CLI.

Awesome Lists containing this project

README

          

![](https://visitor-badge.glitch.me/badge?page_id=rishabkumar7.python-chatgpt-cli)

# chatgpt_cli

A simple wrapper for ChatGPT, allows to use [OPENAI ChatGPT](https://openai.com/blog/chatgpt/) in your CLI.

### Requirements

This package requires `python 3`. And a human to use it.

### Installing

To install this CLI tool you can run the below command

``` python
pip install -i https://test.pypi.org/simple/ python-chatgpt-cli
```

The above commands would install the package globally and `chatgpt_cli` will be available on your system.

### How to use

Make sure to get an API key for OpenAI, you can get that from - [https://openai.com/api](https://openai.com/api/)

Set an environment variable `OPENAI_API_KEY = `

You are good to use the `chatgpt_cli` command:

``` bash
chatgpt_cli
Ask ChatGPT 🤖
Who is Ronaldo?

Ronaldo is a Portuguese professional soccer player who currently plays for the Italian Serie A club Juventus.
He is widely considered one of the greatest soccer players of all time. Ronaldo has won five Ballon dOr awards,
the most for a European player, and is the first player to win four European Golden Shoes. He has also won 29
trophies in his career, including five league titles, four UEFA Champions League titles, and one UEFA European
Championship.
```

### Feedback

Please feel free to leave feedback in issues/PRs.

### LICENSE

Licensed under [MIT License](/LICENSE).