Local AI agent for all your tasks
kagent is a locally running AI agent designed for developers, researchers, and power users. It supports multiple local LLM backends, filesystem access, command execution, a knowledge base, and semi-autonomous operation with security controls.
-
Supports Ollama models
-
Supports HuggingFace local models
-
Automatic GPU detection (CUDA / ROCm / Metal)
-
ReAct-style reasoning loop
-
Full local filesystem interaction
-
Shell command execution with output capture
-
Web search & scraping
-
Persistent local knowledge base (vector store)
-
Risk detection + confirmation system
-
Dynamic model switching
-
Modular plugin architecture
-
Cross-platform (Windows, Linux, macOS)
- Python 3.11+
- ollama
- CUDA / ROCm / Metal drivers (if using GPU)
- Fork the reop on your github.
- Execute the command
git clone https://github.com/<your-username>/kagent.git- Move into the directory
cd kagent
- Create virtual enviornment, and activate it.
python -m venv venv
# windows
.\venv\Scripts\activate
# linux / mac
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Download ollama and install it.
- After ollama is successfully installed run
ollama pull llama3, and verify it byollama run llama3.
Alternatively, you can run the setup.py file.