Catalog PyPI
Back to packageRELEASE DETAILS

0.5.26

PyPI

ai-ebash

Console utility for integrating artificial intelligence into a Linux terminal.

Published29 Sept 2025
Direct dependencies14
Transitive dependenciesNot calculated

README

Version 0.5.26 documentation

Ai-eBash!

Python Version License: MIT PyPI Version GitHub Stars

Integrate artificial intelligence into your terminal. Ask questions to ChatGPT, Deep Seek, Grok and many other large language models (LLM). Execute scripts and commands suggested by the neural network directly from the command line. Perfect for beginners in Linux and Windows administration.

🌍 Available in: English | Русский

pgram response1

Table of Contents

Description

Features

  • Quick AI queries — Get answers from large language models via the command line
  • No GUI — Communicate with your chosen AI in natural language and any locale: ai how to install Russian fonts?
  • Interactive dialog mode — Chat with AI in dialog mode with preserved conversation context
  • Code execution — Execute scripts and commands suggested by AI in the console
  • Friendly interface — Formatted output with syntax highlighting — just like you’re used to when working with neural networks
  • Multiple AI providers — Support for OpenAI, OpenRouter, DeepSeek, Anthropic and other popular providers
  • Multi-language support — En and Ru are available now. You can (help with translation) into other languages.

Quick Start

Install AI-eBash using one of the convenient methods.

Try asking the assistant a question, for example ai who are you?. In a couple of seconds, the neural network will respond:

program response1

On first launch, the program uses a Microsoft-hosted model — DeepSeek-R1-Lite-Preview with a public token. This is not the best option since you may see a quota-exceeded message due to high traffic, but it’s fine for a test run.

For full operation, you need to obtain a personal token and add it to the selected model in the program settings.

[!NOTE] AI-eBash can work with any neural network that supports API access. Today this includes almost all large language models (LLMs) on the market. How to add a new model.

Connecting to Neural Networks

AI-eBash ships with several popular models pre-configured, such as DeepSeek, Grok 4 Fast, Qwen3 Coder. However, provider policies don’t allow full operation without authorization. You must obtain a personal token (API_KEY) from the provider’s website.

Getting a Token (API_KEY) and Connecting to a Pre-installed Model

We recommend the provider OpenRouter — simple registration and dozens of popular models available for free with a single token.

  • Register on the website
  • Get a token by clicking Create API key. Save it — OpenRouter will show it only once!
  • Add the token to AI-eBash in the settings of the selected model
  • Make this model the current one

Done! Now the selected model will answer you in the console. You can connect any other model from this website in the same way.

[!NOTE] One OpenRouter token is valid for all models available from this provider.

A similar procedure applies to other providers, although with OpenRouter available, you may not need it.

Adding a New Model

To add a new model to AI-eBash, including a local model or one from major providers, simply enter in AI-eBash settings:

  • API_KEY (your personal token)
  • API_URL (API base URL)
  • model (model name)

You can find this information on the provider’s website in the API section.

Connection Example

Using the example of the free Meta: Llama 3.1 model listed on OpenRouter among dozens of other free models.

Open the model’s page and find the API section.

Among the connection examples, look for information similar to:

  • API_URL — for OpenRouter, this parameter is called base_url
  • model — listed as model

How to get API_KEY is described above.

Enter these values (without quotes) in AI-eBash settings and set this model as current. Now Meta: Llama 3.1 will answer your questions.

Examples

Quick Query

# Simple question
ai kernel update script

Dialog Mode

To start a dialog, use the -d key or simply type ai and press Enter. In dialog mode, AI-eBash preserves the conversation context throughout the session.

ai -d what python version is installed?
ai  # Enter

Running Code from AI Response

When in dialog mode, if the response contains code blocks — they are numbered. To run code, simply enter the block number in the console.

dialog mode

Security

[!WARNING] Never execute code suggested by the neural network if you’re not sure what it does!

Best Practices

  1. Review code before execution

    # Always check what AI suggests
    ai Delete all files from /tmp  # Don’t run this blindly!
    
  2. Use safe commands

    # Prefer these over destructive operations
    ai Show disk usage
    ai Show running processes
    

Installation

Ubuntu/Debian (pipx)

Recommended installation method

  1. Install pipx (if not installed):

    sudo apt update
    sudo apt install pipx python3-venv -y
    pipx ensurepath
    
  2. Restart the terminal

  3. Install AI-eBash:

    pipx install ai-ebash
    

Note: If pipx doesn’t work, you can install via pip:

pip install ai-ebash

Ubuntu/Debian (DEB Package)

  1. Download the latest DEB package from GitHub:

    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)
    
  2. Install the package:

    sudo dpkg -i ./ai-ebash.deb
    sudo apt-get install -f -y
    
  3. Restart the terminal

Windows (Experimental)

  1. Install Python 3.11+ (if not installed)

  2. Install AI-eBash:

    pip install ai-ebash
    
  3. Restart the terminal

Removal

If installed with pipx

pipx uninstall ai-ebash

If installed as DEB package

sudo apt remove ai-ebash
# Or for complete deletion, including configuration files:
sudo apt purge ai-ebash

or you can also use dpkg:

sudo dpkg -r ai-ebash
# Or for complete deletion, including configuration files:
sudo dpkg -P ai-ebash

If installed on Windows

pip uninstall ai-ebash

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)

And many others that support API access.

Configuration File

Settings are stored in:

  • Linux: ~/.config/ai-ebash/config.yaml
  • Windows: %APPDATA%\ai-ebash\config.yaml

Reset Settings

To restore defaults, delete the configuration file manually or run:

# For Linux
rm ~/.config/ai-ebash/config.yaml
# For Windows
rm %APPDATA%\ai-ebash\config.yaml

Contributing

I’ll be glad for any help!

Areas for Contribution

  • 🌍 Localization — Adding support for new languages (template), including README.md
  • 🤖 AI Providers — Integrating new AI providers
  • 🎨 UI/UX — Improving the configuration manager interface (yes, it’s not perfect)
  • 🔧 Tools — Creating additional utilities
  • 💡 Ideas — I welcome any ideas to improve and develop AI-eBash. Join the discussion

Here’s how to get started:

Development Environment Setup

  1. Fork the repository

  2. Clone your fork:

    git clone https://github.com/your-username/ai-ebash.git
    cd ai-ebash
    
  3. Set up the 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

License

This project is licensed under the MIT License.

Contacts


Created with ❤️ for the Linux community

⭐ Star on GitHub

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 14

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
certifi
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
certifi==2025.8.3runtime
charset-normalizer
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
charset-normalizer==3.4.3runtime
idna
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
idna==3.10runtime
markdown-it-py
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
markdown-it-py==3.0.0runtime
mdurl
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
mdurl==0.1.2runtime
platformdirs
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
platformdirs==4.4.0runtime
Pygments
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
Pygments==2.19.2runtime
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
requests==2.32.5runtime
rich
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
rich==14.1.0runtime
urllib3
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
urllib3==2.5.0runtime
openai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
openai==1.108.0runtime
PyYAML
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
PyYAML==6.0.2runtime
inquirer
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
inquirer==3.4.0runtime
prompt-toolkit
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
prompt-toolkit==3.0.52runtime

Distribution files

2 collected
ai_ebash-0.5.26-py3-none-any.whl

bdist_wheel · 44.48 KB · Python py3

Source file
ai_ebash-0.5.26.tar.gz

sdist · 9,297.14 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:bee499b27548ed51ca5ddc009ed23d617294feea8cd7dc385be487c0f7c0f27a

Other collected versions

View all collected versions →