Skip to main content

AI-powered shell assistant

Project description

AI Shell (Python Version)

AI-powered shell assistant that generates and explains shell commands based on natural language prompts.

Installation

pip install ai-shell

Usage

# Start AI Shell
ai

# Run with a prompt
ai "list all files in the current directory"

# Configure AI Shell
ai config set OPENAI_KEY=your_api_key

Features

  • Generate shell commands from natural language prompts
  • Explain what commands do
  • Analyze failed commands and suggest fixes
  • Track command history for context
  • Support for multiple shells (bash, zsh, fish, PowerShell)
  • Configurable API endpoints and models

Configuration

You can configure AI Shell using the config command:

# Set your OpenAI API key
ai config set OPENAI_KEY=your_api_key

# Set the model to use
ai config set MODEL=gpt-4o-mini

# Enable silent mode (less verbose output)
ai config set SILENT_MODE=true

License

MIT

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

py_ai_shell-0.1.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

py_ai_shell-0.1.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file py_ai_shell-0.1.1.tar.gz.

File metadata

  • Download URL: py_ai_shell-0.1.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for py_ai_shell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 62bfa0797566c1d1060e044ca84969ea87c270a679486b541e90462f2562c04a
MD5 b304b197a102e5c8769aa0d1cbb02a8f
BLAKE2b-256 80b35125b341ea21a0da34edc6c85a7a0e35e710bf1e0b6b798153f103f0af5e

See more details on using hashes here.

File details

Details for the file py_ai_shell-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_ai_shell-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for py_ai_shell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cf941bffc6a79cb374e27edafc53693561e2c4e9066569afa1cc0dd3be38004
MD5 4be740c4499a0706ddb0e0dda98b1f4c
BLAKE2b-256 45f7f7a398b1c0f9ec5de709e9eb88b1fc59f08480f17fdd01fc7e5373c00a3d

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