Console utility for integrating artificial intelligence into a Linux terminal.
Project description
AI-eBash
Console utility for integrating artificial intelligence into your terminal. Ask AI questions and execute suggested scripts and commands directly from the command line. Perfect for beginners in Linux and Windows administration.
🌍 Available in: English | Русский
Table of Contents
- AI-eBash
Features
- Fast AI Queries - Get instant responses from AI models through the command line
- Interactive Dialog Mode - Chat with AI in dialog mode with conversation context preservation
- Code Execution - Execute scripts and commands suggested by AI
- User-Friendly Interface - Formatted output with syntax highlighting
- Multiple AI Providers - Support for OpenAI, Anthropic and other providers
- Localization Ready - Support for multiple languages (in development)
Installation
Linux (pipx)
Recommended installation method for Linux
-
Install pipx (if not already installed):
sudo apt update sudo apt install pipx python3-venv -y pipx ensurepath
-
Restart your terminal
-
Install AI-eBash:
pipx install ai-ebash
Note: If pipx doesn't work, you can install via pip:
pip install ai-ebash
Linux (DEB Package)
-
Download the latest DEB package:
wget -qO ai-ebash.deb $(wget -qO- https://api.github.com/repos/Vivatist/ai-ebash/releases/latest \ | grep "browser_download_url.*\.deb" | cut -d '"' -f 4)
-
Install the package:
sudo dpkg -i ./ai-ebash.deb sudo apt-get install -f -y
-
Restart your terminal
Windows (Experimental)
-
Install Python 3.11+ (if not already installed)
-
Install AI-eBash:
pip install ai-ebash
-
Restart your terminal
Uninstall
To completely remove the utility:
If installed via pipx
pipx uninstall ai-ebash
If installed via DEB package
sudo apt remove python3-ai-ebash
# Or for complete deletion, including configuration files:
sudo apt purge python3-ai-ebash
or you can also use dpkg.:
sudo dpkg -r python3-ai-ebash
# Or for complete deletion, including configuration files:
sudo dpkg -P python3-ai-ebash
If installed via Windows:
pip uninstall ai-ebash
Usage
Basic Usage
# Simple question
ai What's today's date?
# Get help
ai --help
Dialog Mode
# Start interactive conversation
ai -d "Help me learn Python"
# In dialog mode you can:
# - Ask clarifying questions
# - Execute code blocks suggested by AI
# - Get command explanations
Code Execution
In dialog mode, AI responses may contain executable code blocks:
ai -d Show how to create a Python script
Then execute the suggested code by entering the block number:
[Code #1]
print("Hello, World!")
Configuration
Initial Setup
Run the setup mode to configure your AI provider:
ai -s
Supported AI Providers
- OpenAI (GPT-3.5, GPT-4)
- Anthropic (Claude)
- OpenRouter (Multiple models)
- Local Models (Ollama, LM Studio)
Configuration File
Settings are stored in:
- Linux:
~/.config/ai-ebash/config.json - Windows:
%APPDATA%\ai-ebash\config.json
Security
[!WARNING] Never execute code from untrusted sources without verification!
Best Practices
-
Verify code before execution
# Always check what AI suggests ai "Delete all files from /tmp" # Don't execute this blindly!
-
Use safe commands
# Prefer these instead of destructive operations ai Show disk usage ai Show running processes
Contributing
I'd be happy to have your help! Here's how to get started:
Development Environment Setup
-
Fork the repository
-
Clone your fork:
git clone https://github.com/your-username/ai-ebash.git cd ai-ebash
-
Set up development environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt pip install -e .
Contribution Guidelines
- 📝 Code Style: Follow PEP 8
- 🧪 Testing: Add tests for new features
- 📚 Documentation: Update README for new features
- 🔄 Pull Requests: Use clear commit messages
Areas for Contribution
- 🌍 Localization - Add support for new languages
- 🤖 AI Providers - Integrate new AI services
- 🎨 UI/UX - Improve terminal interface
- 📊 Analytics - Add usage statistics
License
This project is licensed under the MIT License.
Contacts
- Author: Andrey Bochkarev
- Email: andrey.bch.1976@gmail.com
- GitHub Issues: Report bugs or request features
- Discussions: Join community discussions
Made with ❤️ for the Linux community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_ebash-0.4.9.tar.gz.
File metadata
- Download URL: ai_ebash-0.4.9.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd638e763bd02f5128f174506769ba3c4ccff68d2056a801a4a20d0ef293d3c6
|
|
| MD5 |
4745b8af7b1258609639711f41d5f720
|
|
| BLAKE2b-256 |
62af5f69e5658a947f0cb852c5b7ad74da44bc2a2df2deeb0c46eb3c113b3ed2
|
File details
Details for the file ai_ebash-0.4.9-py3-none-any.whl.
File metadata
- Download URL: ai_ebash-0.4.9-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fede751dc34d1e263dd45f8b987a929e86e7816c86a9664e1028dc238af3d6d1
|
|
| MD5 |
04a847cbf9faff5599cdd0cb8aff38ea
|
|
| BLAKE2b-256 |
2bdc536df01db168c31ea7e34cbcc25ec1818d0464b14afbf08f26710f95894c
|