Guluji
官方使用文档

Open Notebook README

lfnovo/open-notebook · MIT · 源码版本 0c1e7abb

上手导读

安装与准备

用 Docker 启动,设置模型后创建第一个笔记本。

试用示例

复习一门课时,把讲义和自己的笔记放在同一个笔记本里,先问一个能在原文定位的问题,再据此整理复习提纲。

官方 READMEREADME.md

Forks Stargazers Issues MIT License


Logo

Open Notebook

An open source, privacy-focused alternative to Google's Notebook LM!
Join our Discord server for help, to share workflow ideas, and suggest features!
Checkout our website »
Follow @lfnovo on X for updates

📚 Get Started · 📖 User Guide · ✨ Features · 🚀 Deploy

lfnovo%2Fopen-notebook | Trendshift

New Notebook

In a world dominated by Artificial Intelligence, having the ability to think 🧠 and acquire new knowledge 💡, is a skill that should not be a privilege for a few, nor restricted to a single provider.

Open Notebook empowers you to:

  • 🔒 Control your data - Keep your research private and secure
  • 🤖 Choose your AI models - 20+ providers including OpenAI, Anthropic, Google, Mistral, Ollama and any OpenAI-compatible server (LM Studio, vLLM)
  • 📚 Organize multi-modal content - PDFs, videos, audio, web pages, and more
  • 🎙️ Generate professional podcasts - Advanced multi-speaker podcast generation
  • 🔍 Search intelligently - Full-text and vector search across all your content
  • 💬 Chat with context - AI conversations powered by your research
  • 🌐 Multi-language UI - English, Bengali, Catalan, Chinese (Simplified & Traditional), French, German, Italian, Japanese, Polish, Portuguese, Russian, Spanish and Turkish

Learn more about our project at https://www.open-notebook.ai


🆚 Open Notebook vs Google Notebook LM

Feature Open Notebook Google Notebook LM Advantage
Privacy & Control Self-hosted, your data Google cloud only Complete data sovereignty
AI Provider Choice 20+ providers, cloud or local (OpenAI, Anthropic, Google, Ollama, LM Studio, etc.) Google models only Flexibility and cost optimization
Podcast Speakers 1-4 speakers with custom profiles 2 speakers only Extreme flexibility
Content Transformations Custom and built-in Limited options Unlimited processing power
API Access Full REST API No API Complete automation
Deployment Docker, cloud, or local Google hosted only Deploy anywhere
Citations Answers cite the sources, notes and insights they used Comprehensive with sources Research integrity
Customization Open source, fully customizable Closed system Unlimited extensibility
Cost Pay only for AI usage Free tier + Monthly subscription Transparent and controllable

Why Choose Open Notebook?

  • 🔒 Privacy First: Your sensitive research stays completely private
  • 💰 Cost Control: Choose cheaper AI providers or run locally with Ollama
  • 🎙️ Better Podcasts: Full script control and multi-speaker flexibility vs limited 2-speaker deep-dive format
  • 🔧 Unlimited Customization: Modify, extend, and integrate as needed
  • 🌐 No Vendor Lock-in: Switch providers, deploy anywhere, own your data

Built With

Python Next.js React SurrealDB LangChain

🚀 Quick Start

Prerequisites

  • Docker Desktop (macOS, Windows) or Docker Engine with the Compose plugin (Linux)
  • An API key from an AI provider, or a local model server such as Ollama. You add it in the UI, not in config files.

Step 1: Download docker-compose.yml

mkdir open-notebook && cd open-notebook
curl -o docker-compose.yml https://raw.githubusercontent.com/lfnovo/open-notebook/main/docker-compose.yml

This is the official docker-compose.yml from this repository. It runs two services: surrealdb (the database) and open_notebook (UI, API and background worker).

Step 2: Set your encryption key

Create a .env file next to docker-compose.yml and set OPEN_NOTEBOOK_ENCRYPTION_KEY to a long random secret you generate yourself (for example with openssl rand -hex 32; other options). The shipped compose file reads it from .env. Editing that line in docker-compose.yml is a valid alternative. It encrypts the API keys you store; keep it. When neither is set, the file falls back to change-me-to-a-secret-string only for installs that used that placeholder. If an existing install has a custom key in its old compose file, copy that exact key into .env before replacing the file; do not generate a new one. That fallback is public. Replace it before you save provider keys.

