🤖 OPEN PERSONAL AI AGENT

A lightweight, lightning-fast, and highly secure Personal AI Agent running locally on your hardware. Inspired by OpenClaw and designed as its ultra-lightweight, zero-bloat alternative. Support for both local models (Ollama, LM Studio) and cloud APIs (OpenRouter, Gemini, OpenAI). Avoid bloated frameworks that devour your RAM. Just clean TypeScript, modular markdown prompt design, and absolute data privacy.

⚡ Core Capabilities

💬

Dual Interfaces

WEB + TG

Beautiful cyberpunk-themed local Web UI for focused work, plus a remote Telegram bot to command your agent securely on the go.

👁️

AI Vision

MULTIMEDIA

Attach images directly to the chat. The agent automatically resizes and optimizes files locally before sending them to the LLM.

🧠

Modular Prompt

SYSTEM

Customize personality, identity, and behavior on the fly. Instructions are compiled dynamically from simple, git-ignored Markdown files.

⚙️

Settings Panel

WIZARD

No manual editing of .env. Local setup wizard configures everything (including local LLM endpoints or cloud APIs) and writes to a git-ignored JSON config.

🔧

Tool Execution

FUNCTIONS

File system manager (restricted to a dedicated workspace folder), real-time web scraper, and image generation with automatic API provider fallback.

💾

Semantic Memory

SQL + VEC

Powered by SQLite and the ultra-lightweight sqlite-vec extension. Full session storage and semantic vector similarity search.

🛠️ Cybernetic Architecture

// BACKEND

Node.js, Fastify (high speed, ultra-low overhead), TypeScript.

// FRONTEND

EJS templates, vanilla CSS (Cyberpunk theme), reactive vanilla JS.

// DATABASE & MEMORY

better-sqlite3 for configuration and logs + sqlite-vec for local vector embeddings.

// IMAGE PROCESSING

sharp for blazing-fast local image resizing and optimization.

// HTTP & SCRAPING

axios for connections and cheerio for clean HTML processing.

// TELEGRAM BOT

telegraf integration for secure connection with the Telegram Bot API.

⚙️ Quick Start

Get your local agent up and running in less than a minute. No complex databases, Docker, or external dependencies required.

1. Prerequisites

System Requirements

Ensure you have Node.js (v20.x or later) and npm (v9.x or later) installed on your system.

2. Clone & Setup

Run these commands to clone the repository and download dependencies:

BASH // DEPS INSTALLATION
git clone https://github.com/nordevelopment/OpenPersonalAIAgent.git
cd OpenPersonalAIAgent
npm install

3. Boot Up & Setup Wizard

Start the application. It will automatically build and start the local server. On the first launch, it will redirect you to the visual web settings panel to set your API keys:

BASH // PRODUCTION START
npm start

Open http://127.0.0.1:3000 in your browser. (For active development with hot-reload, run npm run dev instead).

4. Manual .env Config (Optional)

If you prefer using traditional environment variables, copy the template and edit it manually:

BASH // INITIAL CONFIG
cp .env.example .env

⚖️ Features & Resource Comparison

Compare PAIAgent with heavyweight alternatives. The metrics prove how lightweight and efficient it is for local hardware.

Metric / Feature 🤖 PAIAgent 🐳 Open WebUI 💬 LibreChat 📦 AnythingLLM 🦞 OpenClaw
RAM Footprint ~50 - 100 MB 1.5 GB+ (Docker) 1 GB+ (Docker Compose) 500 MB+ (Electron/Docker) 200 MB+ (pnpm/Docker)
Startup Time < 1 second 30 - 60 seconds 30 - 60 seconds 10 - 20 seconds 5 - 10 seconds
Installation < 1 minute (One-command) 5+ minutes (Docker setup) 10+ minutes (Complex Compose) 5+ minutes (Docker / Installer) 5+ minutes (pnpm / Docker)
Dependencies Node.js & npm (Native) Docker & Ollama Docker, Mongo, Redis Docker or Desktop Node.js & pnpm (or Docker)
Database SQLite (embedded) PostgreSQL / MySQL MongoDB + Meilisearch Vector DB + SQLite SQLite (embedded)
Ideal For Lightweight personal workspace Multi-user hosting Enterprise chat solutions Document-based RAG Multi-channel agent bots

💖 Sponsor the Cybercore

PAIAgent is open-source and free. If it saved your hardware resources and simplified your AI operations, consider supporting our development node.

[ SPONSOR ON GITHUB ]