Skip to content

CLI Options

Terminal window
msh [options] [query]
OptionDescription
<query>Natural language query to translate
-x, --executeTranslate and execute the command immediately
-n, --dry-runShow command with safety analysis, don’t execute
-r, --repo-contextUse project context for this query
OptionDescription
--setupRun the setup wizard for API key configuration
--provider <name>Set AI provider (opencode-zen or openrouter)
--model <id>Set default model
--modelsList available models for current provider
--theme <name>Set color theme
--themesList available themes
--safety <level>Set safety level (strict, moderate, relaxed)
OptionDescription
-h, --helpShow help message
-v, --versionShow version number
Terminal window
# Translate a query (prints the command)
msh "list all javascript files"
# Output: find . -name "*.js"
Terminal window
# Translate and run
msh -x "show current git branch"
# Executes: git branch --show-current
Terminal window
# See command with safety analysis
msh -n "delete all node_modules folders"
# Shows:
# Command: find . -name "node_modules" -type d -prune -exec rm -rf {} +
# Severity: medium
# Reason: Recursive deletion operation
Terminal window
# Launch the interactive TUI
mshell
Terminal window
# Switch to OpenRouter
msh --provider openrouter
# Switch back to OpenCode Zen
msh --provider opencode-zen
Terminal window
# List available models
msh --models
# Set default model
msh --model claude-sonnet-4.5
Terminal window
# List themes
msh --themes
# Set theme
msh --theme dracula
Terminal window
# Configure API key and preferences
msh --setup
CodeDescription
0Success
1General error
2Invalid arguments
3API error
4Command blocked by safety system
VariableDescription
OPENCODE_ZEN_API_KEYAPI key for OpenCode Zen provider
OPENROUTER_API_KEYAPI key for OpenRouter provider
DEBUG_API=1Enable API debugging output
CommandPurpose
mshCLI mode - quick one-off translations
mshellTUI mode - interactive interface with themes, history, shortcuts