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

Uploaded Python 3

File details

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

File metadata

  • Download URL: star_shell-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d8ff23d3a8f78ca574a7cf78bbe9897ab17cd23d37a4c2cfe8f458141b1a42f2
MD5 7e42d2e1bb9d0b5fa6f9fc717107d6b1
BLAKE2b-256 11de9ceeb8c55c6b84d9869308f74c8a6108cba886ac6cde38ae73514e0408d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: star_shell-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf4a3b758c95161c51f4e1e747d4d6c0618ac6f501f42af79dffd9e73d21ebfa
MD5 99c14cec26aeb04a50373d64697cc79c
BLAKE2b-256 c5dbb63af149f993d72e1d994348c6a94fe7baba0dbec6fdd45df854856dcd9c

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