Agent-OS is a comprehensive local agentic system designed to bridge the gap between secure, local Linux administration and modern AI capabilities. It consolidates multiple tools—an advanced terminal interface, a safety-focused "Turtle Shell" execution layer, and a web-based chat frontend—into a single, cohesive operating environment for your AI interactions.
- Local-First Architecture: Powered by local LLMs (via Ollama) for privacy and offline capability.
- Turtle Shell Safety Layer: A robust permission and safety verification system that acts as a guardrail between the AI and your system kernel.
- Hybrid Intelligence: Seamlessly route complex queries to cloud models (like Google Gemini) while keeping sensitive system operations local.
- Multi-Interface Access:
- CLI REPL: A rich terminal user interface for direct, low-latency interaction.
- Web Frontend: A modern, responsive React/Vite interface for a polished chat experience.
- Context-Aware: Intelligently manages context across sessions to maintain continuity without overwhelming the model.
Before running Agent-OS, ensure you have the following installed:
- Python 3.10+
- Node.js & npm (for the frontend)
- Ollama: Must be installed and running (
ollama serve).- Note: Ensure you have pulled the necessary models (e.g.,
llama3,mistral).
- Note: Ensure you have pulled the necessary models (e.g.,
-
Clone the repository:
git clone https://github.com/your-username/agent-os.git cd agent-os -
Set up the Python Environment:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt -
Set up the Frontend:
cd frontend npm install cd ..
-
Configure Environment: Create a
.envfile in the root directory with your API keys (if using cloud fallbacks):GOOGLE_API_KEY=your_key_here
Ensure your local LLM backend is running. Open a terminal and run:
ollama serveIn a new terminal:
source venv/bin/activate
python main.pyThis starts the core system and the text-based interface.
To use the web interface:
cd frontend
npm run devOpen your browser to http://localhost:5173.
Agent-OS implements a Zero-Trust approach to system commands. The Turtle Shell module analyzes every generated command for potential destruction (file deletion, system config changes) and requires explicit user confirmation for high-risk actions.
We welcome contributions! Please see CONTRIBUTING.md for details on how to submit pull requests, report issues, and suggest improvements.
Distributed under the MIT License. See LICENSE for more information.
Developed with the assistance of Google Gemini 3 Pro and Claude 4.5 Opus.