bard-rs-1.0.0 is not a library.
Google Bard CLI
A simple command line interface for interacting with Google Bard, written in Rust.

Prerequisites
You need to have Rust and Cargo installed on your system. If you don't have them, you can install them from the official Rust website.
Installation
-
Clone the repository to your local machine:
git clone https://github.com/Alfex4936/Bard-rs -
Change the working directory:
cd Bard-rs -
Build the project:
cargo build --release
The executable binary file will be located in the target/release folder.
or install from cargo.
Usage
Before using the Google Bard CLI, you need to obtain your session cookie. To get the session cookie, follow these steps:
- Go to Google Bard in Chrome.
- Open Chrome Developer Tools (F12 or
Ctrl + Shift + I). - Go to the "Application" tab.
- Under "Storage" > "Cookies", click on "https://bard.google.com".
- Find the cookie with the name
__Secure-1PSID, and copy its value. (it includes "." usually)
Now you can use the Google Bard CLI:
bard-rs --session <your_session_cookie>
Replace <your_session_cookie> with the value you copied from the Developer Tools.
Commands
- Type your message and press Enter to send it to Google Bard.
- Type
!resetto reset the conversation. - Type
!exitto exit the CLI.
License
This project is licensed under the MIT License.
Credits:
- acheong08 - Inspired by this Python version.