Skip to main content

Configuration reference

Set in .env (ignored by git). .env.example has every variable with a safe placeholder.

Models​

VariableMeaning
OMLX_BASE_URLOpenAI-compatible endpoint of your local model server
OMLX_MODELText model for notes, cards and answers
OMLX_VL_MODELVision-capable model for slides; blank uses on-screen text only
OMLX_VL_THINKfalse unless you have evaluated otherwise
OMLX_JUDGE_MODELJudge for evaluation; must differ from the generator
OMLX_API_KEYOnly if your server requires one. Never commit it

Capture​

VariableMeaning
SP_BINPath to the recorder binary
SCREENPIPE_URLIts local API, default http://localhost:3030
SP_PORTAL_APPSBrowser captured in portal mode
SP_LIVE_APPSMeeting app names, comma-separated
SP_LIVE_BROWSER_TITLES<app>::<title contains> for browser windows also captured in live mode
SP_AUTO_SWITCH, SP_LIVE_COOLDOWN_MINFollow meetings automatically
SP_URL_ALLOWExtra allowed hosts for portal mode
SP_IGNOREApp or title words that are never recorded
SP_DRM_URLSPages with protected video: host or host/path-prefix, comma-separated
SP_AUDIO_ENGINESpeech-to-text engine name
SCREENPIPE_AUDIO_TAP_APPSApp whose own audio is tapped
SP_VISUAL_CHECK_MS, SP_VISUAL_CHANGE_THRESHOLD, SP_MIN_CAPTURE_MS, SP_IDLE_CAPTURE_MSFrame sampling

Course and output​

VariableMeaning
STUDY_LECTURE_SITEHost of your course portal
STUDY_PORTAL_NAMEPortal name as shown in window titles
STUDY_COURSE_NAMEWritten into each lecture note
STUDY_LLM_PROVIDERomlx (default): the model server. browser: Lecture Lens Studio runs the model in Chrome; builds write studio_job.json and the live follower leaves the outline and questions to it. Evals stay on oMLX
STUDY_LLM_SLOTWho is calling the local model: interactive (default, waits up to 120 s), build (900 s) or background (5 s, then skips; the live follower and automatic curate rounds). One caller at a time, through a lock file
STUDY_LLM_LOCKThe lock file for that slot (default lectures/.llm.lock)
SP_LIVE_AUDIO_TAP_APPS / SCREENPIPE_AUDIO_TAP_APPSoff, none, 0 or false disable the per-app audio tap; System Audio records either way
STUDY_STUDIO_TRANSCRIBE1: in browser mode, lecture build also saves the lecture's audio chunks (hard links in audio/, listed in audio.json) so the Studio can transcribe them with Whisper in Chrome
STUDY_STUDIO_URLThe Studio page the app opens (default: the hosted page on the docs site)
STUDY_LIVE_FOLLOWERStart live_class.py with live-mode capture (default true)
STUDY_LIVE_TITLE, STUDY_LIVE_HOURS, STUDY_LIVE_PROMPTLive note title, how long the follower runs (default 4 h), whisper vocabulary prompt
LIVE_SLIDE_MARKER, LIVE_SLIDE_FOOTERRegexes for your deck's slide marker and footer (optional)
LIVE_QA_STAFFStaff names in the Q&A panel, comma-separated; everyone else is unnamed
LIVE_SLIDE_REGIONWhere slides sit in a frame for the OCR fallback, as x0,y0,x1,y1 fractions (default 0,0.12,0.76,1; the right edge follows a docked Q&A panel)
LIVE_SAVE_REMINDERMinutes between "save the meeting transcript" notifications, plus one 10 min before the end (default 30, 0 = off)
STUDY_CALENDARProgramme calendar JSON (default lectures/calendar.json, kept out of git). Tags builds with week and module, gives lecture next, and gives sp-start today's live title
LIVE_AUDIO_DEVICEAudio device the follower re-transcribes (default System Audio (output))
STUDY_TRANSCRIPT_SOURCEscreenpipe to build from the recorder's own transcript even when a live whisper transcript exists
STUDY_LIVE_APPSApp names treated as live classes when finding sessions (default zoom)
STUDY_LECTURE_DIR, STUDY_NOTES_DIROutput folders
STUDY_VAULT, STUDY_VAULT_SUBDIRObsidian vault and subfolder
STUDY_AUDIO_DEVICEauto picks the non-microphone device with the most text
STUDY_CTX_CHARSCharacters of source per model call (default 60000)
STUDY_PART_CHARSSize of transcript parts for long sessions (default 24000)
STUDY_SESSION_GAP_MIN, STUDY_MIN_SESSION_MINSession splitting
STUDY_VL_MAX_EDGELong edge of images sent to the vision model
STUDY_PYTHONPython to use when the default lacks Pillow

Evaluation​

VariableMeaning
EVAL_FORCE=1Run an eval even while live capture is on (not advised)
DEEPEVAL_PER_TASK_TIMEOUT_SECONDS_OVERRIDEPer-metric budget; the runner sets 1200 s for a slow local judge