docs/0-START-HERE/quick-start-openai.md
Get Open Notebook running with OpenAI's GPT models. Fast, powerful, and simple.
Docker Desktop installed
OpenAI API Key (required)
sk-)Create a new folder open-notebook and add this file:
docker-compose.yml:
services:
surrealdb:
image: surrealdb/surrealdb:v2
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
ports:
- "8000:8000"
volumes:
- ./surreal_data:/mydata
open_notebook:
image: lfnovo/open_notebook:v1-latest
pull_policy: always
ports:
- "8502:8502" # Web UI
- "5055:5055" # API
environment:
# Encryption key for credential storage (required)
- OPEN_NOTEBOOK_ENCRYPTION_KEY=change-me-to-a-secret-string
# Database (required)
- SURREAL_URL=ws://surrealdb:8000/rpc
- SURREAL_USER=root
- SURREAL_PASSWORD=password
- SURREAL_NAMESPACE=open_notebook
- SURREAL_DATABASE=open_notebook
volumes:
- ./notebook_data:/app/data
depends_on:
- surrealdb
restart: always
Edit the file:
change-me-to-a-secret-string with your own secret (any string works)Open terminal in your open-notebook folder:
docker compose up -d
Wait 15-20 seconds for services to start.
Open your browser:
http://localhost:8502
You should see the Open Notebook interface!
Your OpenAI models are now available!
https://en.wikipedia.org/wiki/Artificial_intelligencehttp://localhost:8502All checked? You have a fully working AI research assistant!
In your notebook, go to Settings → Models to choose:
gpt-4o - Best quality (recommended)gpt-4o-mini - Fast and cheap (good for testing)Change the port in docker-compose.yml:
ports:
- "8503:8502" # Use 8503 instead
Then access at http://localhost:8503
docker ps # Check all services running
docker compose logs # View logs
docker compose restart # Restart everything
OpenAI pricing (approximate):
Check https://openai.com/pricing for current rates.
Need help? Join our Discord community!