Skip to main content

AI-powered shell command assistant - convert natural language to safe executable commands

Project description

aish (AI Shell)

Convert natural language into safe shell commands. aish uses an LLM to translate your intent into bash, validates it for safety, and executes it.

Requirements

Python 3.10 or higher.

Installation

git clone <repo>
cd aish
pip install -e .

Configuration

Set up your LLM provider by running aish init.

Interactive mode:

aish init

Flag mode:

aish init --base-url "https://api.openai.com/v1" --api-key "sk-..." --model "gpt-4o"

Usage

Pass your prompt directly to aish run. No quotes needed.

aish run list all python files
aish run show disk usage --dry-run

Options

Option Short Description
--yes -y Skip confirmation for safe commands
--dry-run -d Show the command without executing

Safety

Built-in validation checks every command before execution:

  • ALLOW: Low risk. Runs immediately if you use --yes.
  • WARN: Medium risk. Always asks for confirmation, even with --yes.
  • DENY: High risk (like disk wipes or fork bombs). Blocked completely.

History

Your last 1000 commands are saved to ~/.aish/history in JSON Lines format. Old commands are automatically trimmed to save space.

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

aish_cli-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

aish_cli-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file aish_cli-0.1.0.tar.gz.

File metadata

  • Download URL: aish_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aish_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69151b017bc15386820b5128c9fdea6c6be8576eecd788da7a2cd3c89c9d5cdd
MD5 b2ba5c34244790f39544105f9ace7159
BLAKE2b-256 2544356121c91e06968a305410e1e44dcc6d1ca7dbf058443a8a519ee76e175b

See more details on using hashes here.

File details

Details for the file aish_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aish_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aish_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2d1e48be105473c26c06cc1f484e06a5566ab8aeff14db5d80a3a8a5a91ad52
MD5 8180a586b7a3771af4db21b3c8aaa6f9
BLAKE2b-256 a929a59f4a8f408b1fa003d7ffa6c14e1806534c3803f26fda1404a5d2abb83d

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