Skip to main content

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

  1. Initialize Star Shell:

    star-shell init
    

    Choose your AI backend (OpenAI or Gemini) and provide your API key.

  2. Ask for commands:

    star-shell ask "list all Python files in this directory"
    
  3. Start interactive chat:

    star-shell chat
    

Commands

  • star-shell init - Set up your AI backend and API keys
  • star-shell ask "your request" - Generate a command for your request
  • star-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

star_shell-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

star_shell-0.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file star_shell-0.1.0.tar.gz.

File metadata

  • Download URL: star_shell-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for star_shell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42c3281db53b01d833b1d60387c34ac83123dda0feb47784f541113295eea5b9
MD5 48c4ff84af5cd74c6f54f1dd3f10d8b8
BLAKE2b-256 364952a58956e80e3e8a7a8b1527c027b2ff6e388b26dd23744023b9f725b170

See more details on using hashes here.

File details

Details for the file star_shell-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: star_shell-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for star_shell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 266e07ceb7ecbb34282644589cbe01e2e1e575884eb014295f8caf469f766c9e
MD5 6236d8e295589e303bc5ca7faa277f43
BLAKE2b-256 b7ec01ed27115a44a221f7462cc89a5d4937f062c12ca31402391730cbffe94f

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