Skip to content

fuyuzheju/ag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI for terminal

Chat with AI in your terminal! Stream output is supported, just like in your web browser. Both brief question and long session are supported. Renders MARKDOWN with glow.

Install

  1. Install glow(to render markdown)
# macos
brew install glow

# ubuntu
apt install glow

# ...
  1. Build env
pip install -r requirements.txt

And then put your API Key of gemini in .env as an environmental variable

  1. Run script
python ag.py

Usage

  • Basic

If you use ag with no arguments, it automatically enters the interactive mode, where you can have a long session with AI If you use ag [prompt], it will print out the model's response, but you will not be able to ask follow-up questions, and the context will not be preserved

  • -g

beautify the output with glow

  • -m

set the AI model. default as gemini-2.5-flash

About

AI chatbox with TUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages