Version 2.0 — Now with REPL Mode & Rich Tables

Your AI Assistant
lives in the Terminal

Ask anything — git commands, Linux tips, Docker, coding help — and get instant answers with interactive chat or quick one-shot queries. Beautiful markdown tables and conversation memory included.

Get Started View on GitHub
PowerShell — buddy
PS C:\Users\shyam> buddy
Buddy AI Terminal Assistant
Type 'exit', 'quit', or press Ctrl+C to quit

you: how do I create a git branch
Thinking ⠙

  • Create a new branch:
  git branch branch-name
  • Create and switch to it:
  git checkout -b branch-name

you: what about switching to it?
[AI remembers context from previous question]
  git checkout branch-name

you:

Features
Everything you need, nothing you don't.

REPL Mode 🆕

Interactive chat sessions with conversation memory. Ask follow-up questions naturally — the AI remembers context.

Rich Markdown Tables 🆕

Beautiful table rendering powered by Rich library. Automatically sanitizes and formats markdown tables.

Two Modes

One-shot for quick questions. REPL for interactive conversations. Choose what fits your workflow.

Typewriter Effect

Responses appear character by character, just like ChatGPT — making it feel alive.

Color-Coded Output

Headers in yellow, commands in green, bullets in cyan. Easy to scan at a glance.

Loading Spinner

Animated spinner with random messages so you know it's working while the API responds.

Clean Error Handling

No ugly tracebacks. Timeout, connection errors, and API failures show friendly messages.

Multiple Providers 🆕

Works with OpenRouter, Groq, Together AI, or OpenAI. Switch providers easily in config.

100% Free Options

Free tiers available on OpenRouter, Groq, and Together AI. No credit card required.

Custom Command Name

Rename the shortcut to anything — ai, ask, helper — and use that as your command.


Installation
Get up and running in under 5 minutes.
1

Clone the repository

git clone https://github.com/shyam0880/AI-Terminal-Assistant-BuddyAI.git
cd AI-Terminal-Assistant-BuddyAI
2

Install dependencies

pip install -r requirements.txt
3

Add your API key

Rename config.example.py to config.py and add your API key:

OPENROUTER_API_KEY = "your-api-key-here"
MODEL = "openrouter/auto"
Provider options: Get free keys from:
4

Set up the shortcut (Windows)

Edit buddy.bat with the full path to buddy.py:

@echo off
python C:\your\path\to\buddy.py %*
Custom name tip: Rename buddy.bat to anything — ai.bat, ask.bat, helper.bat. That name becomes your terminal command.
5

Add to PATH (run from anywhere)

Follow these steps to run buddy from any directory:

Step 1: Search "Environment Variables" in Windows Start menu
Step 2: Click "Edit the system environment variables"
Step 3: Under System Variables → find Path → click Edit
Step 4: Click New → enter your folder path (e.g., C:\ai\)
Step 5: Click OK on all windows and restart your terminal
6

Start using Buddy!

REPL Mode (Interactive chat with conversation memory):

buddy
Type 'exit', 'quit', or press Ctrl+C to quit

you: how do I create a git branch
[AI explains git branch creation]

you: what about switching to it?
[AI explains with context from previous question]

One-Shot Mode (Quick questions):

buddy how to check open ports on windows
buddy explain git rebase vs merge
buddy what is a docker volume
ask what is async await    ← if you renamed it to ask

Tech Stack
Simple, minimal, no bloat.

Python 3.7+

Core language

OpenRouter API

AI model access

colorama

Terminal colors

rich

Markdown rendering

requests

HTTP API calls

threading

Loading animation