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

  • Sends requests to LLM from the command line with a simple command and receives responses in a formatted, easy-to-read form
  • Supports dialog mode (key -d). By default, the quick questions mode with a return to the console works without a key.
  • In the dialog mode, it allows you to run scripts proposed by the neural network (be careful!)

Requirements

  • Python 3.11+

Installation

Debian/Ubuntu (pipx package)

  1. Install pipx (if not already installed):
sudo apt update
sudo apt install pipx python3-venv -y
pipx ensurepath
  1. Restart the terminal

  2. Install ai-ebash

pipx install ai-ebash

Note: If you encounter issues with pipx not recognizing the package, you can also install it using pip:

pip install ai-ebash

Debian/Ubuntu (*.deb package)

  1. Download the latest DEB package from GitHub Releases
wget -qO latest.deb $(wget -qO- https://api.github.com/repos/Vivatist/ai-ebash/releases/latest \
  | grep "browser_download_url" | grep ".deb" | cut -d '"' -f 4)
  1. Install the package:
sudo dpkg -i ./latest.deb
sudo apt-get install -f -y
  1. Restart the terminal

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 python3-ai-ebash
# Or for complete deletion, including configuration files:
sudo apt purge python3-ai-ebash

If installed via Windows:

pip 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.4.2.tar.gz (371.7 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.4.2-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file ai_ebash-0.4.2.tar.gz.

File metadata

  • Download URL: ai_ebash-0.4.2.tar.gz
  • Upload date:
  • Size: 371.7 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.4.2.tar.gz
Algorithm Hash digest
SHA256 45805f97184266ea8c958bb8509b30309a308061c501667c21885dddd2cd013c
MD5 4fdad5ff504522b914c5f7a9e67329a3
BLAKE2b-256 7f2f51b9c65154ff63863aa3ce8c1bc960aa61214217f368baa5f69974f73058

See more details on using hashes here.

File details

Details for the file ai_ebash-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: ai_ebash-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 24.3 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f643b3a83ab034b4a06f1732d454d6b16cd4a9ac23c1a58e2704fef65e980e
MD5 3bca616526067a04347ba2b6142844e7
BLAKE2b-256 39de1d59a6d1c73b9c929d0d0ecd6a81616bc4db8976c597e30ac640ab39412d

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