#chatgpt #command-line #token

app tiny_chatgpt_cli

A small tool to access ChatGPT from the command line

7 stable releases

3.0.0 Dec 23, 2023
2.0.0 Dec 23, 2023
1.1.3 Jun 13, 2023
1.1.2 Apr 8, 2023
1.1.1 Mar 31, 2023

#924 in Command line utilities

Download history 6/week @ 2024-02-25 2/week @ 2024-03-10 92/week @ 2024-03-31

94 downloads per month

MIT license

13KB
136 lines

Installation

cargo install tiny_chatgpt_cli

Usage examples

Regular usage

~/i/tiny_chatgpt_cli $ chatgpt
(i) Enter an empty line to stop
>>> hello
Hello! How can I assist you today?
>>> evaluate 34 + 67
34 + 67 = 101
>>>
Used tokens amount: 59

Command mode

~/i/tiny_chatgpt_cli $ chatgpt cmd
Input the description of a command: get amount of lines in main.rs

> wc -l main.rs

To apply the command, input nothing. To not apply it, input something.

wc -l main.rs
136 main.rs

Dependencies

~8–22MB
~330K SLoC