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
- 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
Download from releases
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 LinuxC:\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
- Code refactor
- Use commands instead of flags
- Support different AI models
- Support other AI providers