Zsh plugin for generating complex shell commands from natural language. For context-aware coding, use Claude Code or Codex.
- Converts natural language to shell commands
- Supports OpenAI-compatible API endpoints
- Keyboard shortcuts:
Alt+Enter/Ctrl+⬇️(Linux/Windows),Option+Return(macOS)
Zsh, curl, jq, API key from your provider (OpenAI-compatible endpoint)
Add to .zsh_plugins.txt:
PsychArch/nlsh
Add to .zshrc after sourcing Zinit:
zinit light PsychArch/nlshAdd to .zshrc after sourcing znap.zsh:
znap source PsychArch/nlshgit clone https://github.com/PsychArch/nlsh ~/.nlsh
echo 'source ~/.nlsh/nlsh.plugin.zsh' >> ~/.zshrc
source ~/.zshrcType natural language, press keyboard shortcut, review and execute generated command.
export OPENAI_API_KEY="your-provider-api-key" # Required
export OPENAI_MODEL="z-ai/glm-4.7" # Optional, default: z-ai/glm-4.7
# Example models: x-ai/grok-4.1-fast, z-ai/glm-4.7
export OPENAI_URL_BASE="https://openrouter.ai/api/v1" # Optional, default: https://openrouter.ai/api/v1
export OPENAI_PROXY="..." # OptionalMIT License
