AI Study Partner is an open-source app for students. You upload your study files (PDFs/notes), and it helps you learn step by step.
- Turn your notes into chapters and topics
- Explain topics in easy language
- Create quizzes and mock exams
- Show weak topics for revision
- Save your learning progress
- Students preparing for exams
- Parents and teachers helping students
- Open-source beginners who want to contribute
You need:
- Node.js 18.17+
- One supported AI CLI:
claudeorcodex
-
Install packages:
npm install
-
Create local environment file:
cp .env.example .env.local
-
Add this in
.env.local:COMPANION_SECRET=your-long-random-secret
-
(Optional) Generate a strong secret:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" -
Start the app:
npm run dev:all
Now open: http://localhost:3000
After opening the app:
- Go to Settings → AI settings
- Check companion status
- Install/sign in to your AI CLI if needed
- Upload your first study file
- Upload PDF or notes
- App creates a course structure
- Learn topic-by-topic
- Take quizzes
- Revise weak areas
- Track progress
- Your data is stored on your machine in
./data ./datais git-ignored- This app is made for local personal use
Reset local password:
npm run reset-passwordReset specific email:
npm run reset-password [email protected]Run companion on host:
npm run companionThen run web app in Docker:
export $(grep -v '^#' .env.local | xargs)
docker compose up --buildOpen: http://localhost:3000
-
Fork this repo
-
Create a branch
-
Make your changes
-
Run:
npm run lint npm run test -
Open a pull request with clear summary
src/app→ pages and API routessrc/components→ UI componentssrc/lib→ app logic (learn, quiz, store, ingest)companion→ local AI companion servicescripts→ helper scripts
npm run dev→ start web appnpm run companion→ start companion servicenpm run dev:all→ start both togethernpm run lint→ lint checksnpm run test→ testsnpm run build→ production build