This guide walks you through cloning the Open Generative AI repository, running the setup script, and generating your first AI image or video. By the end you’ll have a fully working local studio — either as a desktop app powered by Electron or as a web app running onDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/anil-matcha/open-generative-ai/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:3000 — connected to 200+ models via your Muapi API key.
Prerequisites
Before you begin, make sure you have the following:- Node.js v18 or later — nodejs.org
- A Muapi.ai access key — generate one at muapi.ai/access-keys. Copy the generated key value; do not use the key name or label.
Most users should download the desktop app instead of building from source — no Node.js or terminal required. See the Deployment page for one-click installers for macOS, Windows, and Linux.
Steps
Clone the repository with submodules
Open Generative AI uses Git submodules for the workflow builder, agent, and design-agent packages. Cloning without If you already cloned without the flag, initialize the submodules now:
--recurse-submodules will leave those packages empty and break the build.Run setup
The This may take a few minutes on the first run. You’ll see each workspace package compile in sequence.
setup script does three things in one command: initializes any remaining submodules, installs all npm dependencies across every workspace, and builds the workspace packages (studio, workflow-builder, agents, design-agent). Running plain npm install is not sufficient — the workspace packages must be compiled before either dev script will work.Start the app
Choose the mode that fits your workflow:Desktop app (recommended) — launches the Electron wrapper backed by a Vite build:Web app — starts the Next.js dev server at
http://localhost:3000:Enter your Muapi API key
On first launch, the app displays an API key prompt. Paste the key value you copied from muapi.ai/access-keys and confirm. The key is stored in
localStorage and is sent only to the Muapi API — never to any other server.You can update or remove your key at any time from the settings panel inside the app.Generate your first image or video
With the app running and your API key saved:
- Open the Image Studio to generate images, or the Video Studio to generate videos.
- Choose a model from the model selector. Start with something fast — Flux Dev for images or Kling v1.5 for videos work well as first tests.
- Type a prompt in the prompt field.
- Click Generate.
Troubleshooting
Couldn't find a pages directory error
Couldn't find a pages directory error
This error means Next.js can’t locate the
app/ directory. It almost always has one of two causes:-
You’re not running the command from the repo root. Make sure your current directory contains
app/,package.json, andnext.config.mjsbefore runningnpm run dev. -
Submodules were not cloned. If
packages/Vibe-Workfloworpackages/Open-Poe-AIare empty directories, the workspace build will fail silently. Re-run the full setup:
Setup fails or workspace packages are missing
Setup fails or workspace packages are missing
If Check that each
npm run setup exits with errors, try running each step individually to isolate the problem:packages/ subdirectory contains source files before running build:packages.Next Steps
Image Studio
Explore 50+ text-to-image and 55+ image-to-image models, including multi-image input support.
Video Studio
Generate videos from text prompts or animate a start-frame image with 100+ models.
Local Inference
Run image generation entirely offline with the bundled sd.cpp engine on Mac, Windows, or Linux.
