A modern, lightweight, and AI-native alternative to Moodle and Blackboard.
Built for educational institutions, coaching academies, corporate training teams, and self-hosted individual learners.
Traditional Learning Management Systems are often bulky, difficult to deploy, and lack native AI capabilities. OpenLMS solves this with an offline-first, modular architecture that runs on a single laptop with SQLite or scales effortlessly to thousands of concurrent students using PostgreSQL and Docker.
- π’ Multi-Tenant Organization Management: Host multiple colleges, departments, or coaching branches with dedicated subdomains, custom branding, and role-based permissions.
- π§ Built-in Socratic AI Engine:
- Auto-generates balanced question sets matching specific difficulty criteria.
- Breaks down complex engineering/scientific problems using intuitive analogies and step-by-step reasoning.
- Identifies common exam traps and suggests shortcut techniques.
- π Enterprise Assessment Simulator:
- Complete timed exam simulator with live question palettes, flag-for-review, and auto-submission.
- Supports single-choice MCQs, Multi-Statement questions, Assertion-Reasoning formats, and Comprehension passages.
- Full LaTeX / MathJax mathematical formula and equation rendering.
- Automated grading with negative marking and instant PDF score report generation.
- π Student Analytics & Progress Heatmaps: Real-time topic mastery tracking, accuracy trends, and personalized revision schedules.
- π» Zero Cloud Lock-in: 100% self-hostable with zero mandatory paid cloud dependencies.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OpenLMS Core β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ
βΌ βΌ βΌ
[ Super Admin ] [ Organization Admin ] [ Student / Learner ]
β’ System Settings β’ Faculty & Staff Management β’ Interactive Learning
β’ Organization Provisioning β’ Exam & Curriculum Designer β’ Timed Mock Tests
β’ Platform-wide Analytics β’ Test Publishing & Grading β’ Socratic AI Explanations
β’ Class Timetables & Attendance β’ Performance Analytics
-
Clone the repository:
git clone https://github.com/Raghavender1234/pr-dia.git openlms cd openlms -
Create a virtual environment & install dependencies:
python -m venv venv # On Windows: venv\Scripts\activate # On Linux / macOS: source venv/bin/activate pip install -r requirements.txt
-
Initialize the database with sample organizations & test users:
python seed_database.py
-
Launch the application:
- Via Terminal:
python run.py
- Via Desktop GUI Control Hub:
(On Windows, you can also simply double-click
python launcher.py
launcher.bat)
Open your browser at
http://127.0.0.1:5000. - Via Terminal:
docker compose up -dThe platform will automatically initialize PostgreSQL and launch the web server on port 5000.
After running python seed_database.py, log in at http://127.0.0.1:5000/login:
| Role | Password | Access Level | |
|---|---|---|---|
| Super Admin | admin@openlms.dev |
Admin@123 |
Platform owner & multi-tenant manager |
| Faculty / Co-Admin | instructor@openlms.dev |
Instructor@123 |
Course creation, test management, grading |
| Student / Learner | student@openlms.dev |
Student@123 |
Course modules, practice questions, mock tests |
Copy .env.example to .env to customize settings:
cp .env.example .env| Variable | Description | Default |
|---|---|---|
SECRET_KEY |
Flask session encryption key | Auto-generated / dev fallback |
DATABASE_URL |
SQLAlchemy connection string | sqlite:///app.db |
OPENAI_API_KEY |
(Optional) OpenAI key for question generation & Socratic tutor | None (AI simulated if unset) |
S3_BUCKET_NAME |
(Optional) AWS S3 bucket for uploads | None (Saves locally in app/static/uploads) |
FRONTEND_URL |
Canonical application URL | http://127.0.0.1:5000 |
- Multi-tenant organization support
- MathJax / LaTeX formula rendering
- Multi-statement & Assertion-Reason question engine
- PDF report generation with ReportLab
- Ollama / Local LLM integration (Run AI tutors 100% offline without OpenAI)
- QTI & Moodle XML Import/Export
- Dark Mode UI Toggle
- Interactive Code Sandbox for CS / Programming courses
- Mobile App / PWA support
We warmly welcome contributions from developers, educators, designers, and students!
- Check out CONTRIBUTING.md to set up your development environment.
- Browse open issues labeled
good first issueorhelp wanted. - Please adhere to our Code of Conduct.
This project is dual-licensed under:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
You may choose to use this project under either license at your discretion. Free for academic, commercial, and personal use.