| Crates.io | cogni |
| lib.rs | cogni |
| version | 0.2.1 |
| created_at | 2023-06-26 16:20:14.410828+00 |
| updated_at | 2023-12-01 00:40:05.049169+00 |
| description | Unix native interface for LLMs |
| homepage | |
| repository | https://github.com/leoshimo/cogni |
| max_upload_size | |
| id | 900451 |
| size | 100,291 |
Unix-minded interface for interacting with LLMs.
cogni brings language model scripting (prompting) into familiar Unix
environment by focusing on:
cogni itselfFor example, designing for IO redirection (stdin, stdout) allows cogni to
work with files, editor buffers, clipboards, syslogs, sockets, and many external
tools without bespoke integrations.
cogni from within interactive environments (REPLs, emacs, etc)# Install from crates.io
$ cargo install cogni
# From source
$ cargo install --path .
cogni expects an OpenAI API Key to be supplied via --apikey option or more
conveniently OPENAI_API_KEY environment variable:
# in shell configuration
export OPENAI_API_KEY=sk-DEADBEEF
🚧 WIP