A command-line tool that transforms natural language into shell commands.
aish converts your natural language descriptions into executable shell commands, with optional confirmation before execution.
# From source
git clone https://cnb.cool/lzf.ai/aish.git
cd aish
cargo install --path .
# 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
# 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
# Run tests
cargo test
# Build release
cargo build --release
# Run with logs
RUST_LOG=debug cargo run -- "your query"
MIT