logo
0
0
WeChat Login

aish - AI-powered Shell Assistant

A command-line tool that transforms natural language into shell commands.

English | 中文

Overview

aish converts your natural language descriptions into executable shell commands, with optional confirmation before execution.

Features

  • 🚀 Natural language to shell command
  • 🔧 Support for multiple LLM providers (OpenAI, custom endpoints)
  • ✅ Optional confirmation before execution
  • 📝 Editable generated commands
  • 🔄 Pipe-friendly output

Installation

# From source git clone https://cnb.cool/lzf.ai/aish.git cd aish cargo install --path .

Usage

# Interactive mode (default) - shows command and asks for confirmation aish "find all json files larger than 1MB in current directory" # Auto-execute without confirmation aish --run "list all running node processes" # Pipe mode - output raw command for shell integration aish "kill process on port 3000" | sh # Execute via pipe aish "find large files" > cmd.sh # Save to file aish "show disk usage" | fzf | sh # Combine with fzf

Configuration

# Set API key aish config set api_key YOUR_API_KEY # Set API endpoint (for custom providers) aish config set endpoint https://api.openai.com/v1 # Set model aish config set model gpt-4 # View current config aish config list

Development

# Run tests cargo test # Build release cargo build --release # Run with logs RUST_LOG=debug cargo run -- "your query"

License

MIT

About

AI-powered Shell Assistant

1008.00 KiB
0 forks0 stars1 branches1 TagREADMEMIT license
Language
Rust93.1%
Dockerfile4.8%
Makefile2.1%