Metadata-Version: 2.4
Name: aish-cli
Version: 0.1.0
Summary: AI-powered shell command assistant - convert natural language to safe executable commands
Author-email: Your Name <your.email@example.com>
License: MIT License
        
        Copyright (c) 2026 Kuroome
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/yourusername/aish
Project-URL: Repository, https://github.com/yourusername/aish.git
Project-URL: Issues, https://github.com/yourusername/aish/issues
Keywords: ai,shell,cli,command,assistant,gpt
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=1.0.0
Requires-Dist: typer[all]>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tomli-w>=1.0.0
Dynamic: license-file

# 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

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

## Configuration

Set up your LLM provider by running `aish init`.

**Interactive mode:**
```bash
aish init
```

**Flag mode:**
```bash
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.

```bash
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.
