█

AI/TLDR

Buy me a coffee
Buy me a coffee

h2oGPT

Private local chat and document Q&A with open-source LLMs

Chat UIsOpen source
Language
Python
License
Apache-2.0
IN SHORT

What is h2oGPT?

h2oGPT is an Apache-2.0 open-source project for chatting with private, local GPT-style language models and asking questions over your own files. It keeps an offline database of documents such as PDFs, Word and Excel files, images, video frames, YouTube links, audio, code, and Markdown, so nothing has to leave your machine. It sits in the Chat UIs category of the App UIs & Builders tools and is open-source, written in Python and licensed Apache-2.0.

Overview

h2oGPT is an Apache-2.0 open-source project for chatting with private, local GPT-style language models and asking questions over your own files. It keeps an offline database of documents such as PDFs, Word and Excel files, images, video frames, YouTube links, audio, code, and Markdown, so nothing has to leave your machine.

It ships with a Gradio web UI and a command-line interface, both with streaming responses. You can run many model types, including LLaMa-2, Mistral, and Falcon, on GPU or CPU using backends like Hugging Face, llama.cpp, and GPT4All. h2oGPT also exposes an OpenAI-compatible proxy server, so it can act as a drop-in replacement for the OpenAI API.

On top of plain chat, it adds document Q&A with embeddings stored in Chroma, Weaviate, or in-memory FAISS, plus vision models, image generation, voice transcription, text-to-speech, web search, and code agents.

What it does

  • Private offline document Q&A over PDFs, Office files, images, video frames, YouTube, audio, code, and Markdown using a persistent Chroma, Weaviate, or FAISS database
  • Wide model support including LLaMa-2, Mistral, and Falcon, with GPU and CPU backends via Hugging Face, llama.cpp, and GPT4All
  • Gradio web UI or CLI with response streaming, document upload and viewing, and a bake-off mode to compare many models at once
  • Vision models, Stable Diffusion image generation, Whisper voice transcription, and text-to-speech with voice cloning
  • OpenAI-compatible proxy server for chat, completions, transcription, TTS, image generation, embeddings, and function tool calling
  • Web-search integration and agents for search, document Q&A, Python code, and CSV data

Getting started

The quickest way to try h2oGPT is to create a fresh Python 3.10 environment and install the PyPI package, then launch a GGUF model. Docker is recommended for full capabilities on Linux, Windows, and Mac.

Set the PyTorch index for your hardware

Point pip at the right PyTorch wheels. For CPU or Mac (M1/M2), use the CPU index.

bashbash
export PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu"

Install h2oGPT

Install the package from PyPI.

bashbash
pip install h2ogpt

Chat with a model

Launch the Gradio UI with a GGUF model, then open your browser to start chatting.

bashbash
python generate.py --base_model=TheBloke/Mistral-7B-Instruct-v0.2-GGUF --prompt_type=mistral --max_seq_len=4096
# then visit http://localhost:7860

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Run a 100% private, offline ChatGPT-style assistant on your own hardware with no data leaving your machine
  • Build a searchable knowledge base by asking questions over your own PDFs, Office documents, images, and audio
  • Use h2oGPT as a drop-in OpenAI-compatible API so existing apps can call local models instead of a cloud provider
  • Compare many models side by side in the bake-off UI to pick the best one for a task

How h2oGPT compares

h2oGPT alongside other open-source chat uis tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Open WebUI★ 160kA self-hosted web interface for chatting with local and API-based LLMs (Ollama, OpenAI-compatible) that adds RAG, web search, image generation, and multi-user access.
Lobe Chat★ 86.3kAn open-source chat UI with a plugin and agent marketplace, multi-model support, voice, vision, and one-click self-hosting.
AnythingLLM★ 68.8kA desktop and self-hosted chat app focused on document Q&A and agents, letting you build private RAG workspaces over your own files and data sources.
Cherry Studio★ 54kA cross-platform desktop chat client that connects to many cloud and local model providers and ships with hundreds of preset assistants and MCP support.
LibreChat★ 47.7kA self-hostable ChatGPT-style chat app that unifies many AI providers and adds agents, MCP support, artifacts, a code interpreter, and multi-user authentication.
Chatbox★ 42.6kA desktop and web chat client for ChatGPT, Claude, Gemini, Ollama, and other models, with local message storage and multi-provider switching.
Buzz★ 37.9kA self-hostable team workspace built on a Nostr relay where AI agents join channels as members with their own keys, and messages, patches, workflow runs and approvals are all signed events in one log.
h2oGPT★ 11.9kPrivate local chat and document Q&A with open-source LLMs