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 glow(to render markdown)
# macos
brew install glow
# ubuntu
apt install glow
# ...- Build env
pip install -r requirements.txtAnd then put your API Key of gemini in .env as an environmental variable
- Run script
python ag.py- Basic
If you use
agwith no arguments, it automatically enters the interactive mode, where you can have a long session with AI If you useag [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