Skip to main content

AI-Powered Terminal Command Assistant - Natural Language to Commands

Project description

๐Ÿš€ Sheller - AI-Powered Terminal Command Assistant

Transform natural language into executable commands with style!

Python 3.8+ License: MIT Platform: Windows Platform: macOS Platform: Linux

โœจ Features

  • ๐Ÿง  Natural Language Processing: Type requests in plain English
  • โšก Smart Command Translation: Automatic Unix-to-Windows command conversion
  • ๐ŸŽจ Retro Terminal UI: Beautiful, nostalgic interface with colors and ASCII art
  • โŒจ๏ธ Keyboard Shortcuts: Ctrl+K for processing, arrow keys for history
  • ๐Ÿ”„ PowerShell Fallback: Intelligent fallback from CMD to PowerShell
  • ๐Ÿ“ฑ Cross-Platform: Works on Windows, macOS, and Linux
  • ๐Ÿš€ Real-time Execution: See commands execute with live output
  • ๐Ÿ“š Command History: Navigate through your command history

๐ŸŽฏ Use Cases

  • System Administrators: Quick system diagnostics and management
  • Developers: Rapid command execution without remembering syntax
  • Power Users: Streamlined terminal workflow
  • Beginners: Learn commands through natural language
  • DevOps Engineers: Efficient system operations

๐Ÿš€ Quick Start

Prerequisites

Before using Sheller, you need to set up your Google Gemini API Key:

1. Get Your Gemini API Key

  1. Visit Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Copy the generated API key

2. Set Environment Variable

Windows (PowerShell):

# Temporary (current session only)
$env:GEMINI_API_KEY="your_api_key_here"

# Permanent (add to user profile)
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "your_api_key_here", "User")

Windows (Command Prompt):

# Temporary (current session only)
set GEMINI_API_KEY=your_api_key_here

# Permanent (add to user profile)
setx GEMINI_API_KEY "your_api_key_here"

macOS/Linux:

# Temporary (current session only)
export GEMINI_API_KEY="your_api_key_here"

# Permanent (add to ~/.bashrc or ~/.zshrc)
echo 'export GEMINI_API_KEY="your_api_key_here"' >> ~/.bashrc
source ~/.bashrc

3. Alternative: Create .env File

Create a .env file in your project directory:

# .env file
GEMINI_API_KEY=your_api_key_here

Installation

Option 1: Python Package (Recommended for Developers)

pip install sheller

Option 2: Windows Installer (Recommended for End Users)

Download the latest .exe installer from our releases page.

Usage

Launch the Application

sheller

Natural Language Commands

Type: "show me all files in this directory"
Press: Ctrl+K
Result: dir /a
Press: Enter to execute

Direct Commands

Type: dir
Press: Enter
Result: Executes immediately

โŒจ๏ธ Keyboard Shortcuts

Shortcut Action
Ctrl+K Process natural language input
Enter Execute command
โ†‘/โ†“ Navigate command history
Ctrl+C Exit application
Backspace Edit current input
Delete Remove characters

๐Ÿ”ง Supported Commands

File Operations

  • List files: ls โ†’ dir
  • List hidden files: ls -a โ†’ dir /a
  • View file: cat โ†’ type
  • Copy file: cp โ†’ copy
  • Move file: mv โ†’ move
  • Delete file: rm โ†’ del

System Information

  • Process list: ps aux โ†’ tasklist
  • System info: systeminfo
  • Network config: ifconfig โ†’ ipconfig
  • Disk space: df โ†’ PowerShell equivalent
  • Memory usage: wmic commands

Network Tools

  • Ping: ping
  • Traceroute: traceroute โ†’ tracert
  • DNS lookup: nslookup
  • Network connections: netstat

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Natural       โ”‚    โ”‚   Command        โ”‚    โ”‚   Execution     โ”‚
โ”‚   Language      โ”‚โ”€โ”€โ”€โ–ถโ”‚   Translation    โ”‚โ”€โ”€โ”€โ–ถโ”‚   Engine        โ”‚
โ”‚   Input         โ”‚    โ”‚   Engine         โ”‚    โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚                       โ”‚                       โ”‚
         โ–ผ                       โ–ผ                       โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Retro UI      โ”‚    โ”‚   Shell          โ”‚    โ”‚   Output        โ”‚
โ”‚   Interface     โ”‚    โ”‚   Detection      โ”‚    โ”‚   Display       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Development

Prerequisites

  • Python 3.8+
  • pip
  • setuptools

Setup Development Environment

# Clone the repository
git clone https://github.com/sheller/sheller.git
cd sheller

# Install development dependencies
pip install -e .

# Run the application
python src/sheller/main.py

Building the Package

# Build source distribution
python -m build --sdist

# Build wheel
python -m build --wheel

# Install locally
pip install dist/sheller-1.0.0-py3-none-any.whl

๐Ÿ“ฆ Distribution

Python Package

  • PyPI: pip install sheller
  • Source: GitHub releases
  • Wheel: Pre-built for multiple Python versions

Windows Installer

  • Inno Setup: Professional installer with custom branding
  • Auto-updates: Built-in update mechanism
  • Desktop shortcuts: Easy access for end users

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Areas

  • Enhanced AI command suggestions
  • Plugin system for custom commands
  • Configuration file support
  • Theme customization
  • Command templates
  • Integration with popular shells

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • ASCII Art: Inspired by retro terminal aesthetics
  • Command Translation: Based on Unix-to-Windows mappings
  • UI Design: Firebase terminal inspiration
  • Community: All contributors and users

๐Ÿ“ž Support

๐Ÿš€ Roadmap

v1.1.0 (Q2 2024)

  • AI-powered command suggestions
  • Plugin architecture
  • Configuration management

v1.2.0 (Q3 2024)

  • Cloud sync for settings
  • Command templates
  • Advanced theming

v2.0.0 (Q4 2024)

  • Machine learning integration
  • Cross-device sync
  • Enterprise features

Made with โค๏ธ by the Sheller Team

Transform your terminal experience today!

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

sheller_ai-1.0.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

sheller_ai-1.0.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file sheller_ai-1.0.0.tar.gz.

File metadata

  • Download URL: sheller_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for sheller_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3bdcf6e02ab0077cc853cd8712406401d495df7be0e86a322c39cf713c4159e7
MD5 9fd37b1ec69ec4b2914072041de5c338
BLAKE2b-256 29b2c37f887aa542a0cf13b0c1f3914dd34846f0e518dd45fa481d7b2175794e

See more details on using hashes here.

File details

Details for the file sheller_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sheller_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for sheller_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b91d52dedbd4a5c365861bac8604539abd12e96d9a169c96560553962e0ca45
MD5 a2f332d075f27c4c029454281b82eb9c
BLAKE2b-256 2c9b1a1c3bec8cf1a60d1362697b06052408f36500bc678aa13321b69caadb56

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