Simple-ChatGPT-CLI
I believe many others have implemented more sophisticated ChatGPT CLI tools. But this is a super simple one without fancy features that I created with Python for my use case. My motivation was that using OpenAI API could be much cheaper than subscribing to ChatGPT Plus, and is claimed to be more privacy friendly by some legal experts.
I'm not planning to add fancy features unless I start to feel some feature would be a big plus to my productivity in my use case. But everyone is welcome to use this basic version or fork it to add their features.
Installation
pip install simple-chatgpt-cli
Usage
You can run the program with
chatgpt
You must either set/save the key following the CLI prompts (recommended) or set an environment variable OPENAI_API_KEY.
Tips
-
Use
#multilineto enter multiline mode. This is useful when you want to enter messages with line breaks. -
Use
#startoverto start a new conversation whenever you switch to a new topic and the bot doesn't need the previous context anymore. This helps reduce your OpenAI bill. The program will remind you of this if you come back to an idle conversation after more than 5 minutes.
Development
This project was initialized by my Python project boilerplate. So you will need all the prerequisites of that project.
Metadata
Release files for simple-chatgpt-cli 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_chatgpt_cli-0.1.11.tar.gz | 4.2 kB | Without provenance | Details for simple_chatgpt_cli-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_chatgpt_cli-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for simple_chatgpt_cli-0.1.11-py3-none-any.whl |
Total release size: 9.1 kB
Release files / simple_chatgpt_cli-0.1.11.tar.gz
| Download URL | simple_chatgpt_cli-0.1.11.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cba85f5969a08279bc8a4c80989a65964543c48d72bf4fce0b58a75677275a1a
|
|
BLAKE2b-256 checksum How to use checksums |
ddf712a0701eb2aed9b4ebc915fe78c71e4cd53187d5255b5176afdc3b191fc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0
|
Release files / simple_chatgpt_cli-0.1.11-py3-none-any.whl
| Download URL | simple_chatgpt_cli-0.1.11-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ad359af384d685227ab2a4b4566867ef079169f2c711ba60aa282b375ad0915
|
|
BLAKE2b-256 checksum How to use checksums |
1fd65753e22a483716a413191df9df1f30f67ccf23787afe3a69d00a7e8570fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0
|
Security for simple-chatgpt-cli 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.