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.0.tar.gz
(21.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_ai_shell-0.1.0.tar.gz.
File metadata
- Download URL: py_ai_shell-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d314d6c016403cd9b02199914f22664d2ec55516aaf180ae0db24f84366701c
|
|
| MD5 |
ae8cbb63e8349d765642db489411ca01
|
|
| BLAKE2b-256 |
c7cef058ceccd3ab41b785c1c2789a2eaa5aed13701020d2c70c7623ce01d6e4
|
File details
Details for the file py_ai_shell-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_ai_shell-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8832724d6384c6ccc3ce6ab7b662facb2a6dba9a8cc9a6cf0f238cb0f5621f6
|
|
| MD5 |
5bc67e6698640515b1589497d76e5daf
|
|
| BLAKE2b-256 |
e4514179a57906253066a4d60c08d6262d192bab27ef72286ec1971ea2b3b770
|