Zsh AI Cmd — AI skill for Claude Code
Zsh plugin: natural language to shell commands with AI.
How to install Zsh AI Cmd
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kylesnowschwartz/zsh-ai-cmd and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Zsh AI Cmd does
Zsh plugin: natural language to shell commands with AI.
Alternatives in AI
- Invisible Dots — Open-source, self-hosted alternative to OpenAI Dots, Meta Muse, Grok Bot, Manus Cue and Claude Cowork 31.8k ★
- Humanizer — A Claude Code skill that removes signs of AI-generated writing from text, making it sound more natural and hum 11.3k ★
- BrowserSkill — Let AI agents use your real, logged-in browser without interrupting your work 9.1k ★
README
zsh-ai-cmd
Natural language to shell commands with ghost text preview.

Install
Requires `curl`, `jq`, and an API key for your chosen provider (or a Claude subscription for the `claude-code` provider).
# Clone
git clone https://github.com/kylesnowschwartz/zsh-ai-cmd ~/.zsh-ai-cmd
# Add to .zshrc
source ~/.zsh-ai-cmd/zsh-ai-cmd.plugin.zsh
# Choose your provider (default: anthropic)
export ZSH_AI_CMD_PROVIDER='anthropic' # or: openai, gemini, deepseek, ollama, copilot, claude-code
# Set API key for your chosen provider
export ANTHROPIC_API_KEY='sk-ant-...'
export OPENAI_API_KEY='sk-...'
export GEMINI_API_KEY='...'
export DEEPSEEK_API_KEY='sk-...'
# Ollama and Copilot need no key (local services)
# Claude Code uses your existing Claude subscription (requires: npm install -g @anthropic-ai/claude-code && claude login)
# Or use macOS Keychain
security add-generic-password -s 'anthropic-api-key' -a "$USER" -w 'sk-ant-...'
Usage
- Type a natural language description
- Press
Ctrl+Zto request a suggestion - Ghost text appears showing the command:
find large files → find . -size +100M - Press
Tabor→to accept, or keep typing to dismiss
When the model sees more than one reasonable approach, the ghost text shows a cycle counter (`⟲ 1/3`) — press `Ctrl+Z` again to cycle through the alternatives, then `Tab` to accept the one showing.
Destructive suggestions (`rm`, `kill`, `sed -i`, history rewrites, …) are tinted red and marked with `⚠` so you notice before accepting. Providers without structured output (`copilot`, `claude-code`) return a single suggestion and can't flag destructive commands.
Configuration
ZSH_AI_CMD_PROVIDER='anthropic' # Provider: anthropic, openai, gemini, deepseek, ollama, copilot, claude-code
ZSH_AI_CMD_KEY='^z' # Trigger key (default: Ctrl+Z)
ZSH_AI_CMD_HIGHLIGHT='fg=8' # Ghost text style (zsh region_highlight format)
ZS
Related Skills
AI Shell
A local-first, privacy-friendly natural-language Linux/macOS command assistant. Ask in plain English or Chines
Zsh Claude Code Shell
Zsh plugin that integrates Claude Code CLI into your shell. Chat with Claude and execute AI-generated commands
Zsh AI Prompt
Zsh plugin for inline AI-powered shell command generation
Comfyui Workflow Skill
Natural language → ComfyUI workflow JSON. 34 built-in templates, 360+ node definitions, auto model download. S
Alibabacloud Ack MCP Server
Alibaba Cloud's ack-mcp-server unifies container operations capabilities, enabling AI assistants and third-par
VibeGame
VibeGame: Vibe Your Dream Game -- An open-source self-evolving multi-agent framework with an AI-Native game en
Related Agents
Shell Scripting Pro
Write robust shell scripts with proper error handling, POSIX compliance, and automation patterns. Masters bash
Claude Code Leaks
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you co
Business Logic Analyst
Business logic analysis specialist. Extracts business rules, explains business processes in natural language,