ezclai
Command Line AI- this tool lets you call ChatGPT from a CLI.
I'm designing this to be used in conjunction with a fork of shin, which will allow you
to call ezclai from any textbox in your computer. Finally, ChatGPT everywhere!
The long-term vision for this project is to add support for extracting context. For example, it would read the current text on a window and be able to add to it, or answer questions about it.
Read Latest Documentation - Browse GitHub Code Repository
Installation
-
The recommended installation method is to use
pipx, viapipx install ezclai
Optionally, install
tesseractso thatezclaican read the screen context and send that along with requests:sudo apt install tesseract-ocr scrot python3-tk python3-dev
-
Then go to OpenAI and create an API Key. Once it's generated, add the following to your
~/.profile:export OPENAI_API_TOKEN=<paste here>
-
The best way to use this tool is in conjunction with the tool shin, which allows you to run arbitrary bash commands in any textbox in a linux computer, using ibus. To use that, install 'shin' via the fork above, then configure it in your
~/.profileto callezclaiby default:export SHIN_DEFAULT_COMMAND="ezclai"
-
Log out then log back in for the changes to take effect!
Usage
Invoke the assistant with the format ezclai <your prompt>. For example:
ezclai Write an email saying I'll be late to work because I'm working on commandline AIs
Development
Installing python dependencies
poetry install
Running Tests
pytest .
Formatting Code
bash .github/format.sh
Linting
bash .github/check_lint.sh
Metadata
Release files for ezclai 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezclai-0.3.1.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezclai-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / ezclai-0.3.1.tar.gz
| Download URL | ezclai-0.3.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d7c604cfb06f89f05a397b0c94f680b7dc0b8c78d697559575ba8d8d31af8c4
|
|
BLAKE2b-256 checksum How to use checksums |
e4cdaaf5b257403fdcd3864d0bb1e85a200529c37d79a275a4ab90ccb23cca0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Linux/6.5.6-76060506-generic
|
Release files / ezclai-0.3.1-py3-none-any.whl
| Download URL | ezclai-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e49f42ddb17e0bf7a16d2f38bfdc7d716c984b46771c3f8ede3bf392e662a42
|
|
BLAKE2b-256 checksum How to use checksums |
8ee03ea39a94f5f99ef471575c60a8c2d2c341dc980ae7680ed81d38eb3b876a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Linux/6.5.6-76060506-generic
|