terminally-ai
v1.0.4
Published
AI-Powered Intelligent Terminal Assistant
Maintainers
Readme
🤖 Terminally
AI-Powered Intelligent Terminal Assistant
Terminally is an AI-powered interactive terminal assistant that allows you to use natural language to generate, understand, and safely execute shell commands. Stop context-switching to the browser—just describe what you want, and Terminally handles the rest.
🚀 Quick Start
1. Install Globally
npm install -g terminally-ai2. Configure your API Key
Terminally uses Google Gemini (Free Tier).
- Get a free API key at Google AI Studio.
- Run the config command:
terminally configPaste your key when prompted. This is saved locally on your machine.
3. Use it anywhere
terminally "create a new react project with vite"
# OR enter interactive mode
terminally🛡️ Safety First Architecture
Unlike other CLI assistants, Terminally is built with a Safety-First Protocol:
- Risk Analysis: Every command is scanned for destructive patterns (like
rm -rforsudo). - Human-in-the-Loop: No command ever executes without your explicit confirmation.
- Double Verification: High-risk commands (Risk Score 8+) require you to manually type YES in all caps to proceed.
✨ Key Features
- NL → Command: Describe tasks in plain English (e.g., "kill process on port 3000").
- Interactive Mode: A persistent REPL session for continuous shell assistance.
- Educational Explanations: Toggle "Explanation Mode" to learn what every flag and command does.
- Context Awareness: Automatically detects your OS, shell type, and project structure (Git, Node, Docker).
- Customizable: Use
terminally configto toggle safety guards and explanation levels.
🏗️ Technical Architecture
Terminally is split into specialized modules for maximum safety and speed:
- Context Scanner: Detects your environment (OS, Shell, Project files).
- AI Service: Communicates with Gemini for intelligent command generation.
- Risk Engine: Scans strings for dangerous flags and targets.
- Execution Layer: Safely runs confirmed strings via your native shell.
🤝 Contributing
We welcome contributions! Please see our CONTRIBUTING.md for details on how to get started with local development.
git clone https://github.com/devsultan06/terminally.git
cd terminally
npm install
npm link⚖️ License
MIT © Terminally Team
