VYAI is a lightweight command-line interface (CLI) tool designed to facilitate interactions with the Gemini API directly from your terminal. It offers developers and CLI enthusiasts an efficient way to engage with AI-driven responses without relying on web interfaces or cumbersome curl commands.
Keyboard Navigation: Utilize shortcuts like Enter to send messages, Tab to switch tabs, and ESC/I to toggle modes.
Chat Management: Create, edit, and organize chats using keyboard shortcuts such as Ctrl + N and Ctrl + E.
Search Functionality: Quickly find specific parts of your conversations with the search feature.
Scrolling Options: Navigate through messages using j/k for single-line moves or G/g to jump to the end/start.
Audience & Benefit:
Ideal for developers and terminal users seeking a streamlined AI interaction experience, VYAI enhances productivity by integrating Gemini's capabilities into familiar CLI workflows. It provides an efficient alternative to traditional API calls, fostering direct engagement with AI models in a lightweight environment.
Install VYAI via winget for a seamless setup and start leveraging the power of Gemini directly from your terminal, enhancing your development and interaction processes.
README
vyai
I got tired of using curl to make API calls to Gemini just to have an "AI" in my terminal. I wanted something that could also maintain context. The web felt and is bloated, so I built this snazzy CLI tool instead.
Usage
Get a Gemini API key from ai.google.dev.
Export the key as an environment variable:
export GOOGLE_API_KEY=your_api_key_here
Install the application.
Arch Linux
You can install vyai from the AUR using an AUR helper like yay or paru:
yay -S vyai
# or
paru -S vyai
Else you can install it manually using git and makepkg:
git clone https://aur.archlinux.org/vyai.git
cd vyai
makepkg -si
Windows
On Windows you can install it using scoop
# First add the bucket
scoop bucket add vybraan https://github.com/vybraan/bucket
#Then Install it
scoop install vyai
Manually / From Source
Clone the repository:
git clone https://github.com/vybraan/vyai.git
cd vyai
Run the application:
make run
or:
go run cmd/main.go
Distro specific packages
While not a comprehensive list, repology provides a decent list of distro
specific packages.
Keyboard Shortcuts
Enter → Send message
Ctrl + C → Close the app
Tab / Ctrl + Right → Next tab
Shift + Tab / Ctrl + Left → Previous tab
ESC → Normal mode
I → Insert mode
Ctrl + N → New Chat
Ctrl + E → Edit Chat with default editor (falback to vi)