Skip to content

ashwini-361/OpenTutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OpenTutor Banner

๐Ÿ‡ฎ๐Ÿ‡ณ OpenTutor

Step-by-step AI tutoring for Indian students
AI se seekho โ€” step by step, in your language

Next.js React TypeScript LangGraph Tailwind CSS

๐Ÿ“š Subjects: Class 10 Math | Science | English Grammar | History

๐Ÿค Your Study Squad: AI Teacher | AI Assistant | Sawaal King

Try asking:
"Class 9 Maths - Triangles samjhao"
"Photosynthesis whiteboard pe explain karo"
"History of India batao"

๐Ÿš€ Class Shuru Karo


Live Demo ยท Quick Start ยท Features ยท Use Cases

๐Ÿ“– Overview

OpenTutor (Open Multi-Agent Interactive Classroom) is an open-source AI platform that turns any topic or document into a rich, interactive classroom experience. Powered by multi-agent orchestration, it generates slides, quizzes, interactive simulations, and project-based learning activities โ€” all delivered by AI teachers and AI classmates who can speak, draw on a whiteboard, and engage in real-time discussions with you. With built-in OpenClaw integration, you can generate classrooms directly from messaging apps like Feishu, Slack, or Telegram.

Highlights

  • One-click lesson generation โ€” Describe a topic or attach your materials; the AI builds a full lesson in minutes
  • Multi-agent classroom โ€” AI teachers and peers lecture, discuss, and interact with you in real time
  • Rich scene types โ€” Slides, quizzes, interactive HTML simulations, and project-based learning (PBL)
  • Whiteboard & TTS โ€” Agents draw diagrams, write formulas, and explain out loud
  • Export anywhere โ€” Download editable .pptx slides or interactive .html pages
  • OpenTutor integration โ€” Generate classrooms from Feishu, Slack, Telegram, and 20+ messaging apps via your AI assistant

Tip

OpenClaw โ€” Use OpenTutor from your chat app, zero setup

With OpenClaw, you can generate classrooms directly from Feishu, Slack, Discord, Telegram, and 20+ messaging apps.

  1. clawhub install openmaic or just ask your Claw "install OpenMAIC skill"
  2. Pick a mode:
    • Hosted mode โ€” Get an access code at open.maic.chat, no local setup needed
    • Self-hosted โ€” The skill walks you through clone, config, and startup step by step
  3. Tell your assistant "teach me quantum physics" โ€” done!

๐Ÿพ Learn more โ†’


๐Ÿš€ Quick Start

Prerequisites

  • Node.js >= 20
  • pnpm >= 10

2. Configure

cp .env.example .env.local

Fill in at least one LLM provider key:

OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_API_KEY=...

For local-first usage with Ollama (no quota limits):

OLLAMA_BASE_URL=http://127.0.0.1:11434/v1
OLLAMA_MODELS=qwen3.5:4b,deepseek-r1:8b,qwen2.5-coder:7b
DEFAULT_MODEL=ollama:qwen3.5:4b

You can also configure providers via server-providers.yml:

providers:
  openai:
    apiKey: sk-...
  anthropic:
    apiKey: sk-ant-...

Supported providers: OpenAI, Anthropic, Google Gemini, DeepSeek, and any OpenAI-compatible API.

Recommended model: Gemini 3 Flash โ€” best balance of quality and speed. For highest quality (at slower speed), try Gemini 3.1 Pro.

If you want OpenMAIC server APIs to use Gemini by default, also set DEFAULT_MODEL=google:gemini-3-flash-preview.

For hybrid reliability, keep one cloud key configured and use DEFAULT_MODEL=ollama:qwen3.5:4b; scene generation will auto-fallback to Ollama when cloud quota/rate limits are hit.

3. Run

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
pnpm dev

Open http://localhost:3000 and start learning!

4. Build for Production

pnpm build && pnpm start

Docker Deployment

cp .env.example .env.local
# Edit .env.local with your API keys, then:
docker compose up --build

Optional: MinerU (Advanced Document Parsing)

MinerU provides enhanced parsing for complex tables, formulas, and OCR. You can use the MinerU official API or self-host your own instance.

Set PDF_MINERU_BASE_URL (and PDF_MINERU_API_KEY if needed) in .env.local.


โœจ Features

Lesson Generation

Describe what you want to learn or attach reference materials. OpenMAIC's two-stage pipeline handles the rest:

Stage What Happens
Outline AI analyzes your input and generates a structured lesson outline
Scenes Each outline item becomes a rich scene โ€” slides, quizzes, interactive modules, or PBL activities

Classroom Components

๐ŸŽ“ Slides

AI teachers deliver lectures with voice narration, spotlight effects, and laser pointer animations โ€” just like a real classroom.

๐Ÿงช Quiz

Interactive quizzes (single / multiple choice, short answer) with real-time AI grading and feedback.

๐Ÿ”ฌ Interactive Simulation

HTML-based interactive experiments for visual, hands-on learning โ€” physics simulators, flowcharts, and more.

๐Ÿ—๏ธ Project-Based Learning (PBL)

Choose a role and collaborate with AI agents on structured projects with milestones and deliverables.

Multi-Agent Interaction

  • Classroom Discussion โ€” Agents proactively initiate discussions; you can jump in anytime or get called on
  • Roundtable Debate โ€” Multiple agents with different personas discuss a topic, with whiteboard illustrations
  • Q&A Mode โ€” Ask questions freely; the AI teacher responds with slides, diagrams, or whiteboard drawings
  • Whiteboard โ€” AI agents draw on a shared whiteboard in real time โ€” solving equations step by step, sketching flowcharts, or illustrating concepts visually.

OpenClaw Integration

OpenMAIC integrates with OpenClaw โ€” a personal AI assistant that connects to messaging platforms you already use (Feishu, Slack, Discord, Telegram, WhatsApp, etc.). With this integration, you can generate and view interactive classrooms directly from your chat app without ever touching a terminal.

Just tell your OpenClaw assistant what you want to learn โ€” it handles everything else:

  • Generate a classroom outline

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors