An open API service indexing awesome lists of open source software.

https://github.com/thisago/clibard

Command line interface for Google Bard
https://github.com/thisago/clibard

ai bard batchexecute cli free nim

Last synced: 5 days ago
JSON representation

Command line interface for Google Bard

Awesome Lists containing this project

README

          

# clibard

#### Command line interface for Google Bard

**[About](#about) - [Setup](#setup) - [Usage](#usage)** - [License](#license)

## About

See this app in action here:
- [`clibard prompt`][promptVideo]
- [`clibard chat`][chatVideo]

This is a Google Bard CLI application interface.

Core libs used

- [Google Bard](https://github.com/thisago/bard) - Google Bard batchexecute implementation
- [iecook](https://github.com/thisago/iecook) - Session cookie getter

## Setup

You can install using nimble, the [Nim](https://nim-lang.org) package manager:

```bash
nimble install clibard
```

To iecook be able to get your Google session, you'll need to install an client
extension in your browser.
See the [tutorial at iecook repository](https://github.com/thisago/iecook#setup)

Now, just [login into your Google account](https://accounts.google.com) and keep
open the browser

## Usage

**Help**

```
$ clibard --help

Google Bard CLI
Usage:
clibard {SUBCMD} [sub-command options & parameters]
where {SUBCMD} is one of:
help print comprehensive or per-cmd help
prompt Prompts to Google Bard
chat Start chat with Google Bard
```

The usage is very simple:

[**Single prompt**][promptVideo]

```bash
clibard prompt "what is ram memory?"
```

[**Chat**][chatVideo]

```bash
clibard chat
```

## License

This CLI application is open source, licensed over GPL-3

[promptVideo]: https://asciinema.org/a/Bpc3fE1YwgfEUrqUwI9FlS8ky
[chatVideo]: https://asciinema.org/a/GKS9Scaza5c1powm8jypQrGAN