Shared network or server? The UI (8502) and API (5055) are published on all network interfaces and there is no password by default. If other devices can reach this machine, change those two port lines to "127.0.0.1:8502:8502" and "127.0.0.1:5055:5055", or set OPEN_NOTEBOOK_PASSWORD in the same .env file, before starting.

Step 3: Start services

docker compose up -d

Wait about 30 seconds, then open: http://localhost:8502

Step 4: Connect an AI provider

  1. In the sidebar, open Models (under Manage).
  2. Find your provider (OpenAI, Anthropic, Google, etc.) and click Add Configuration.
  3. Enter a name and your API key (local providers such as Ollama need a Base URL instead), then click Add Configuration.
  4. Click Test on the new configuration to check the connection.
  5. Click Models, choose a Model Type, tick the models to add and click Add. Add at least one Language model and one Embedding model.
  6. Under Default Model Assignments, click Auto-assign Defaults (or pick the models yourself).

Done! Create a notebook, add a source and start chatting. Full walkthrough: Connect a provider.

Need an API key? Get one from: OpenAI · Anthropic · Google · Groq

Anthropic and Groq have no embedding models; pair them with a provider that does (see the matrix).

Want free local AI? See the Local Quick Start (Ollama in Docker).


📚 More Installation Options


📖 Need Help?


Star History

Star History Chart

Provider Support Matrix

Thanks to the Esperanto library, we support these providers out of the box. The columns show the model types each provider offers; what you can use depends on your account.

Provider LLM Support Embedding Support Speech-to-Text Text-to-Speech
OpenAI ✅ ✅ ✅ ✅
Anthropic ✅ ❌ ❌ ❌
Google (GenAI) ✅ ✅ ✅ ✅
Groq ✅ ❌ ✅ ❌
Mistral ✅ ✅ ✅ ✅
DeepSeek ✅ ❌ ❌ ❌
xAI ✅ ❌ ❌ ✅
OpenRouter ✅ ✅ ✅ ✅
DashScope (Qwen) ✅ ❌ ❌ ❌
MiniMax ✅ ❌ ❌ ✅
Novita ✅ ❌ ❌ ❌
SiliconFlow ✅ ❌ ❌ ❌
Z.ai ✅ ❌ ❌ ❌
PayPerQ (PPQ) ✅ ✅ ✅ ✅
Cohere ✅ ✅ ❌ ❌
Voyage ❌ ✅ ❌ ❌
ElevenLabs ❌ ❌ ✅ ✅
Deepgram ❌ ❌ ✅ ✅
Ollama ✅ ✅ ❌ ❌
oMLX ✅ ✅ ❌ ❌
Azure OpenAI ✅ ✅ ✅ ✅
Vertex AI ✅ ✅ ❌ ✅
OpenAI Compatible* ✅ ✅ ✅ ✅
Anthropic Compatible ✅ ❌ ❌ ❌

*Supports LM Studio and any OpenAI-compatible endpoint. Prefer the native oMLX provider for oMLX (Apple Silicon); see docs/5-CONFIGURATION/omlx.md.

✨ Key Features

Core Capabilities

  • 🔒 Privacy-First: Self-hosted; with local models nothing leaves your machine
  • 🎯 Multi-Notebook Organization: Manage multiple research projects seamlessly
  • 📚 Universal Content Support: PDFs, videos, audio, web pages, Office docs, and more
  • 🤖 Multi-Model AI Support: 20+ providers including OpenAI, Anthropic, Ollama, Google, LM Studio, and more
  • 🎙️ Professional Podcast Generation: Advanced multi-speaker podcasts with Episode Profiles
  • 🔍 Intelligent Search: Full-text and vector search across all your content
  • 💬 Context-Aware Chat: AI conversations powered by your research materials
  • 📝 AI-Assisted Notes: Generate insights or write notes manually

Advanced Features

  • ⚡ Reasoning Model Support: Full support for thinking models like DeepSeek-R1 and Qwen3
  • 🔧 Content Transformations: Powerful customizable actions to summarize and extract insights
  • 🌐 Comprehensive REST API: Full programmatic access for custom integrations API Docs
  • 🔐 Optional Password Protection: Secure public deployments with authentication
  • 📊 Fine-Grained Context Control: Choose exactly what to share with AI models
  • 📎 Citations: Get answers with proper source citations

Podcast Feature

Check out our podcast sample

📚 Documentation

Getting Started

User Guide

