@nithishz/clix
v1.2.5
Published
A CLI companion tool that explains commands flag-by-flag, generates commands from natural language, and builds your personal command library.
Downloads
75
Maintainers
Readme
clix
An CLI tool that explains commands flag-by-flag, generates commands from natural language using AI, and builds your personal command library.
CLI Demo Recording

Features
- Explain any shell command — flag by flag, with an optional beginner mode. Beginner mode would explain the command in even more simpler terms
- Generate a command from plain English description
- Update your AI model and token settings with an interactive wizard
- Save commands locally with tags and descriptions. This could be reused in the future
- Browse your saved commands with search and tag filters
Prerequisites
- Node.js ≥ 18.0.0
- An API key from one of the supported providers:
Installation
Global Install (Recommended)
Install globally to use clix from anywhere in your terminal:
npm install -g @nithishz/clixThen run:
clix explain "ls -la"Local Install (Inside a Project)
If you prefer to install it locally inside a Node.js project:
npm install @nithishz/clixThen run with:
npx clix explain "ls -la"One-Time Usage (No Install)
You can also run it directly without installing:
npx @nithishz/clix explain "ls -la"Getting Started
Run the interactive setup to choose your AI provider, model, and enter your API key (masked):
clix initThis allows you to:
- Provider selection — Anthropic, OpenAI, or Google Gemini
- Model selection — pick from available models for your chosen provider
- API key — enter your provider-specific API key
Your configuration is saved to ~/.clix/config.json and persists across sessions.
Supported Providers & Models
| Provider | Models | Env Variable |
| ----------------- | ----------------------------------------------------------------------- | ------------------- |
| Anthropic | Claude 4.6 Sonnet, Claude 4.6 Opus, Claude Haiku 4.5 | ANTHROPIC_API_KEY |
| OpenAI | GPT-5.4, GPT-5.4 Pro, GPT-5 Mini, GPT-4o | OPENAI_API_KEY |
| Google Gemini | Gemini 3.1 Pro, Gemini 3.1 Flash-Lite, Gemini 2.5 Flash, Gemini 2.5 Pro | GOOGLE_API_KEY |
Alternative Configuration
You can also configure API Keys for your model via environment variables instead of clix init:
# Anthropic
export ANTHROPIC_API_KEY=your-api-key-here
# OpenAI
export OPENAI_API_KEY=your-api-key-here
# Google Gemini
export GOOGLE_API_KEY=your-api-key-hereCommands
init — Set up your AI provider, model and API Key
clix initInteractive setup wizard to configure your preferred AI provider, model, and API key. Run this once after installation, or anytime you want to switch providers or update model or update API Key.
explain — Understand any shell command
clix explain "<command>"
clix explain "<command>" --beginnerBreaks down what a command does, flag by flag. Add --beginner (or -b) for a plain-English explanation with examples.
Examples:
clix explain "find . -name '*.log' -mtime +30"
clix explain "docker ps -a --filter status=exited" --beginner
clix explain "git log --oneline --graph --all" -bgenerate — Create a command from plain English
clix generate "<description>"Describe what you want to do and clix generates the correct shell command.
Examples:
clix generate "find all files larger than 100MB and sort by size"
clix generate "kill the process running on port 3000"
clix generate "compress all jpg files in the current directory"update — Change AI model or token settings
clix updateLaunches an interactive prompt to update the AI model and max token configuration stored in ~/.clix/config.json.
save — Save a command for later
clix save "<command>"
clix save "<command>" --tag <tag> [<tag>...]
clix save "<command>" --description "<description>"Saves a command to your local library. You can optionally add tags and a description to make it easier to find later.
Examples:
clix save "docker ps -a --filter status=exited"
clix save "lsof -i :3000" --tag networking ports --description "Find what is using a port"
clix save "git log --oneline --graph --all" -t git historysaved — View and manage saved commands
clix saved # List all saved commands
clix saved --tag <tag> # Filter by tag
clix saved --search <keyword> # Search by keyword
clix saved --tags # List all tags in use
clix saved --delete <id> # Delete a command by IDExamples:
clix saved
clix saved --tag networking
clix saved --search docker
clix saved --tags
clix saved --delete 3Future Features
- Custom model support (bring your own model / self-hosted LLMs)
