# AI use cases for OpenMAIC (THU-MAIC/OpenMAIC)

Repo: [THU-MAIC/OpenMAIC](https://github.com/THU-MAIC/OpenMAIC) | Use cases: 3 | Page: https://dedupedai.com/use-cases/thu-maic-openmaic/

OpenMAIC (Open Multi-Agent Interactive Classroom) turns a topic or your materials into a full interactive lesson. AI teachers and classmates lecture, discuss, draw on a whiteboard and speak, across slides, quizzes, interactive HTML simulations and project-based learning. It runs as a self-hosted server with PostgreSQL, takes models from many providers through openmaic.yml, and exports classrooms as PPTX or offline HTML.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Generate an interactive AI classroom from a topic or your notes: https://dedupedai.com/use-cases/thu-maic-openmaic/generate-an-interactive-lesson-from-a-topic/
- Self-host OpenMAIC for yourself with Docker Compose: https://dedupedai.com/use-cases/thu-maic-openmaic/self-host-openmaic-with-docker/
- Make classrooms from your agent workbench with the OpenMAIC Skill: https://dedupedai.com/use-cases/thu-maic-openmaic/make-classrooms-from-your-agent-with-the-skill/

## How to generate an interactive AI classroom from a topic or your notes with OpenMAIC

Repo: [THU-MAIC/OpenMAIC](https://github.com/THU-MAIC/OpenMAIC) | Difficulty: Intermediate | Time: 40 minutes | Basis: From the README

Install OpenMAIC locally, add one API key, start the database and describe a topic.

**Who it is for:** A teacher who wants a lesson with slides, a quiz and a discussion built in minutes.

**The problem:** Building slides, quizzes and simulations for every topic takes hours.

**The outcome:** A full lesson delivered by AI teachers and classmates at http://localhost:3000.

### Steps

1. Run `git clone https://github.com/THU-MAIC/OpenMAIC.git`, `cd OpenMAIC` and `pnpm install`
2. Run `cp .env.example .env.local` and add OPENAI_API_KEY
3. Run `cp openmaic.example.yml openmaic.yml` to choose the server's models
4. Run `pnpm db:up`, then uncomment the local DATABASE_URL line in .env.local
5. Run `pnpm dev`, open http://localhost:3000 and describe a topic or attach materials

### Prompt to paste into your agent

```text
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.

Risk, credentials: Keys stay in .env.local and are referenced as ${VAR} in openmaic.yml; never commit .env.local.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/thu-maic-openmaic/generate-an-interactive-lesson-from-a-topic/

## How to self-host OpenMAIC for yourself with Docker Compose with OpenMAIC

Repo: [THU-MAIC/OpenMAIC](https://github.com/THU-MAIC/OpenMAIC) | Difficulty: Beginner | Time: 20 minutes | Basis: From the README

Run the two-container stack and keep courses and media in named volumes.

**Who it is for:** Someone who wants a personal lesson server without installing Node.js and PostgreSQL.

**The problem:** Running the app plus a database by hand is fiddly and data can get lost on rebuilds.

**The outcome:** A personal installation on 127.0.0.1:3000 whose data survives docker compose down and rebuilds.

### Steps

1. Run `cp .env.example .env.local` and add your API keys
2. Run `docker compose up --build`
3. Open http://localhost:3000
4. Before serving other machines, set a long random ACCESS_CODE and PERSISTENCE_POSTGRES_PASSWORD

### Prompt to paste into your agent

```text
Deploy OpenMAIC with `docker compose up --build` after filling .env.local with my keys. Keep it on 127.0.0.1; if I ask to share it, set ACCESS_CODE and a random PERSISTENCE_POSTGRES_PASSWORD first.
```

### Caveat

`docker compose down -v` deletes the named volumes with your courses.

Risk, credentials: Without ACCESS_CODE, anyone who can reach the port owns, edits and can delete the whole library.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/thu-maic-openmaic/self-host-openmaic-with-docker/

## How to make classrooms from your agent workbench with the OpenMAIC Skill

Repo: [THU-MAIC/OpenMAIC](https://github.com/THU-MAIC/OpenMAIC) | Difficulty: Intermediate | Time: 20 minutes | Basis: From the README

Install the skill so OpenClaw, Codex and similar workbenches can start and drive OpenMAIC for you.

**Who it is for:** A developer who wants to request a lesson from chat or the IDE.

**The problem:** Switching to a separate app to generate each lesson breaks the flow.

**The outcome:** A skill that clones, starts, configures and submits generation jobs with your confirmation at each step.

### Steps

1. Run `clawhub install openmaic`
2. Or import the `skills/openmaic/` folder into Codex, DeepSeek or WorkBuddy
3. Ask the agent for a classroom; the skill asks before cloning, installing or choosing pnpm dev, pnpm build && pnpm start, or Docker
4. Edit `.env.local` yourself when it recommends a provider path

### Prompt to paste into your agent

```text
Using the OpenMAIC skill, start OpenMAIC with pnpm dev and generate a classroom on <topic>. Ask me before cloning or installing anything.
```

### 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.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/thu-maic-openmaic/make-classrooms-from-your-agent-with-the-skill/
