AI-powered command line assistant that generates and executes shell commands
Project description
⭐ Star Shell
An AI-powered command line assistant that generates and executes shell commands using natural language.
Features
- 🤖 AI-Powered: Uses OpenAI GPT or Google Gemini to understand your requests
- 💬 Interactive Chat Mode: Have conversations with your shell assistant
- 🛡️ Safety First: Built-in command safety checks and confirmations
- 🎯 Context Aware: Understands your current directory and system environment
- 🔒 Secure: Encrypted API key storage
- 🎨 Beautiful Output: Rich formatting and syntax highlighting
Installation
pip install star-shell
Quick Start
-
Initialize Star Shell:
star-shell initChoose your AI backend (OpenAI or Gemini) and provide your API key.
-
Ask for commands:
star-shell ask "list all Python files in this directory"
-
Start interactive chat:
star-shell chat
Commands
star-shell init- Set up your AI backend and API keysstar-shell ask "your request"- Generate a command for your requeststar-shell chat- Start an interactive chat session
Supported AI Backends
- OpenAI GPT-3.5 Turbo - Requires OpenAI API key
- Google Gemini Pro - Requires Google AI API key
Safety Features
Star Shell includes built-in safety checks for potentially dangerous commands:
- Warns about destructive operations (rm, format, etc.)
- Confirms before executing system-level changes
- Provides clear descriptions of what commands do
Examples
# File operations
star-shell ask "create a backup of my config files"
# System information
star-shell ask "show me disk usage"
# Development tasks
star-shell ask "start a Python web server on port 8000"
# Git operations
star-shell ask "commit all changes with message 'update docs'"
Requirements
- Python 3.8+
- OpenAI API key OR Google AI API key
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 star_shell-0.2.0.tar.gz.
File metadata
- Download URL: star_shell-0.2.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db82758deee71ac32b6e2b5afec2cb63142fd12bf6100e7878a9ed78bc2060e7
|
|
| MD5 |
7b54ce6dac061549e23f703497e493df
|
|
| BLAKE2b-256 |
cda0ddda1f9d47ce3b9cda4c240bffd49300a6469358f97a2e0516032ba1a2f2
|
File details
Details for the file star_shell-0.2.0-py3-none-any.whl.
File metadata
- Download URL: star_shell-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab7aea8126f05c5f68c9f5cdb93fb63b64afb4d848abce15b0884f0fdf254ece
|
|
| MD5 |
24a62aa181dc5c5f7f22f044805cccd0
|
|
| BLAKE2b-256 |
0c1d64cab802ae7895edd0cc10a6e8474f507ea451d51fe419d17fa71e5d4253
|