Featured image of post open-notebook

open-notebook

lfnovo/open-notebook

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 Β»

πŸ“š Get Started Β· πŸ“– User Guide Β· ✨ Features Β· πŸš€ Deploy

Deutsch | EspaΓ±ol | franΓ§ais | ζ—₯本θͺž | ν•œκ΅­μ–΄ | PortuguΓͺs | Русский | δΈ­ζ–‡

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 - Support for 16+ providers including OpenAI, Anthropic, Ollama, LM Studio, and more
  • πŸ“š 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

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


⚠️ IMPORTANT: v1.0 Breaking Changes

If you’re upgrading from a previous version, please note:

  • 🏷️ Docker tags have changed: The latest tag is now frozen at the last Streamlit version
  • πŸ†• Use v1-latest tag for the new React/Next.js version (recommended)
  • πŸ”Œ Port 5055 required: You must expose port 5055 for the API to work
  • πŸ“– Read the migration guide: See MIGRATION.md for detailed upgrade instructions

New users: You can ignore this notice and proceed with the Quick Start below using the v1-latest-single tag.


πŸ†š 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 16+ providers (OpenAI, Anthropic, Ollama, LM Studio, etc.) Google models only Flexibility and cost optimization
Podcast Speakers 1-4 speakers with custom profiles 2 speakers only Extreme flexibility
Context Control 3 granular levels All-or-nothing Privacy and performance tuning
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 Comprehensive with sources Basic references Research integrity
Customization Open source, fully customizable Closed system Unlimited extensibility
Cost Pay only for AI usage Monthly subscription + usage 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

Docker Images Available:

  • Docker Hub: lfnovo/open_notebook:v1-latest-single
  • GitHub Container Registry: ghcr.io/lfnovo/open-notebook:v1-latest-single

Both registries contain identical images - choose whichever you prefer!

Choose Your Setup:

🏠 Local Machine Setup

Perfect if Docker runs on the same computer where you’ll access Open Notebook.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mkdir open-notebook && cd open-notebook

docker run -d \
  --name open-notebook \
  -p 8502:8502 -p 5055:5055 \
  -v ./notebook_data:/app/data \
  -v ./surreal_data:/mydata \
  -e OPENAI_API_KEY=your_key_here \
  -e SURREAL_URL="ws://localhost:8000/rpc" \
  -e SURREAL_USER="root" \
  -e SURREAL_PASSWORD="root" \
  -e SURREAL_NAMESPACE="open_notebook" \
  -e SURREAL_DATABASE="production" \
  lfnovo/open_notebook:v1-latest-single

Access at: http://localhost:8502

🌐 Remote Server Setup

Use this for servers, Raspberry Pi, NAS, Proxmox, or any remote machine.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
mkdir open-notebook && cd open-notebook

docker run -d \
  --name open-notebook \
  -p 8502:8502 -p 5055:5055 \
  -v ./notebook_data:/app/data \
  -v ./surreal_data:/mydata \
  -e OPENAI_API_KEY=your_key_here \
  -e API_URL=http://YOUR_SERVER_IP:5055 \
  -e SURREAL_URL="ws://localhost:8000/rpc" \
  -e SURREAL_USER="root" \
  -e SURREAL_PASSWORD="root" \
  -e SURREAL_NAMESPACE="open_notebook" \
  -e SURREAL_DATABASE="production" \
  lfnovo/open_notebook:v1-latest-single

Replace YOUR_SERVER_IP with your server’s IP (e.g., 192.168.1.100) or domain

Access at: http://YOUR_SERVER_IP:8502

⚠️ Critical Setup Notes:

Both ports are required:

  • Port 8502: Web interface (what you see in your browser)
  • Port 5055: API backend (required for the app to function)

API_URL must match how YOU access the server:

  • βœ… Access via http://192.168.1.100:8502 β†’ set API_URL=http://192.168.1.100:5055
  • βœ… Access via http://myserver.local:8502 β†’ set API_URL=http://myserver.local:5055
  • ❌ Don’t use localhost for remote servers - it won’t work from other devices!

Create a docker-compose.yml file:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
services:
  open_notebook:
    image: lfnovo/open_notebook:v1-latest-single
    # Or use: ghcr.io/lfnovo/open-notebook:v1-latest-single
    ports:
      - "8502:8502"  # Web UI
      - "5055:5055"  # API (required!)
    environment:
      - OPENAI_API_KEY=your_key_here
      # For remote access, uncomment and set your server IP/domain:
      # - API_URL=http://192.168.1.100:5055
      # Database connection (required for single-container)
      - SURREAL_URL=ws://localhost:8000/rpc
      - SURREAL_USER=root
      - SURREAL_PASSWORD=root
      - SURREAL_NAMESPACE=open_notebook
      - SURREAL_DATABASE=production
    volumes:
      - ./notebook_data:/app/data
      - ./surreal_data:/mydata
    restart: always

Start with: docker compose up -d

What gets created:

