Short answer: DeepTutor is a free, open source learning workspace from the HKUDS lab. You give it your own files, and it builds a tutor around them: chat, quizzes, study paths, research and more. It runs on your machine, works with cloud models or local ones like Ollama, and is under the Apache-2.0 license.
What DeepTutor is
Most AI chat tools answer one question and forget you. DeepTutor is built the other way. Its tagline is "Lifelong Personalized Tutoring," and the idea is a tutor that keeps track of what you are learning and works from the materials you give it, not only from general web knowledge.
The project is on GitHub at HKUDS/DeepTutor, with about 43,000 stars at the time of writing. The team says plainly on the page that they do not have any paid online product.
What it can do
DeepTutor groups its features into modes. The ones that stand out for creators:
- Chat and Ask Questions: talk to your own documents and get answers grounded in them.
- Quiz: generate questions from a chapter, a lesson or a set of notes.
- Mastery Path and Course Study: a step by step learning path that follows your progress.
- Visualize: turn a concept into a diagram or visual explanation.
- Research and Solve: deeper answers that break a hard problem into steps.
- Audio Overview, Immersive Reading, Co-Writer and Book: listen to a summary, read with help, or write with the material at your side.
Under the hood there is a knowledge center that indexes your files with several retrieval engines (LlamaIndex, LightRAG, GraphRAG and others). There is also a command line tool with JSON output, which is useful if you want an agent to call DeepTutor as part of a bigger workflow.
How to run it
You install it yourself. The README lists three ways: from PyPI (pip install deeptutor), from source, or with Docker. The Python install needs Python 3.11 or newer and Node.js 20 or newer. The Docker image needs neither.
For the model, you choose. It supports OpenAI, Anthropic and other cloud providers, plus local runners like Ollama, LM Studio, llama.cpp and vLLM. With a local model you need no API key at all. With a cloud model you pay that provider for usage, not DeepTutor.
Who it's for
- Course creators: load your lessons and test them the way a student would. Generate quizzes and see where the explanations are thin.
- Students and self learners: a study partner that stays with your own books and notes.
- Agent builders: the CLI and JSON output make it a learning engine you can plug into your own tools.
- Writers of guides and books: the Co-Writer and Book modes help shape long material.
What to watch out for
- Setup takes some work. This is not a website you sign up to. You need Docker or a Python and Node setup.
- Costs depend on the model. DeepTutor is free, but cloud models charge per use. Heavy research or long courses can add up. Local models are free but need a decent computer.
- Partner tools may cost money. One retrieval option, PageIndex, comes from a partner with an optional paid plan. You can use the other engines instead.
- Languages. The interface lists many languages, including English, Chinese, Spanish, French and Arabic. Hebrew is not on the list we saw, so check before building a Hebrew course on it.
- Check the answers. Like any AI tutor, it can be wrong. Review quizzes and explanations before you share them with students.
- Your files stay with you when you run it locally, but if you use a cloud model, the text you send goes to that provider.
Source: HKUDS/DeepTutor on GitHub
More AI tools and ready prompts at masterphub.io