A natural language shell command executor.
- No external dependencies (just
curlorwget) - Supports OpenAI, Gemini, Anthropic, and Ollama as providers
- Shows command before execution for confirmation
- Automatically picks the best available model
curl -sSL https://raw.githubusercontent.com/arpitbbhayani/x/master/install.sh | sudo shSet your API key (choose one):
export OPENAI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export GEMINI_API_KEY="your-key"
export OLLAMA_MODEL="llama3.2"Add to your shell config (~/.bashrc, ~/.zshrc, etc):
echo 'export OPENAI_API_KEY="your-key"' >> ~/.bashrcx <instruction>Examples:
x get all the git branches
x list all files modified in the last 7 days
x show disk usage of current directory
x count lines in all python filesThe script generates a command and asks for confirmation before executing.
MIT