1
2
3
4
open-notebook/
β”œβ”€β”€ docker-compose.yml # Your configuration
β”œβ”€β”€ notebook_data/     # Your notebooks and research content
└── surreal_data/      # Database files

πŸ†˜ Quick Troubleshooting

Problem Solution
β€œUnable to connect to server” Set API_URL environment variable to match how you access the server (see remote setup above)
Blank page or errors Ensure BOTH ports (8502 and 5055) are exposed in your docker command
Works on server but not from other computers Don’t use localhost in API_URL - use your server’s actual IP address
β€œ404” or β€œconfig endpoint” errors Don’t add /api to API_URL - use just http://your-ip:5055
Still having issues? Check our 5-minute troubleshooting guide or join Discord

How Open Notebook Works

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Your Browser                                           β”‚
β”‚  Access: http://your-server-ip:8502                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                 β”‚
                 β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚   Port 8502   β”‚  ← Next.js Frontend (what you see)
         β”‚   Frontend    β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                 β”‚ needs to call ↓
                 β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚   Port 5055   β”‚  ← FastAPI Backend (handles requests)
         β”‚     API       β”‚     This is why you need API_URL!
         β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                 β”‚
                 β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚   SurrealDB   β”‚  ← Database (internal, auto-configured)
         β”‚   (Port 8000) β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Point: Your browser loads the frontend from port 8502, but that frontend needs to know where to find the API (port 5055). When accessing remotely, you must tell it explicitly: API_URL=http://your-server-ip:5055

Star History

Star History Chart

πŸ› οΈ Full Installation

For development or customization:

1
2
3
git clone https://github.com/lfnovo/open-notebook
cd open-notebook
make start-all

πŸ“– Need Help?

Provider Support Matrix

Thanks to the Esperanto library, we support this providers out of the box!

Provider LLM Support Embedding Support Speech-to-Text Text-to-Speech
OpenAI βœ… βœ… βœ… βœ…
Anthropic βœ… ❌ ❌ ❌
Groq βœ… ❌ βœ… ❌
Google (GenAI) βœ… βœ… ❌ βœ…
Vertex AI βœ… βœ… ❌ βœ…
Ollama βœ… βœ… ❌ ❌
Perplexity βœ… ❌ ❌ ❌
ElevenLabs ❌ ❌ βœ… βœ…
Azure OpenAI βœ… βœ… ❌ ❌
Mistral βœ… βœ… ❌ ❌
DeepSeek βœ… ❌ ❌ ❌
Voyage ❌ βœ… ❌ ❌
xAI βœ… ❌ ❌ ❌
OpenRouter βœ… ❌ ❌ ❌
OpenAI Compatible* βœ… ❌ ❌ ❌

*Supports LM Studio and any OpenAI-compatible endpoint

✨ Key Features

Core Capabilities

  • πŸ”’ Privacy-First: Your data stays under your control - no cloud dependencies
  • 🎯 Multi-Notebook Organization: Manage multiple research projects seamlessly
  • πŸ“š Universal Content Support: PDFs, videos, audio, web pages, Office docs, and more
  • πŸ€– Multi-Model AI Support: 16+ 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

Three-Column Interface

  1. Sources: Manage all your research materials
  2. Notes: Create manual or AI-generated notes
  3. Chat: Converse with AI using your content as context

Check out our podcast sample

πŸ“š Documentation

Getting Started

User Guide

Advanced Topics

(back to top)

πŸ—ΊοΈ Roadmap

Upcoming Features

  • Live Front-End Updates: Real-time UI updates for smoother experience
  • Async Processing: Faster UI through asynchronous content processing
  • Cross-Notebook Sources: Reuse research materials across projects
  • Bookmark Integration: Connect with your favorite bookmarking apps

Recently Completed βœ…

  • Next.js Frontend: Modern React-based frontend with improved performance
  • Comprehensive REST API: Full programmatic access to all functionality
  • Multi-Model Support: 16+ AI providers including OpenAI, Anthropic, Ollama, LM Studio
  • Advanced Podcast Generator: Professional multi-speaker podcasts with Episode Profiles
  • Content Transformations: Powerful customizable actions for content processing
  • Enhanced Citations: Improved layout and finer control for source citations
  • Multiple Chat Sessions: Manage different conversations within notebooks

See the open issues for a full list of proposed features and known issues.

(back to top)

🀝 Community & Contributing

Join the Community

  • πŸ’¬ Discord Server - Get help, share ideas, and connect with other users
  • πŸ› GitHub Issues - Report bugs and request features
  • ⭐ 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 Future Roadmap: Real-time updates, enhanced async processing

See our Contributing Guide for detailed information on how to get started.

(back to top)

πŸ“„ License

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

πŸ“ž Contact

Luis Novo - @lfnovo

Community Support:

  • πŸ’¬ Discord Server - Get help, share ideas, and connect with users
  • πŸ› GitHub Issues - Report bugs and request features
  • 🌐 Website - Learn more about the project

πŸ™ Acknowledgments

Open Notebook is built on the shoulders of amazing open-source projects:

(back to top)

Built with Hugo
Theme Stack designed by Jimmy