Deploy DeepTutor (w/ AI setup)
Self-hosted AI tutor with admin login, AI model and knowledge bases set up.
DeepTutor
Just deployed
/app/data
Deploy and Host DeepTutor (w/ AI setup) on Railway
DeepTutor is an open-source AI tutor that teaches from your own documents, quizzes you and remembers your progress. This template sets it up from the deploy form: chat, knowledge bases and web search work at first sign-in, behind your own admin login.

About Hosting DeepTutor (w/ AI setup)
You get DeepTutor 1.7.0 with a volume for all its data. Enter a password and an AI key on the form, open the service's URL and sign in as admin with that password.
Get an OpenAI key
- Sign in at platform.openai.com/api-keys and click Create new secret key.
- Name it (for example "DeepTutor"), set Expiration to Never and click Create secret key.
- Click Copy, because OpenAI shows the key only once, and paste it into
LLM_API_KEYon the deploy form. - For another provider, also set
LLM_PROVIDERandLLM_MODEL. A Gemini key covers knowledge bases too; with other providers, add an embedding model in DeepTutor's Settings before creating a knowledge base.
Common Use Cases
- Study from your own textbooks
- Practice quizzes with instant feedback
- Tutor a class with separate accounts
Dependencies for DeepTutor (w/ AI setup) Hosting
- DeepTutor
- An AI provider key (OpenAI by default)
Deployment Dependencies
Implementation Details

Back up the volume: it holds knowledge bases, accounts and saved AI keys. Idles at about 0.2 GB of memory. Only admins can create Word, PDF, PowerPoint and Excel files: Railway can't run DeepTutor's separate code sandbox.
Why Deploy DeepTutor (w/ AI setup) on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying DeepTutor (w/ AI setup) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Updated 2026-10-30: First release.
Template Content
DeepTutor
ghcr.io/hkuds/deeptutor:1.7.0LLM_API_KEY
API key of your AI provider (an OpenAI key by default). Used for chat, and with OpenAI or Gemini for knowledge bases too.
ADMIN_PASSWORD
Your sign-in password, 8 characters or more. To reset it later, change it here and redeploy.

