Skip to content

vybraan/vyai

Repository files navigation

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

  1. Get a Gemini API key from ai.google.dev.
  2. Export the key as an environment variable:
export GOOGLE_API_KEY=your_api_key_here
  1. 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

  1. Clone the repository:
3. Run the application using:
```bash
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.

Packaging status

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)
  • / → Search in chats
  • j/down → scroll down
  • k/up → scroll up
  • g/home → scroll to start
  • G/end → scroll to end
  • ? → Show/Close help

Demo

vyai

About

vyai – A lightweight CLI tool to interact with the Gemini API from the terminal.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published