Deploy Open Notebook
Deploy and Host Open Notebook with Railway
Just deployed
open-notebook
Just deployed
/app/data
surrealdb
Just deployed
/data
Deploy and Host Open Notebook on Railway
When you finish deploying and testing, feel free to set your password in the
open-notebookservice with theOPEN_NOTEBOOK_PASSWORDenvironment variable and redeploy.
Open Notebook is a privacy-focused, open-source alternative to Google's Notebook LM. It lets you organize research, chat with AI using your content as context, and generate professional multi-speaker podcasts—all while supporting 16+ AI providers and keeping your data under your control.

About Hosting Open Notebook
Deploying Open Notebook involves running a Docker container that bundles the Next.js/React frontend, FastAPI backend, and SurrealDB database. The application exposes two ports: 8502 for the web interface and 5055 for the REST API. You'll need to configure environment variables for your preferred AI provider (OpenAI, Anthropic, Ollama, etc.) and database credentials. Railway simplifies this by managing the container orchestration, persistent storage for your notebooks and database, and networking configuration automatically.
Common Use Cases
- Research & Learning: Organize PDFs, videos, web pages, and documents into notebooks, then chat with AI to gain insights from your collected materials
- Podcast Generation: Transform your research notes into professional multi-speaker podcasts with customizable voices and episode profiles
- Private Knowledge Management: Build a personal knowledge base with full-text and vector search while maintaining complete data sovereignty
Dependencies for Open Notebook Hosting
- AI Provider API Key: At minimum, an OpenAI API key (or keys for Anthropic, Google, Groq, etc.)
- SurrealDB: Included in the single-container deployment image
- Persistent Storage: For notebook data and database files
Deployment Dependencies
- Open Notebook GitHub Repository
- Open Notebook Documentation
- Docker Image on Docker Hub
- Esperanto Library (Multi-provider AI support)
Implementation Details
Key environment variables to configure:
OPENAI_API_KEY=your_key_here # Or other provider keys
API_URL=http://YOUR_DOMAIN:5055 # Required for remote access
SURREAL_URL=ws://localhost:8000/rpc
SURREAL_USER=root
SURREAL_PASSWORD=root
SURREAL_NAMESPACE=open_notebook
SURREAL_DATABASE=production
Ports required:
- 8502: Web UI (Next.js frontend)
- 5055: API backend (FastAPI)
Why Deploy Open Notebook on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Open Notebook on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
open-notebook
lfnovo/open_notebook:v1-latestOPENAI_API_KEY
Your OpenAI API key
surrealdb
surrealdb/surrealdb

