How to install THU-MAIC/OpenMAIC. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
THU-MAIC/OpenMAIC Installation Guide
How to install THU-MAIC/OpenMAIC. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for THU-MAIC/OpenMAIC. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i THU-MAIC/OpenMAICor
Install via npx
npx @hexmos/ipm i THU-MAIC/OpenMAICPrerequisites
Node.js
dependencyVersion: >=20
pnpm
dependencyVersion: >=10
Docker
dependencyVersion: latest
ffmpeg
dependencyVersion: latest
PostgreSQL
dependencyVersion: latest
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Clone & Install
git clone https://github.com/THU-MAIC/OpenMAIC.git
cd OpenMAIC
pnpm installConfigure (using .env.local)
cp .env.example .env.local
echo 'OPENAI_API_KEY=sk-...' >> .env.localRun (Development)
pnpm devRun (Production)
pnpm build
pnpm startDocker Deployment
cp .env.example .env.local
echo 'YOUR_API_KEYS' >> .env.local
docker compose up --buildDocker Deployment with China Build Acceleration
cp .env.example .env.local
echo 'YOUR_API_KEYS' >> .env.local
ALPINE_MIRROR=mirrors.tuna.tsinghua.edu.cn NPM_REGISTRY=https://registry.npmmirror.com docker compose up --buildServer-backed Persistence (PostgreSQL)
cp .env.example .env.local
printf '\nDATABASE_URL=postgres://openmaic:openmaic-dev@postgres:5432/openmaic\nPERSISTENCE_DEV_TOKEN=openmaic-local-dev\n' >> .env.local
NEXT_PUBLIC_PERSISTENCE=1 NEXT_PUBLIC_PERSISTENCE_TOKEN=openmaic-local-dev docker compose --profile server-persistence up --buildAgent Workbench and Runtime
cp .env.example .env.local
printf '\nNEXT_PUBLIC_PRO_WORKBENCH_ENABLED=true\nOPENMAIC_AGENT_RUNTIME_ENABLED=true\n' >> .env.local
printf 'DATABASE_URL=postgres://openmaic:openmaic-dev@postgres:5432/openmaic\n' >> .env.local
printf 'MODEL_ROUTES=''{\"maic-agent-driver\":{\"model\":\"openai:gpt-5.5\",\"api\":\"openai-completions\"}}'' >> .env.local
NEXT_PUBLIC_PERSISTENCE=1 NEXT_PUBLIC_PERSISTENCE_TOKEN=openmaic-local-dev docker compose --profile server-persistence up --buildMP4 Video Export (Render Service)
docker compose --profile video-export up --buildMinerU (Advanced Document Parsing)
cp .env.example .env.local
printf '\nPDF_MINERU_BASE_URL=http://your-mineru-instance:port\n' >> .env.localVoxCPM2 (Self-Hosted TTS)
cp .env.example .env.local
printf '\nTTS_VOXCPM_BASE_URL=http://localhost:8000/v1\n' >> .env.localPost Installation Steps
- Open http://localhost:3000 in your browser.
- For production builds, run 'pnpm build && pnpm start'.
