
DeepTutor
Agentic framework for lifelong personalized tutoring
Replaces Khanmigo, Absorb Lms, D2l Brightspace, Cypher Learning

Who it's for
DeepTutor fits universities offering AI-enhanced office hours or supplemental tutoring across STEM courses. The multi-user isolation, role-based access, and TutorBench evaluation framework support institutional compliance (FERPA, data residency), while self-hosting avoids per-student SaaS fees. Instructors manage knowledge bases through the web interface, and students interact via Discord, Slack, or the web app.
Your institution requires vendor support SLAs and uptime guarantees. DeepTutor is self-managed open source, so expertise must come from your team or community. Without devops capacity, a managed platform with contractual support reduces operational risk.
DeepTutor's Apache 2.0 license and modular architecture (agentic workflows, Knowledge Center, multi-channel agents) let edtech startups white-label the framework and integrate it into existing LMS platforms. The CLI-first design supports headless deployments where tutoring agents surface via API, while the Next.js frontend can be reskinned to match brand guidelines.
Your roadmap requires proprietary tutoring algorithms. DeepTutor's Apache 2.0 license allows commercial use, but competitors can fork the codebase. If your moat depends on closed-source pedagogy IP, a proprietary stack or white-label SaaS may protect differentiation better.
Individual educators or small teams can deploy DeepTutor for niche subjects where commercial platforms lack depth (advanced math, specialized CS topics, domain-specific sciences). The Knowledge Center ingests custom PDFs, textbooks, and lecture notes, while the adaptive question generator calibrates to learner progress. The Book Engine compiles subject-specific interactive textbooks with branching remedial content.
You lack server administration experience and prefer fully managed solutions. DeepTutor requires Python environments, database setup, and LLM credentials. If self-hosting is a blocker, start with a managed platform and migrate once you gain devops capacity.
The problem
Traditional education platforms and paid tutoring services deliver one-size-fits-all content that ignores individual learning trajectories. Static pre-training knowledge in commercial AI tutors like Duolingo Max or Coursera's AI features cannot adapt to a specific student's gaps, and existing RAG systems lack the guided feedback loops needed for effective tutoring. Pricing scales per seat or per answer, making institutional deployment expensive, while vendor lock-in prevents customization of pedagogy or integration with existing learning management systems. The core challenge is personalization at scale. A student struggling with calculus derivatives needs different explanations, pacing, and problem difficulty than one reviewing the same topic. Commercial platforms either lack this granularity or gate it behind enterprise pricing tiers. Self-hosted solutions built on generic LLM APIs require custom orchestration layers for memory, citation grounding, and adaptive difficulty that most teams cannot afford to build from scratch.
How it works
Every tutoring response includes citations to the knowledge base, so students trace explanations back to source material. The hybrid personalization engine couples static RAG retrieval with dynamic learner memory, adjusting difficulty and explanation depth based on past interactions. This prevents the knowledge drift common in generic chatbots where context resets every session.
Generates practice questions calibrated to the learner's current mastery level, using TutorBench profiles grounded in university-level curricula across five domains (math, physics, computer science, biology, chemistry). Questions adapt as the student progresses, avoiding both trivial repetition and overwhelming difficulty spikes that stall learning.
Deploy tutoring agents to Discord, Slack, WeChat, Mattermost, Matrix, Zulip, and 9 other channels from a single backend. Each channel maintains separate learner memory with unified progress tracking, so a student can ask questions via Discord CLI and resume the same session in the web interface without losing context.
Build interactive textbooks where each page adjusts content based on reader comprehension signals. The Book Engine compiles living documents that re-order sections, surface prerequisite reviews, and branch to remedial content when the learner shows gaps. Supports LaTeX block math, Mermaid diagrams, and inline visualizations.
TutorBench includes customized learner profiles across five domains and an LLM-based first-person interactive evaluation protocol. The student simulator conducts profile-driven assessments, measuring personalization quality more accurately than static benchmarks. Results show 10.8% improvement in personalized metrics and 29.4% gain in general agentic reasoning across five backbone models.
Ingest documents via LlamaIndex with three retrieval engines: GraphRAG for entity-linked knowledge, PageIndex for agentic cross-document reasoning via tool calls, and LightRAG for fast vector search with FAISS backend. Supports PDF, DOCX, XLSX, PPTX, and Markdown with MinerU or PyMuPDF4LLM parsing for multimodal image extraction.
Features
- Citation-grounded problem tutoring with adaptive feedback
- Difficulty-calibrated question generation
- Multi-channel tutoring agents across 15 platforms
- Interactive books and adaptive learning workflows
- TutorBench evaluation framework with LLM-based student simulator
- Knowledge Center with GraphRAG, PageIndex, and LightRAG
How to install
DeepTutor supports Docker deployment and source installation. The Docker path is fastest for production, while source installs allow local development.
# Docker deployment (production)
docker run -p 3000:3000 -p 8000:8000 \
-v deeptutor-data:/app/data \
-e OPENAI_API_KEY=your_key_here \
deeptutor/deeptutor:latest
# Source installation (development)
git clone https://github.com/HKUDS/DeepTutor.git
cd DeepTutor
pip install -r requirements.txt
npm install
npm run devDocker Compose deployments persist all data in the `data/` directory. Configure LLM providers via environment variables or the Settings UI after first launch. The web interface runs on port 3000, and the Python backend serves on port 8000.
Recommended for this setup
Strengths
- Apache 2.0 license with full self-hosting control: The self-hosted version is Apache 2.0 licensed, meaning you can modify the tutoring logic, extend the agent pipeline, and deploy commercially without licensing restrictions. Unlike SaaS tutoring platforms that charge per student, you pay once for the infrastructure and own the entire stack, including learner interaction history.
- Active development with weekly releases and 34,980 GitHub stars: The project ships weekly releases with feature additions and stability fixes (v1.5.11 released August 2026). 34,980 stars and 4,439 forks indicate strong community adoption. Recent releases added Gemini Embedding 2, per-model reasoning effort controls, MCP Services integration, and support for 101 CLI tools the tutor can invoke during problem solving.
- Multi-agent orchestration for complex tutoring workflows: DeepTutor structures work across multiple specialized agents (Deep Research, Solve, Question Bank, Guided Learning) that decompose complex learning tasks into parallel subtasks. This agentic approach outperforms single-agent tutors on reasoning benchmarks and enables workflows like adversarial verification of student answers or multi-perspective explanations of the same concept.
- Production-grade multi-user isolation with role-based access: Optional multi-user deployments isolate student workspaces with admin grants, auth routes, and scoped runtime access via PocketBase sessions. Each student's memory, knowledge bases, and progress tracking remain private, while instructors gain read-only access to anonymized aggregate metrics. This fits institutional deployments where FERPA compliance matters.
Trade-offs
- Self-hosting requires Python 3.11+, Next.js 16, and database dependencies: The backend runs on Python 3.11+ with Next.js 16 for the web interface, requiring PostgreSQL for user data and vector storage (FAISS or ChromaDB). Lightweight VPS deployments under 2GB RAM may struggle with concurrent LLM inference and RAG retrieval, especially when using local models via Ollama or llama.cpp. Cloud deployment or a dedicated server (4GB+ recommended) resolves this, but it is not a zero-dependency install.
- LLM API costs scale with tutoring volume: DeepTutor supports local models (Ollama, LM Studio, vLLM) and cloud providers (OpenAI, Anthropic, Google Gemini, DeepSeek), but tutoring quality depends on reasoning-capable models like GPT-4o or Claude. For high-volume deployments (hundreds of students with daily interactions), cloud API costs can exceed $500 per month unless you self-host quantized models with acceptable quality tradeoffs.
- 105 open issues indicate areas under active development: While the project ships frequent releases, 105 open GitHub issues suggest ongoing stability work. Recent issues cover edge cases in RAG indexing, non-English language handling, and mobile layout polish. Teams deploying in production should budget for monitoring edge-case behavior and contributing fixes upstream when needed.
Tech stack
FAQ
Yes, DeepTutor is Apache 2.0 licensed and free to self-host on your infrastructure. You pay only for server costs and LLM API usage (if using cloud providers like OpenAI or Anthropic). The framework also supports local models via Ollama, LM Studio, or vLLM, which eliminates per-token API fees but requires GPU hardware for acceptable inference speed. There is no per-student licensing or feature gating in the open source release.
Yes, DeepTutor supports local LLM inference via Ollama, LM Studio, llama.cpp, and vLLM. You can run quantized models like Llama 3, Gemma, or Qwen locally with GPU acceleration. However, tutoring quality depends on model reasoning capability, and quantized models may produce lower-quality explanations compared to cloud models like GPT-4o or Claude. For production deployments, teams typically start with cloud APIs for quality validation and migrate to local models once they identify acceptable quality-cost tradeoffs.
DeepTutor integrates with OpenAI, Anthropic (Claude), Google Gemini, DeepSeek, Novita AI, Eden AI, Atlas Cloud, and NVIDIA NIM for cloud inference. For local deployment, it supports Ollama, LM Studio, llama.cpp, vLLM, and any OpenAI-compatible endpoint. Embedding models include OpenAI, Google Gemini Embedding 2, NVIDIA NIM embeddings, and local options via sentence-transformers. The catalog-based model selection UI shows only models available for your configured providers.
ChatGPT and Claude are general-purpose conversational models without tutoring-specific workflows. DeepTutor adds citation-grounded feedback (every answer links to source material), difficulty-calibrated question generation (adapts to learner progress), and dynamic learner memory (context persists across sessions). TutorBench benchmarks show DeepTutor improves personalized tutoring metrics by 10.8% and general agentic reasoning by 29.4% compared to baseline LLM chat. For one-off questions, ChatGPT is simpler; for scaffolded learning over weeks, DeepTutor's memory and adaptive difficulty provide better outcomes.
Minimum requirements: 4GB RAM, 2 CPU cores, 20GB disk for the backend and database. If using local LLM inference, add a GPU with at least 8GB VRAM for quantized models (16GB+ recommended for full-precision models). Cloud API deployments (OpenAI, Claude) do not require GPU but incur per-token costs. For institutional deployments serving 100+ concurrent students, a dedicated server or cloud VM with 16GB RAM and load-balanced inference endpoints is recommended.