Scripts2026年4月1日·1 分钟阅读

AI Shell — Natural Language to Shell Commands

AI Shell converts natural language into shell commands using AI. 5.2K+ stars. 13+ languages, chat mode, custom endpoints. MIT. By Builder.io.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

# Install
npm install -g @builder.io/ai-shell

# Set API key
ai config set OPENAI_KEY=sk-...

# Convert natural language to commands
ai "list all log files larger than 10MB"
# Suggests: find . -name "*.log" -size +10M
# [E]xecute, [R]evise, [C]ancel

# Chat mode
ai chat

介绍

AI Shell is a CLI tool that converts natural language into shell commands using AI, inspired by GitHub Copilot X CLI. With 5,200+ GitHub stars and MIT license by Builder.io, it supports 13+ languages, interactive chat mode, silent mode for scripting, custom OpenAI API endpoints, and a visual config UI. Describe what you want in plain English, get executable commands with explanations.

Best for: Developers who want natural language shell command generation Works with: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf


Key Features

  • Natural language to shell commands
  • 13+ language support
  • Interactive chat mode
  • Execute, revise, or cancel suggestions
  • Custom API endpoints
  • Silent mode for automation

FAQ

Q: What is AI Shell? A: Natural language to shell commands with 5.2K+ stars. 13+ languages, chat mode, by Builder.io. MIT.

Q: How do I install AI Shell? A: npm install -g @builder.io/ai-shell. Then ai "your command description".


🙏

来源与感谢

Created by Builder.io. MIT. BuilderIO/ai-shell — 5,200+ GitHub stars

相关资产