Google’s NotebookLM showed how useful a “chat with your own documents” tool can be: you drop in PDFs, articles and notes, and the model answers with citations pointing back to the exact source. The catch is the same as with every hosted AI product — your documents live on someone else’s servers, get processed by someone else’s model, and can disappear when a product is retired or a pricing tier changes.
Open Notebook is the open-source answer to that problem. It runs entirely on your own hardware, works with local models through Ollama, and keeps every source file on your own disk. This guide walks through a complete Docker deployment, connecting local models, and the security details most tutorials skip.
What Open Notebook actually does
Open Notebook is a self-hosted research workspace. You create a notebook per project, add sources (PDFs, URLs, pasted text, Markdown files), and then query across them. Answers come back with references to the specific chunk of the specific document that supported them — which is the whole point, because an AI that answers without citations is just a confident guess.
Beyond chat, the practical features are:
- Multi-source synthesis — ask one question across twenty papers instead of opening twenty tabs.
- Podcast generation — turn a notebook into a two-voice audio summary, the feature that made NotebookLM famous.
- Notes and summaries — save useful answers as reusable notes attached to the notebook.
- Provider flexibility — OpenAI, Anthropic, or fully local models via Ollama. You choose per notebook.
- Full data ownership — everything sits in a local database and a local upload directory.
If you already self-host Open WebUI for chat, Open Notebook is the layer above it: Open WebUI is a general chat interface, Open Notebook is a document-grounded research tool. They complement each other rather than compete.
Prerequisites
- Docker and Docker Compose v2 already installed — if this is your first container, start with Docker basics for the homelab.
- 4 GB of RAM minimum for the app itself; 8–16 GB if you plan to run a local model on the same machine.
- A domain name and reverse proxy if you want HTTPS — Caddy makes this a two-line config.
- Optional: an NVIDIA GPU with 8 GB+ VRAM for fast local inference.
Step 1: Docker Compose deployment
Create a working directory and a compose file:
services:
surrealdb:
image: surrealdb/surrealdb:v2
command: start --log warn --user root --pass root file:/mydata/database.db
volumes:
- ./data/surrealdb:/mydata
restart: unless-stopped
open_notebook:
image: lfnovo/open_notebook:v1-latest
ports:
- "8505:8505"
environment:
- OPEN_NOTEBOOK_ENCRYPTION_KEY=replace_with_openssl_rand_hex_32
volumes:
- ./data/notebook_data:/app/data
depends_on:
- surrealdb
restart: unless-stopped
Two things matter here. The encryption key protects stored API credentials — generate it with openssl rand -hex 32 and never commit it. The volume mount is where your documents actually live, so that directory is the thing you back up.
Start it with docker compose up -d, then open http://your-server-ip:8505.
Step 2: Point it at local models
In Settings → Models, add a provider. For a fully private setup, choose Ollama and enter your endpoint:
- Same host:
http://host.docker.internal:11434(addextra_hosts: ["host.docker.internal:host-gateway"]on Linux) - Separate machine:
http://192.168.1.50:11434
You need at minimum a chat model and an embedding model. A sensible pairing for mid-range hardware:
ollama pull llama3.2:3b # chat
ollama pull nomic-embed-text # embeddings
Embeddings are where people usually get stuck: if the embedding model is missing, ingestion fails silently and sources show up empty. If you are new to local models, the Ollama setup guide covers model sizing and VRAM limits.
Step 3: Ingest sources and query them
Create a notebook, then add sources. Open Notebook accepts PDFs, web URLs, plain text and Markdown. A few habits that dramatically improve answer quality:
- One topic per notebook. Mixing unrelated documents dilutes retrieval and produces vague answers.
- Prefer clean text. A scanned PDF with no text layer will not work — run OCR first.
- Ask narrow questions. “What sample size did the 2024 study use?” beats “summarise everything”.
Answers arrive with numbered citations; click one and you jump to the source passage. That verification loop is what separates this from a plain chatbot, and it is the reason the tool is worth the setup effort.
Step 4: Secure it before exposing it
Open Notebook ships without user authentication in some configurations, which is fine on localhost and dangerous on the public internet. Put it behind your reverse proxy with HTTP basic auth at minimum:
notebook.example.com {
basic_auth {
admin $2a$14$replace_with_real_hash
}
reverse_proxy 127.0.0.1:8505
}
Generate the hash with caddy hash-password. For anything beyond a personal instance, put it behind Tailscale instead of the public internet — no exposed port, no brute-force surface. That advice is part of the broader homelab security rules worth reading once.
Backups and maintenance
Everything stateful lives in two places: the SurrealDB volume and the uploads directory. A nightly archive is enough:
tar czf /backup/open-notebook-$(date +%F).tar.gz ./data
Keep a copy off the machine. The most common data-loss story in homelabs is not a disk failure — it is a docker compose down -v typed in the wrong directory.
Open Notebook vs NotebookLM
- Data location: yours vs Google’s servers.
- Model choice: any local or hosted model vs Google’s fixed models.
- Cost: hardware and electricity vs a subscription.
- Setup effort: an evening vs zero.
- Polish: rough edges and occasional breaking changes vs a finished product.
- Offline: works fully offline with local models vs requires internet.
Choose self-hosting if the documents are sensitive, if you want local inference, or if you simply prefer owning the stack. Choose the hosted product if you want zero maintenance and do not mind the trade.
Frequently asked questions
Is Open Notebook free? Yes, it is open source and free to self-host. You pay only for hardware, electricity, and any paid API models you choose to connect.
Can it run completely offline? Yes, with Ollama models it works with no internet access at all after the initial download — useful for air-gapped or privacy-sensitive work.
How much RAM does it need? Around 4 GB for the application and database. Local models add their own requirement: a 3B model needs roughly 4 GB, a 7B model roughly 8 GB.
Does it replace Open WebUI? No. Open WebUI is a general chat front end; Open Notebook is document-grounded research. Many people run both.
Can multiple people use one instance? Not cleanly — it is designed as a personal tool. For teams, put it behind an authenticated proxy and treat it as a shared workspace.
Final thoughts
The value of NotebookLM was never the chat box — it was grounding answers in your own sources and showing you where each claim came from. Open Notebook keeps that property and removes the dependency on a vendor. The setup takes an evening; the payoff is a research assistant that cannot leak your documents, cannot raise its prices, and keeps working when the API you used to rely on shuts down.
Pair it with a local chat interface and an automation layer, and you have a private AI stack that covers reading, asking and acting — all on hardware you control.