Privacy first
Conversations, documents, and model traffic can stay inside your own machine or network instead of being sent to a hosted AI provider by default.
Local AI Hub — Yours for the voyage.
Local AI Hub is a self-hosted interface for talking to language models — chat, documents, model management,
realtime streaming, and Docker-powered services. Local-first, privacy-first, no telemetry. Just you and your
models.
(if you want to wire in an external API too — that's fine, I'm
not here to tell you how to live your life…)
Why it matters
Conversations, documents, and model traffic can stay inside your own machine or network instead of being sent to a hosted AI provider by default.
The project turns model management, chat, document upload, and server configuration into a guided web experience instead of scattered terminal commands.
It uses common building blocks: Next.js, FastAPI, PostgreSQL with pgvector, Redis, Socket.IO, and Docker Compose.
What it solves
Connect local inference nodes such as Ollama and keep installed models visible in the UI.
Chat with realtime streamed responses through Socket.IO instead of waiting on a static request.
Upload documents and use pgvector-backed retrieval so answers can include your own context.
Use optional web search when current information is more important than model memory.
Live Demo
Installation
git clone <your-repo-url>
cd oneai
docker compose -f infra/compose/docker-compose.dev.yml up -d
cd backend
py -3 -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
alembic upgrade head
python run.py
cd frontend
npm install
npm run dev
brew install git python node
git clone <your-repo-url>
cd oneai
docker compose -f infra/compose/docker-compose.dev.yml up -d
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
alembic upgrade head
python run.py
cd frontend
npm install
npm run dev
sudo apt update
sudo apt install -y git python3 python3-venv python3-pip nodejs npm
git clone <your-repo-url>
cd oneai
docker compose -f infra/compose/docker-compose.dev.yml up -d
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
alembic upgrade head
python run.py
cd frontend
npm install
npm run dev
Run and verify
PostgreSQL with pgvector runs on port 5433. Redis runs on 6379.
Start from backend/ with python run.py. API runs at
http://localhost:4000.
Start from frontend/ with npm run dev. Web app runs at
http://localhost:3000.
Install nomic-embed-text on your active local server to use document upload and RAG.