⚠️ Alpha Release: This is an early alpha version. Expect bugs and breaking changes.
AI-powered CLI that converts natural language instructions into executable shell commands using OpenRouter.
clai "find all TypeScript files modified in the last 7 days"
# Outputs: find . -name "*.ts" -mtime -7
clai "list top 10 largest files in current directory"
# Outputs: du -h * | sort -rh | head -10- 🤖 Natural language to shell commands using AI
- 🎨 Beautiful terminal UI with Ink
- 🔒 Safety checks for dangerous commands (rm -rf, etc.)
- 📝 Context-aware (current directory, shell type, git status)
- ⚡ Fast startup with Bun runtime
- 🌍 Cross-platform (Linux, macOS, Windows)
npm install -g @vdntio/claiDownload from Releases
See Installation Guide for detailed instructions.
-
Get an OpenRouter API key from openrouter.ai
-
Set your API key:
export OPENROUTER_API_KEY="your-key-here"
-
Run a command:
clai "your natural language instruction"
clAI uses TOML config files. Priority order:
./.clai.toml(project-level)~/.config/clai/config.toml(user-level)/etc/clai/config.toml(system-level)
Example config:
openrouter_api_key = "sk-..."
[providers.openrouter]
model = "qwen/qwen3-coder" # Default model (can override with anthropic/claude-3.5-sonnet, etc.)
[safety]
confirm_dangerous = true# Install dependencies
bun install
# Run in development mode
bun run dev
# Run tests
bun test
# Build
bun run buildclAI uses OpenRouter's API which charges per token. Default model is qwen/qwen3-coder (free tier available). You can override to use other models like anthropic/claude-3.5-sonnet (~$3 per million input tokens). Get credits at openrouter.ai.
MIT - See LICENSE for details.
Report bugs or request features at GitHub Issues.