A universal shell that eliminates operating system barriers through intelligent command translation and AI-powered security validation.
MXSH is a cross-platform command-line shell designed to provide a unified interface across Windows, Linux, and macOS. Instead of requiring users to learn platform-specific command syntax, MXSH automatically detects and converts commands to work on any system while maintaining security through comprehensive validation.
Universal Command Translation
Execute commands in any shell syntax. MXSH automatically converts platform-specific commands to work on your current system. Use apt on Windows, winget on Linux, or brew anywhere.
AI-Powered Security Analysis Every command undergoes intelligent risk assessment before execution. The system evaluates potential dangers, destructive operations, and security implications through OpenAI's API.
DNS-Based Download Protection
Network downloads via curl or wget are validated against Cloudflare's malware-blocking DNS resolver, preventing connections to known malicious domains.
Encrypted Environment Management Store sensitive environment variables with AES-256-GCM encryption. Support for both machine-specific and password-based encryption ensures credential security.
Multi-Shell Support Execute commands in PowerShell, Bash, or CMD from a single interface using shell-specific prefixes or automatic routing.
Build from source using Rust:
git clone https://github.com/Mxshellit/Mxsh.git
cd Mxsh
cargo build --releaseSet up your OpenAI API key:
mxsh initRun commands naturally and let MXSH handle the rest:
apt install nodejsOn Windows, MXSH automatically converts this to winget install nodejs.
Comprehensive documentation is available in the docs/ directory:
- Introduction - Overview and core concepts
- Getting Started - Installation and setup guide
- Features - Detailed feature documentation
- Commands - Complete command reference
- Security - Security model and best practices
- Configuration - Customization and settings
- Operating System: Windows, Linux, or macOS
- Rust toolchain (for building from source)
- OpenAI API key (for AI-powered features)
help- Display command referenceinit- Initialize MXSH configurationwhoami- Show current user and OSmodels- Select AI modelshells- Configure default shellcpu- Display top processes by CPU usagecd- Enhanced directory navigationenv- Manage encrypted environment variablesclear- Clear screen and redisplay banner
Execute commands in specific shells:
$: Get-Process # PowerShell
#: ps aux # Bash
>: dir /w # CMDRisk Levels Commands are classified as SAFE, LOW, MEDIUM, HIGH, or CRITICAL based on potential impact. High-risk operations require explicit user confirmation or bypass flags.
Whitelisted Commands
Common read-only commands like ls, cat, and git execute immediately without AI analysis.
Bypass Flags For trusted operations:
--skip-ai-check- Bypass AI security analysis--skip-dns-check- Skip DNS validation for downloads
Contributions are welcome. Please refer to the repository's contribution guidelines for details on submitting issues, feature requests, and pull requests.
See the LICENSE file for details.
For issues and questions, visit the GitHub repository.