HKUDS/DeepTutor
A self-hosted agent workspace for source-grounded tutoring, reading, and practice
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeepTutor is a Python-based tutoring application with a shared agent runtime. Chat is the main entry point: within a thread, the tutor can ask clarifying questions, retrieve from selected libraries, read attachments, call tools or subagents, and write notebook records. Quiz, Research, Solve, Visualize, Reading, and Mastery Path share session context but retain distinct workflows. Materials and progress are organized by workspace, while Partners and personalization are account-scoped.
The root tree separates deeptutor/, deeptutor_cli/, and deeptutor_web/. The package uses setuptools, with dependencies including PyYAML, Jinja2, openai, tiktoken, aiohttp, and httpx. Personas, skills, MCP services, and CLI apps extend the shared runtime. Evaluate those integrations separately from core tutoring: their permissions and data paths depend on the tools you enable.
Key Capabilities & Differentiators
DeepTutor's main strength is connecting source-based study with what happens after the chat. It supports versioned libraries built with LlamaIndex, PageIndex, GraphRAG, or LightRAG, plus external knowledge sources. Reading workflows cover documents, video, and audio with source-linked citations. Books, Practice, Mastery Path, and the learning notebook let users revisit material without having to reconstruct their study history from chat threads.
Chat offers toggleable tools such as web, paper, and Zotero search, plus GeoGebra analysis. Image and video generation require separately configured generation models. The app can consult Claude Code, Codex, or Grok CLI, import previous conversations, or use persistent Partners with their own memory, resources, and messaging channels. Memory Graph exposes editable L1 traces, L2 facts, and L3 synthesis with evidence links, so users can check what personalization is based on.
Trade-offs & Limitations
Compared with a general-purpose self-hosted chat frontend, DeepTutor is a better fit when users need to revisit sources, track mastery, and turn reading into practice. For occasional model chat or PDF Q&A, a simpler frontend avoids maintaining learning workflows and choosing among retrieval backends. Pilot with your own PDFs and course material, checking citation quality and reindexing behavior before committing to a backend.
Remote inference reduces local compute requirements, but introduces provider costs and data-handling constraints. Local inference shifts sizing and maintenance to your team; model choice and concurrency drive compute needs, while the library adds indexing and storage work. Self-hosting the app does not keep all traffic local if web search, external agents, or hosted models remain enabled. Review those data paths and tool permissions before connecting sensitive materials.
Hardware & Deployment Guide
For a local trial, ghcr.io/hkuds/deeptutor:latest serves the web app on 127.0.0.1:3782 and persists settings and local data in a named volume mounted at /app/data. For Compose, use scripts/docker_compose.py to render port mappings from system.json. Configure model providers in Web Settings or data/user/settings/model_catalog.json. When Ollama, LM Studio, or vLLM runs on the Docker host, use a host-reachable endpoint rather than container localhost; the Compose example uses host.docker.internal.
The full PyPI install, deeptutor[full], includes Web and CLI and requires Python 3.11–3.14 and Node.js 20.9+; bare deeptutor installs core chat and the SDK. macOS and Windows desktop previews bundle both runtimes. v1.7.0 introduced modular installation and resumable embedding checkpoints. v1.7.4 replaced the desktop runtime signing key after release credentials were exposed in GitHub Actions artifacts; desktop users on older builds should install the updated release.
Learners and educators who want a self-hosted workspace that turns their own materials into cited tutoring, structured practice, and progress they can revisit.
You only need lightweight model chat, or need guaranteed offline operation without validating the model, retrieval, and tool stack yourself.
Quick Start & Installation
docker run --rm --name deeptutor \ -p 127.0.0.1:3782:3782 \ -v deeptutor-data:/app/data \ ghcr.io/hkuds/deeptutor:latest
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| DeepTutor ★ | 65.5k | +1.6k | Python | Apache-2.0 | A self-hosted agent workspace for source-grounded tutoring, reading, and practic |
| onyx | 33.7k | +68 | Python | — | Self-hosted AI chat with hybrid search across permission-scoped team knowledge |
| open-webui | 160.2k | +466 | Svelte | — | Self-hosted chat for Ollama and OpenAI-compatible model backends |
| ODS | 8k | +88 | Python | Apache-2.0 | A Docker Compose stack for private AI chat and inference on your own hardware |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/HKUDS/DeepTutor.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about DeepTutor
How do retrieval and external integrations fit into a tutoring session?
How should I size the host and estimate GPU or VRAM needs?
Can a company self-host or redistribute DeepTutor?
When is DeepTutor a better fit than a general-purpose chat frontend?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy