Skip to content

Files

Latest commit

Sep 14, 2023
31c3b3d · Sep 14, 2023

History

History

else

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 13, 2023
Aug 16, 2023
Aug 13, 2023
Aug 13, 2023
Aug 13, 2023
Aug 23, 2023
Aug 23, 2023
Aug 13, 2023
Sep 14, 2023
# Aih: Talk with Bard/ChatGPT/Claude2/Llama2 in the terminal.

![screenshot1](aih.gif) 

## Usage
Download [binary file](https://github.com/Databingo/aih/releases) then type:
```bash
./aih
```
## Command list
| Command    | Operation|
|------------|----------|
|.           | Select AI mode of Bard/ChatGPT/Claude/HuggingChat|
|.proxy      | Set proxy, for example: socks5://127.0.0.1:7890|
|<<          | Start multiple lines input mode|
|>>          | End multiple lines input mode|
|↑           | Previous input|
|↓           | Next input|
|.c or .clear| Clear the screen|
|.h or .history | Show history of conversations|
|j           | Scroll down|
|k           | Scroll up|
|g           | Scroll to top|
|G           | Scroll to bottom|
|q or Enter  | Back to conversation|
|.help       | Show help|
|.exit       | Exit Aih|

## Prerequisites
- [Chrome Browser](https://google.com/chrome)
- Free account of [Bard](https://bard.google.com), [Claude](https://claude.ai), [OpenAI](https://chat.openai.com), [HuggingChat](https://huggingface.co/chat) logged-in manually on your Chrome browser.
- (Optional) Paid ChatGPT API on [Billing](https://platform.openai.com/account/billing/overview). 

## Tips
- Answer will be auotmatically saved in system clipboard for pasting.
- All conversations were persisted in `history.txt` beside Aih binary.
- More operations of command line at [Liner](https://github.com/peterh/liner#Line-editing).
- All-In-One mode will display answers from all the AI modes.
<img src="allin1.png" alt="screenshot2" style="width:80%;">

## Supported Operating Systems:
- Mac
- Linux
- Windows

## Installation
- Bash
```
$ git clone https://github.com/Databingo/aih
$ go clean -cache && go clean -modcache 
$ cd aih && go mod tidy && go build 
```
## About Suggestions
This is an open plan based on the idea of "Co-relation's enhancement of AI and human beings". If you have any suggestions, please write them in the Issues section.

## Acknowledgements
- github.com/go-rod/rod
- github.com/sashabaranov/go-openai