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.1.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.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: star_shell-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fc5f632b2ab88064bdacd2437b429ac910808bb1f2d3008527d265860edb4ba6
MD5 13823985317d7f1224299354f6bb5536
BLAKE2b-256 bd08c31b27d8c1edc7fc9f7ef331e56b61f7d7538b97b36e613a79dafe3caf73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: star_shell-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0845186a70eeaa5a339d1f936430c7a67ffacca65c6e3425f00f11ee7befe4ef
MD5 391519aef2bf0051ba3404b97b8544fb
BLAKE2b-256 e5b0af1816e12da894b2b02cc71e261962551e97b5bf5b07391811b1a9a7ae87

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