Credentials. Keys stay in .env.local and are referenced as ${VAR} in openmaic.yml; never commit .env.local.
Who it is forA teacher who wants a lesson with slides, a quiz and a discussion built in minutes.
The problemBuilding slides, quizzes and simulations for every topic takes hours.
The outcomeA full lesson delivered by AI teachers and classmates at http://localhost:3000.
What you need first
- 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
Steps
- Run
git clone https://github.com/THU-MAIC/OpenMAIC.git,cd OpenMAICandpnpm install - Run
cp .env.example .env.localand add OPENAI_API_KEY - Run
cp openmaic.example.yml openmaic.ymlto 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
Prompt for your agent
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>.
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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for THU-MAIC/OpenMAIC and "Generate an interactive AI classroom from a topic or your notes"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer