{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "thu-maic-openmaic--generate-an-interactive-lesson-from-a-topic",
 "repo": "THU-MAIC/OpenMAIC",
 "repo_url": "https://github.com/THU-MAIC/OpenMAIC",
 "repo_slug": "thu-maic-openmaic",
 "title": "Generate an interactive AI classroom from a topic or your notes",
 "page_title": "How to generate an interactive AI classroom from a topic or your notes with OpenMAIC",
 "summary": "Install OpenMAIC locally, add one API key, start the database and describe a topic.",
 "who": "A teacher who wants a lesson with slides, a quiz and a discussion built in minutes.",
 "problem": "Building slides, quizzes and simulations for every topic takes hours.",
 "outcome": "A full lesson delivered by AI teachers and classmates at http://localhost:3000.",
 "steps": [
  "Run `git clone https://github.com/THU-MAIC/OpenMAIC.git`, `cd OpenMAIC` and `pnpm install`",
  "Run `cp .env.example .env.local` and add OPENAI_API_KEY",
  "Run `cp openmaic.example.yml openmaic.yml` to choose the server's models",
  "Run `pnpm db:up`, then uncomment the local DATABASE_URL line in .env.local",
  "Run `pnpm dev`, open http://localhost:3000 and describe a topic or attach materials"
 ],
 "agent_prompt": "Set up THU-MAIC/OpenMAIC locally: clone, `pnpm install`, copy .env.example to .env.local with my OPENAI_API_KEY, copy openmaic.example.yml, run `pnpm db:up` and `pnpm dev`, then generate a lesson on <topic>.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "40 minutes",
 "basis": "readme",
 "caveat": "This card is written from the THU-MAIC/OpenMAIC README, not from a test run by Deduped. Before you start, make sure you have Node.js 22.19 or later and pnpm 10 or later, or Docker. Check the repo for newer instructions before you rely on these steps.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.19 or later and pnpm 10 or later, or Docker",
  "PostgreSQL 16 (pnpm db:up starts one in Docker)",
  "An API key for a model provider, for example OPENAI_API_KEY"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Keys stay in .env.local and are referenced as ${VAR} in openmaic.yml; never commit .env.local."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/thu-maic-openmaic/generate-an-interactive-lesson-from-a-topic/",
 "md": "https://dedupedai.com/use-cases/thu-maic-openmaic/generate-an-interactive-lesson-from-a-topic/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/thu-maic-openmaic--generate-an-interactive-lesson-from-a-topic.json",
 "api_version": "v1"
}
