Command Line AI- this tool lets you call ChatGPT from a CLI
Project description
clai
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 clai
from any textbox in your computer. Finally, chatGPT everywhere!
Read Latest Documentation - Browse GitHub Code Repository
Installation
-
The recommended installation method is to use
pipx
, viapipx install clai
-
Then go to OpenAI and create an API Key. Once it's generated, add the following to your
.bashrc
:export OPENAI_API_TOKEN=<paste here>
Usage
Invoke the assistant with the format clai <your prompt>
. For example:
clai 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
TODO: remove references to tests?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clai-0.1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
clai-0.1.0-py3-none-any.whl
(4.7 kB
view hashes)