π§ Sage-assistant-windows - Your Intelligent AI CLI Assistant


Sage is a powerful command-line AI assistant built with Node.js and powered by Mistral AI. It lets you interact with your system using natural language, read files, fetch system data, and run safe commands in a seamless, intelligent experience β right from your terminal.
> β‘ Imagine talking to your terminal and it responds like ChatGPT, but with access to your actual system. Thatβs
Sage-assistant-windows.
---
While tools like OpenAI Codex (powered by GPT-4) are reshaping how developers interact with code, Sage offers a lightweight, open-source alternative with several distinct advantages:
π Completely free to use β powered by the open Mistral API (No paid subscription needed β the free tier works just fine for Sage.)
π» Local-first design β no code is sent to centralized servers unless explicitly configured
π Transparent and safe β ideal for those who value control and privacy
π Features
- π§ Conversational AI assistant using Mistral API
- ποΈ Reads system and user files on command
- π» Executes selected safe terminal commands
- π‘οΈ secure command handling
- ποΈ Tool calling with context-aware file access
- π§΅ Streamed responses for smooth interaction
- β¨οΈ Clean, multi-line CLI input
- π¨βπ» Can serve as a
coding assistant to help you debug, understand, and write code
---
π¦ Installation
Install via npm:
``
bash
npm install -g sage-assistant-windows
`
Then simply run:
`
bash
sage
`
π οΈ Usage
Once installed run the AI assisstant:
`
bash
sage
``
- You'll asked to enter an API key from mistral
Then after entering entering the API key You'll see instructions such as:
- Type "end" on a new line to submit your multi-line prompt
- Type "exit" or press Ctrl+C / Ctrl+D to quit
- Type any key to cancel the response mid-stream
Example Prompts
π "Whatβs inside app.py?"
βοΈ "Have the changes in file index.js been committed yet"
π "Read the contents of myScript.sh"
π "Do I have SSH keys set up?"
π How It Works
Sage uses:
- The Mistral AI streaming API for intelligent interactions
- A secure tool interface for file access and safe command execution
- Local processing β no server, no telemetry
- A smart prompt system that guides AI behavior