Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x

A natural language shell command executor.

  • No external dependencies (just curl or wget)
  • Supports OpenAI, Gemini, and Anthropic as providers
  • Shows command before execution for confirmation
  • Automatically picks the best available model

Installation

curl -sSL https://raw.githubusercontent.com/arpitbbhayani/x/master/install.sh | sudo sh

Set your API key (choose one):

export OPENAI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export GEMINI_API_KEY="your-key"

Add to your shell config (~/.bashrc, ~/.zshrc, etc):

echo 'export OPENAI_API_KEY="your-key"' >> ~/.bashrc

Usage

x <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 files

The script generates a command and asks for confirmation before executing.

License

MIT

About

Run shell commands in natural language.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages