A lightweight shell agent powered by local LLMs.
Convert natural language instructions into Linux shell commands and execute them directly.
- Natural language to shell command conversion using a local LLM
- Colorful CLI interface with rich
- Dry-run mode for safe demonstrations
git clone https://github.com/black-leg-nameko/llmshell-agent.git
cd llmshell-agent
docker compose buildPlace a GGUF model into the model/ directory. For example,
curl -L -o model/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf \
https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.ggufInteractive mode:
docker compose run llmshell python app/main.pyOne-shot execution:
docker compose run llmshell python app/main.py "Show current directory" --dry-run