Advanced Topics

(back to top)

🗺️ Where We're Going

Right now the focus is on making the core experience (sources, chat, search, notes, podcasts) solid across every provider and deployment, before adding new product surfaces. The bigger directions under consideration, such as multi-user support, new output formats and agents operating Open Notebook through MCP, are described in the Horizon section of VISION.md. They are directions, not dated promises.

Explore GitHub Discussions for proposed features and product ideas, and open Issues for known bugs and approved work. Recent changes are in the CHANGELOG.

(back to top)

📖 Need Help?

🤝 Community & Contributing

Join the Community

  • 💬 Discord Server - Get help, share ideas, and connect with other users
  • 𝕏 Follow @lfnovo on X - Project updates and news from the maintainer
  • 💡 GitHub Discussions - Ask questions and shape features, product direction, design, and architecture
  • 🐛 GitHub Issues - Report reproducible bugs and find approved work
  • ⭐ Star this repo - Show your support and help others discover Open Notebook

Contributing

We welcome contributions! We're especially looking for help with:

  • Frontend Development: Help improve our modern Next.js/React UI
  • Testing & Bug Fixes: Make Open Notebook more robust
  • Feature Development: Build the coolest research tool together
  • Documentation: Improve guides and tutorials

Current Tech Stack: Python, FastAPI, Next.js, React, SurrealDB

See our Contributing Guide for detailed information on how to get started, including our guidelines for AI-assisted contributions. To understand what we're building (and what we'll say no to), read VISION.md.

(back to top)

📄 License

Open Notebook is MIT licensed. See the LICENSE file for details.

Community Support:

(back to top)

配套文档docs/0-START-HERE/quick-start-local.md

Quick Start - Local & Private (10 minutes)

Run Open Notebook and Ollama together in Docker. No cloud API keys: your content is processed by models on your machine, not sent to an AI provider. To keep the app itself private, make sure other devices can't reach it (see the note in Step 1).

Already have Ollama installed on this computer? Use the External Ollama guide instead.

Prerequisites

  • Docker with Compose v2: Docker Desktop on macOS and Windows; Docker Engine with the Compose plugin on Linux.
  • 8 GB of RAM or more. Local models run on your CPU unless you set up GPU access, and small models are noticeably slower than cloud ones.
  • A few GB of disk for the models.

Step 1: Download and configure (1 min)

mkdir open-notebook
cd open-notebook
curl -o docker-compose.yml https://raw.githubusercontent.com/lfnovo/open-notebook/main/docker-compose.yml

(On Windows PowerShell, use curl.exe.)

Create a .env file next to docker-compose.yml and set OPEN_NOTEBOOK_ENCRYPTION_KEY to a long random secret you generate yourself, for example with openssl rand -hex 32 (Windows: see Set your encryption key). The shipped compose file reads it from .env. Editing that line in docker-compose.yml is a valid alternative. Don't reuse an example value. When neither is set, the file falls back to change-me-to-a-secret-string.

Shared network or server? The shipped file publishes the UI (8502) and API (5055) on all network interfaces, and there is no password by default. If other devices can reach this machine, do one of these before starting: change the two open_notebook port lines to "127.0.0.1:8502:8502" and "127.0.0.1:5055:5055", or set OPEN_NOTEBOOK_PASSWORD in the same .env file.

Step 2: Add the Ollama service (1 min)

Create a file named docker-compose.override.yml in the same folder. Docker Compose merges it with docker-compose.yml automatically:

services:
  ollama:
    image: ollama/ollama:latest
    volumes:
      - ./ollama_models:/root/.ollama
    restart: always

For NVIDIA GPU access, see GPU acceleration in the Ollama guide.

Step 3: Start (1 min)

docker compose up -d

Step 4: Download models (2-5 min)

Open Notebook needs a chat model and an embedding model. Nothing downloads them automatically:

docker compose exec ollama ollama pull qwen3
docker compose exec ollama ollama pull nomic-embed-text

qwen3 is a capable general model of about 5 GB. On a smaller machine, try llama3.2 (about 2 GB) or gemma3:1b instead. Browse more at ollama.com/library.

Check what's installed with docker compose exec ollama ollama list.

Step 5: Connect Ollama and chat (3 min)

Open http://localhost:8502 and follow Connect a provider with these values:

