../

Basher

Basher is a CLI AI Agent that interacts with OpenAI-compatible LLM API for executing coding tasks.

The only tool Basher ever uses is Bash. Whether it’s finding, reading, or editing files, Basher always generates a small Bash script to get the job done.

Download

basher-0.1.0.tar.gz

Installation

To use Basher, ensure you have Python 3 installed. Basher only uses Python standard library. No other Python dependencies are required.

But Basher depends on these command line utils:

Please make sure you have installed them.

Usage

First, you can create an AGENTS.md as context file.

To run Basher, you’ll need to set a few environment variables prior to execution:

Environment Variables

Run

You can run the Basher CLI from your terminal like this:

bash export BASHER_API_KEY='your_api_key_here' python basher.py 'your task here`'

Sandbox Security

Basher executes arbitrary Bash commands generated by LLM, which can be dangerous without proper isolation. We recommend running Basher inside a sandbox to protect your system.

This project provides a basher.firejail.profile for use with Firejail, a Linux security sandbox. The profile ensures that:

Usage

Run Basher with Firejail:

bash firejail --profile=basher.firejail.profile python basher.py "your task here"


Email: i (at) mistivia (dot) com