Skip to content

A simple command line tool to use Google Gemini AI

Notifications You must be signed in to change notification settings

gg0074x/ask-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Ask-cli

A simple command line tool to communicate with the Google Gemini AI REST API and get responses directly in the terminal with markdown format.

Note

You need to get a Gemini API key in order to use this tool, more information at Google AI Studio

🤖 Features

  • Usage of the Gemini AI model directly in the terminal
  • System prompts to change the responses
  • An execute option to ask the AI for commands and execute them directly

💾 Installation

Download from releases

🗒️ Usage

After running from the first time the program will tell you that you haven't specified an API key
You can specify this key by going to your config folder:

  • ~/.config/ask_config in Linux
  • C:\Users\username\AppData\Roaming in Windows
  • /Users/username/Library/Application Support

And add the following to the config.toml file:
GEMINI_TOKEN=YOUR_API_KEY_HERE
Alternatively you can pass your API key as an environment variable by executing:
export GEMINI_TOKEN=YOUR_API_KEY_HERE

Usage: ask [OPTIONS] <COMMAND>

Commands:
  query    Ask the AI a question
  execute  Ask the AI to execute a command in your terminal
  help     Print this message or the help of the given subcommand(s)

Options:
  -S, --shell <SHELL>    
  -s, --system <SYSTEM>  
  -h, --help             Print help
  -V, --version          Print version

🔨 Contributing

  • Code refactor
  • Use commands instead of flags
  • Support different AI models
  • Support other AI providers

About

A simple command line tool to use Google Gemini AI

Resources

Stars

Watchers

Forks

Languages