Command Reference

Everything you need to use MXSH — shell prefixes, built-in commands, encrypted environment variable management, and security controls.

Shell Prefixes

Prefix any command with a shell identifier to run it in that shell — regardless of your OS. Click a card to copy the example command.

Built-in Commands

Core commands available in every MXSH session.

init Initial setup — configure API key and create working directory
help Display the full command reference
whoami Show current user and OS information
models Select AI model (GPT-5.2 Pro → GPT-5 Nano)
shells Change the default execution shell
cpu Show top 10 CPU-intensive processes
cd Navigate directories (~, -, .. supported)
env Manage encrypted environment variables
clear Clear screen and re-display the banner

Encrypted Env Management

Store, export, and import environment variables encrypted with AES-256-GCM. Your secrets never touch the filesystem in plain text.

env List all stored variables
env save <KEY> Prompt for a value and save it encrypted
env remove <KEY> Delete a stored variable
env export <KEY|*> Export to an encrypted .mxenv file
env import <FILE> Import variables from a .mxenv file

Security & Bypass Flags

Override specific security checks when you know the command is safe. Use these flags with caution.

--skip-ai-check Skip AI security analysis (use only for trusted commands)
--skip-dns-check Skip DNS security validation (use for internal servers)

Risk Levels

Every command is evaluated by the AI security engine and assigned a risk level.

safe Auto-executes without prompt
LOW Requests user confirmation
MEDIUM Requests user confirmation
HIGH Blocked by default
CRITICAL Blocked by default