openAgent is an open-source enterprise AI platform. It integrates intelligent Q&A, natural language data queries, knowledge base management, workflow builders, and agent orchestration. This self-contained system can be deployed on your own infrastructure to avoid vendor lock-in. The platform supports major AI services including DeepSeek, Zhipu AI, and Doubao. It features three conversation modes—direct chat, RAG-augmented responses, and multi-agent collaboration—while maintaining persistent session history and context.
For data analysis, openAgent uses a dual query engine that processes uploaded Excel files and connects directly to PostgreSQL databases. It translates natural language questions into Pandas code or optimized SQL, supporting multi-table joins and cross-file queries. The system also displays the model’s reasoning steps, providing transparency into how it arrives at an answer.
The knowledge base supports PDF, Word, Markdown, and plain text. Vector embeddings are stored in PostgreSQL using the pgvector extension. Documents are semantically partitioned, and retrieval employs a two-pass approach that combines vector similarity with BM25 keyword scoring for more accurate results.
Workflows are managed via a drag-and-drop visual editor. For agent orchestration, openAgent utilizes LangGraph state machines and conditional routing. You can define agent roles to plan, call tools, and decompose complex tasks. Data is isolated per user to ensure privacy. Released under the MIT license, the platform allows for unrestricted commercial use and custom forks.
Option 1: Docker (Recommended)
Create a docker-compose.yml file:
version: '3.8'
services:
db:
image: pgvector/pgvector:pg16
container_name: pgvector-db
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: your_password
POSTGRES_DB: mydb
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
volumes:
pgdata:
Start the container:
docker-compose up -d
Verify the pgvector extension is active:
docker exec -it pgvector-db psql -U myuser -d mydb
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE items (
id SERIAL PRIMARY KEY,
embedding vector(3)
);
INSERT INTO items (embedding) VALUES ('[1,1,1]'), ('[2,2,2]'), ('[1,0,0]');
SELECT id, embedding FROM items ORDER BY embedding <-> '[1,1,1]' LIMIT 3;
git clone https://github.com/lkpAgent/chat-agent.git
cd chat-agent/backend
conda create -n chat-agent python=3.10
conda activate chat-agent
pip install -r requirements.txt
cp .env.example .env
# Edit .env: configure the database URL and AI provider keys
cd backend/tests
python init_db.py # Creates a test user: [email protected] / 123456
python -m uvicorn open_agent.main:app --reload --host 0.0.0.0 --port 8000
cd ../frontend
npm install
cp .env.example .env
# Set VITE_API_BASE_URL = http://localhost:8000
npm run dev # Runs at http://localhost:3000
http://localhost:3000http://localhost:8000http://localhost:8000/docsDefault Credentials: [email protected] / 123456
.env)Key environment variables:
DATABASE_URL=postgresql://myuser:[email protected]:5432/mydb
VECTOR_DB_TYPE=pgvector
PGVECTOR_HOST=127.0.0.1
PGVECTOR_PORT=5432
PGVECTOR_DATABASE=mydb
PGVECTOR_USER=myuser
PGVECTOR_PASSWORD=your_password
LLM_PROVIDER=doubao # Options: openai, deepseek, doubao, zhipu, moonshot
EMBEDDING_PROVIDER=zhipu
# API keys and model settings
ZHIPU_API_KEY=your-zhipu-key
ZHIPU_MODEL=glm-4
DOUBAO_API_KEY=your-doubao-key
DOUBAO_MODEL=doubao-1-5-pro-32k-250115
TAVILY_API_KEY=your-tavily-key
WEATHER_API_KEY=your_weather_key
POST /auth/loginPOST /auth/registerPOST /auth/refreshGET /chat/conversationsPOST /chat/conversationsPOST /chat/conversations/{id}/chatPOST /knowledge/uploadGET /knowledge/documentsDELETE /knowledge/documents/{id}POST /smart-query/queryPOST /smart-query/uploadGET /smart-query/filesExample Agent Workflow User asks: "Is Changsha or Beijing better for travel right now?"
Twitter AI Monitor: Automated Tweet Summaries and Chinese Translation
Tiny Qwen: A Clean PyTorch Implementation of Qwen3 and Qwen2.5-VL
Fast RAG: Deploy a Private Hybrid Search RAG Stack Locally
AI Presentation Generator: An Open-Source Gamma Alternative for Slide Decks
Magic: An Open-Source AI Productivity Platform with Agent Automation
BuildAdmin: Vue3 ThinkPHP8 Panel With Visual CRUD Builder
Open Deep Research: Customizable AI Agents for Automated Report Generation
Crawl4AI: Fast LLM-Ready Web Scraping Without the Bloat
Beszel Lightweight Server Monitor: Docker Stats and Alerts Setup
Paperless GPT: Smarter OCR and Auto-Tagging for Paperless-NGX
AG-UI Protocol: The Open Standard for Connecting AI Agents to Frontends
Spacedrive: An Open-Source Cross-Platform File Manager