过年期间vibe了一个带有AI模块的Shell运维项目

项目地址:GitHub - easyshell-ai/easyshell: Lightweight server management & intelligent ops platform with Docker one-click deployment, batch script execution, web terminal, and AI-powered operations. · GitHub
项目文档:https://docs.easyshell.ai

快速开始:

git clone https://github.com/easyshell-ai/easyshell.git
cd easyshell
cp .env.example .env      # 按需修改 .env
docker compose up -d

思路上首先需要能够管理主机,一键安装Agent客户端、软件探测、资源水位、web终端等等基础功能。

然后是要能够定时执行shell->拿到执行结果->喂AI->AI分析->发送BOT通知

AI 核心引擎: 用 cron 表达式定义定时巡检任务 —— 无需复杂配置向导。任务在目标服务器或集群上上执行 shell 脚本,自动收集输出,发送给你配置的 AI 模型(OpenAI、Google Gemini、GitHub Copilot)进行智能分析,生成可读的洞察报告。

Bot Status
Telegram :white_check_mark: Supported
Discord :white_check_mark: Supported
Slack :white_check_mark: Supported
DingTalk (钉钉) :white_check_mark: Supported
Feishu (飞书) :white_check_mark: Supported
WeCom (企业微信) :white_check_mark: Supported

支持通过网页进行AI运维对话

支持AI自主下发执行shell脚本,且具有命令风险管控功能

支持记忆管理、SOP总结等功能,更多功能待你完善~欢迎加入贡献