Field Value
Provider Ollama
API Key Leave empty
Base URL http://ollama:11434
Models to add Your chat model as Language (Ollama lists it as qwen3:latest), then nomic-embed-text:latest as Embedding
Defaults Click Auto-assign Defaults

The last step of that page creates a notebook, adds a text source and sends a chat message. The first answer can take a while as Ollama loads the model.

Verification checklist

  • docker compose ps shows surrealdb, open_notebook and ollama running
  • docker compose exec ollama ollama list shows a chat model and nomic-embed-text
  • Test on the Ollama configuration shows a green check
  • Default Model Assignments has a Chat Model and an Embedding Model
  • A chat message gets an answer

Troubleshooting

Test shows a red cross. The base URL must be http://ollama:11434 (the service name), not localhost: inside the Open Notebook container, localhost is the container itself. Also check that you pulled at least one model; the test uses one.

Responses are very slow or time out. Small models on CPU are slow. Try a smaller model, enable GPU access, or set OPEN_NOTEBOOK_WORKER_MAX_TASKS=1 so background jobs don't compete with chat. Timeouts are covered in the Ollama guide.

Adding more models later. Run docker compose exec ollama ollama pull <model>, then click Models on the Ollama configuration again (it opens the Discover Models dialog) and add it.

Anything else. docker compose logs -f open_notebook and docker compose logs -f ollama. See Quick Fixes.

Podcasts and audio, locally

Ollama provides chat and embedding models only. For podcasts (text-to-speech) and audio/video transcription (speech-to-text) without the cloud, run a local speech server and add it as OpenAI Compatible: see Local TTS and Local STT. You can also mix: local chat with a cloud TTS provider.

LM Studio instead of Ollama

LM Studio runs on your computer, outside Docker:

  1. In LM Studio, download a chat model and an embedding model and start the local server (default port 1234).

  2. Skip Steps 2 and 4 above. On Linux, add this to docker-compose.override.yml so the container can reach your computer:

    services:
      open_notebook:
        extra_hosts:
          - "host.docker.internal:host-gateway"
  3. Connect a provider using OpenAI Compatible, with Base URL http://host.docker.internal:1234/v1.

More in OpenAI-Compatible Providers.

Next steps

Need help? Join our Discord community.

配套文档docs/1-INSTALLATION/index.md

Installation Guide

Pick the route that fits your setup. All of them end the same way: open the UI and connect a provider.

Route For You need
Docker Compose (recommended) Almost everyone: laptops, home servers, VPS Docker with Compose v2
From Source Developers and contributors Python 3.11.5–3.12, uv, Node.js 22.12+, Docker (for the database), ffmpeg
Windows Native Windows machines that can't run Docker or WSL (for example ARM64) Python 3.11.5–3.12 via uv, Node.js 22.12+, SurrealDB 2.x, ffmpeg
Single Container (deprecated) Hosting platforms that run one container per app; removed in v2 Docker or a container host with persistent storage

Want a guided first run with a specific provider? The quick starts wrap the Docker Compose route with provider-specific steps (cloud API key, Ollama in Docker, Ollama on the host).


System requirements

  • RAM: 4 GB free at minimum, 8 GB or more recommended. Local models need much more (see Ollama).
  • Disk: room for the Docker images, your documents and any local models.
  • GPU: optional. It only matters for local models.
  • Network: needed to pull images and to reach cloud AI providers. With local models, Open Notebook works offline once installed.

AI providers

You need at least one provider for chat, and an embedding model for search. You configure them in the UI after installing, not in config files.

  • Cloud providers (OpenAI, Anthropic, Google, Mistral, OpenRouter and many more): pay per use; your content is sent to the provider.
  • Local providers (Ollama, oMLX, LM Studio, or another OpenAI-compatible server running on your own hardware): free to run; content stays on your hardware; speed depends on your hardware. An OpenAI-compatible endpoint hosted elsewhere is a cloud provider for privacy purposes.

The full list, with which providers cover chat, embeddings and speech, is in AI Providers.


After installing

  1. Connect a provider and set the default models. Chat doesn't work until you do.
  2. Create a notebook and add sources: User Guide.

Before exposing it to a network

The defaults are for a single user on a trusted machine: authentication is off and CORS is open.

Need help?

原作者与许可证

文档来自 lfnovo/open-notebook 的上述提交,保留原文并调整了站内排版与链接。

查看仓库许可证原文 ↗
MIT License
Copyright (c) 2024 Luis Novo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
返回 Open Notebook 项目分析