| Crates.io | openai-cli |
| lib.rs | openai-cli |
| version | 0.3.7 |
| created_at | 2023-03-18 18:58:42.364819+00 |
| updated_at | 2023-12-06 02:34:05.544721+00 |
| description | CLI for the OpenAI API |
| homepage | https://github.com/LevitatingBusinessMan/openai-cli |
| repository | https://github.com/LevitatingBusinessMan/openai-cli |
| max_upload_size | |
| id | 813920 |
| size | 64,788 |
openai-cli is a command line interface to interact with the OpenAI API. It aims to provide most features the API does.
!system: Write a system message, e.g., "You will translate text to french".!save: Save a conversation.!load: Load a converstation.!history: Show the converstation history.!model: Set the model you want to use, e.g., !model gpt-3.5-turbo.!clear: Clear the current conversation history.!undo: Undo last message.I also intend to add support for completing promts from stdin or files for use in scripting.
By defeault openai-cli uses emacs style keybinds.
However by using the --vim flag, you can use vim style keybinds instead.
You can write newlines using ALT+ENTER.
You can edit files using the edit subcommand.

Installation can be done via cargo install openai-cli.