Skip to main content

Console utility for integrating artificial intelligence into a Linux terminal.

Project description

Ai-ebash!

Console utility for integrating artificial intelligence into a Linux terminal. Allows you to ask an AI question and execute the scripts and commands suggested by the AI in the terminal. It will be useful for novice Linux administrators.

The project is in the pre-alpha stage. In case of problems with the installation or operation of the Ai-bash utility, please contact me.

Features

  • Send chat-style prompts to an LLM (configurable model and endpoint).
  • Parse Markdown responses and highlight/number fenced code blocks.
  • Interactive selection and (optional) execution of code blocks.
  • Rich console output via rich.
  • Configurable via config.yaml.

Requirements

  • Python 3.11+

Installation

PyPi (pipx) Package (Debian/Ubuntu)

  1. Install pipx (if not already installed):
sudo apt update
sudo apt install pipx python3-venv -y
pipx ensurepath
  1. Restart the terminal or update the PATH:
source ~/.bashrc
  1. Install ai-ebash:
pipx install ai-ebash

DEB Package (Debian/Ubuntu)

  1. Download the latest DEB package from GitHub Releases
  2. Install the package:
sudo dpkg -i ai-ebash_*.deb
# If there are dependency issues, run:
sudo apt-get install -f

Windows (experemental)

  1. Install Python v3.11+ (if not already installed):

  2. Open CMD or PowerShell and install ai-ebash:

pip install ai-ebash
  1. Restart Windows

Example

ai Hello AI! Write example script.

or

ai -d Hello AI! Write example script.

Uninstall

To completely remove the utility:

If installed via pipx:

pipx uninstall ai-ebash

If installed via DEB package:

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

If installed via Windows:

apt uninstall ai-ebash

You can also use dpkg.:

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

Security

Do NOT execute arbitrary code returned by an LLM without review. Executing assistant-provided code has security and safety risks. Recommended mitigations:

Contributing

  1. Localization to any languages
  2. Fork the repo and create a feature branch.
  3. Add tests for new behavior.
  4. Open a PR with a clear description.

License

MIT

Contact

andrey.bch.1976@gmail.com. Issues and PRs are welcome. Include logs and reproduction steps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_ebash-0.2.16b0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_ebash-0.2.16b0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_ebash-0.2.16b0.tar.gz.

File metadata

  • Download URL: ai_ebash-0.2.16b0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_ebash-0.2.16b0.tar.gz
Algorithm Hash digest
SHA256 937114b1ec7855378f479e342634c6c4e2021befa3d3769828fca65fa441bada
MD5 736d4af5e6285a5fa8f72fe38f0dff91
BLAKE2b-256 20a5679941a4a1a3df5e00f73d15ac8fce5d16a23b5dd37b02a638e4b588ec21

See more details on using hashes here.

File details

Details for the file ai_ebash-0.2.16b0-py3-none-any.whl.

File metadata

  • Download URL: ai_ebash-0.2.16b0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_ebash-0.2.16b0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab0bcd20dd28de7137540789b1fa48f925758ddff9e9600fd66edbd574524ec
MD5 9ca6fbe03bea2737b7deaa12d43dc03f
BLAKE2b-256 689418a619ca326ca249f68c9d4aadf80e1a4766c8f0eae9797ce62a4bb56963

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page