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 bash code blocks.
  • Interactive selection and (optional) execution of code blocks.
  • Rich console output via rich.
  • Configurable via config.toml.

Requirements

  • Python 3.9+

Installation Ubuntu/Debian

  1. Install pipx (if not already installed):

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

    source ~/.bashrc
    
  3. Install ai-ebash:

    pipx install ai-ebash
    

Example

ai Hello AI! Write example script.

or

ai -run Hello AI! Write example script.

Removal

To completely remove the utility:

pipx uninstall 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.13.tar.gz (13.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.13-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_ebash-0.2.13.tar.gz
  • Upload date:
  • Size: 13.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.13.tar.gz
Algorithm Hash digest
SHA256 cae5298819102f535ffead5478e4c6ee1f97cd7ddee0118a3ba1a732ea928ac9
MD5 2605eefdf43a076551cc53637a347900
BLAKE2b-256 10ff2c8d2ec6f66c90e1b0de1dcbb5e7d36d49454db8f477928b1fa43f00305d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_ebash-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 c22f55b2ea11ddddf0aeb055d7174648c15de72865809711db47dab13f222049
MD5 e9eee5384872fad9468dfabbe6dae992
BLAKE2b-256 3f038e11a08cfe0f2d339bee19863d963128429b40321f29ddcf8d15222762f7

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