Lilith-shell 是一款强大的工具,可在 Claude Desktop 里借助自定义 shell 环境执行命令。它源自 Pandora-shell 分支,在安全性、测试性和功能性上都有显著提升。
Lilith-shell 能让你在 Claude Desktop 中便捷执行命令,下面为你介绍使用前的准备工作。
git clone https://github.com/yourusername/Lilith-Shell.git
cd Lilith-Shell
python -m venv venv
source venv/bin/activate
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
要确保把 Lilith-Shell 项目的完整路径添加到系统的环境变量中。
编辑或创建以下文件,依据你的操作系统来选择:
System Environment Variables。%APPDATA%\Lilith-Shell\bin 添加到系统路径里。.bashrc 或 .zshrc 文件:nano ~/.bashrc
export PATH=$PATH:/path/to/Lilith-Shell/bin
source ~/.bashrc 让配置生效。在项目的根目录启动 Lilith-shell 服务:
# 对于 macOS/Linux 系统:
python src/lilith_shell/executor.py
# 对于 Windows 系统:
.\venv\Scripts\python.exe src\lilith_shell\executor.py
Can you run 'pwd' and tell me what directory we're in?
Can you list the files in my home directory? Which of them are larger than 200 MB?
Lilith-shell 会以用户权限执行命令。为保障安全,请遵循以下建议:
tail -f logs/error.log
通过上述步骤,你就能顺利使用 Lilith-shell 项目,并依据具体需求进行定制和扩展。若有任何问题或建议,请随时联系项目维护人员。