This project provides a Linux assistant that understands natural language. It can execute shell commands, manage files, search the internet, monitor system resources, and launch applications. Built with LangGraph for flexible workflows and it also integrates Whisper for speech-to-text input.
- Natural language command execution.
- File system operations (read, write, delete, etc.).
- Web searching capabilities.
- System resource monitoring.
- Application launching.
- Speech-to-text via Whisper.
linux-assistant
├── main.py
├── prompt.py
├── requirements.txt
├── .env.example
├── .gitignore
└── utils
├── __init__.py
├── command_executor.py
└── speech_to_text.pyThis project uses python 3.11. So make sure to install it before following the steps below.
git clone <repository_url>
cd linux_assistant python -m venv .venv
source ./.venv/bin/activatepip install -r requirements.txt - Create a
.envfile.cp .env.example .env
- Set up a Google Cloud project and obtain an API key. Configure the API key as an environment variable in
.envfileGOOGLE_API_KEY=your-api-key
- Ensure Ollama is installed and running.
- Adjust model name/endpoint in
main.py.
python main.py Contributions are welcome. Feel free to open issues or submit pull requests.
This project is licensed under the MIT License — see the LICENSE file for details.