DEV Community

Cover image for Use Gemini in your terminal.
Kunal Kande Patil
Kunal Kande Patil

Posted on • Updated on

Use Gemini in your terminal.

Gemini Console Chat

Start an interactive chat on your terminal using Gemini.

Manual Installation

Clone this project using git.

git clone https://github.com/flameface/gemini-console-chat.git
Enter fullscreen mode Exit fullscreen mode

Installing all dependencies.

npm install
Enter fullscreen mode Exit fullscreen mode

Get API key from AI Studio and paste it in the index.js file.

const API_KEY = "YOUR_API_KEY";
Enter fullscreen mode Exit fullscreen mode

All is done, to start the chat run:

node index.js
Enter fullscreen mode Exit fullscreen mode

Features

Your entire chat's stored in the "history.json" file.

To exit the chat and delete a conversation (history.json), type "exit" in terminal.

Top comments (0)