Getting Started¶
Prerequisites¶
- Python 3.11+
- Node.js 18+
- Docker Desktop — download here (used to run MongoDB)
1. Install¶
2. Start MongoDB¶
Mozaiks requires a database to store your apps, build history, and workspace state. The easiest way to start one is via a docker using the following command:
Don't want Docker?
Use MongoDB Atlas (free tier, cloud-hosted, nothing to install). Set MONGO_URI to your Atlas connection string in step 3.
3. Set environment variables¶
Other providers
Using Atlas? Replace MONGO_URI with your Atlas connection string.
Using Anthropic? Set ANTHROPIC_API_KEY instead of OPENAI_API_KEY.
4. Create your workspace and open Studio¶
Replace my-workspace with whatever you want to name your app folder:
This scaffolds the workspace, starts the backend and frontend, and opens Studio in your browser at http://localhost:3000.
5. Build your first app¶
- Click Create App
- Describe what you want to build in the chat
- Follow the workflow — the AI guides you through the build steps
- Review and promote the generated app when it's ready
In-progress builds stay in Apps so you can always pick up where you left off.
Coming back to an existing workspace
Troubleshooting¶
MongoDB connection error
Make sure Docker is running and the MongoDB container is up:
If you used Atlas, double-check the connection string is correct and the cluster is reachable.
mozaiks is not recognized
Use python -m mozaiks instead. The mozaiks shortcut requires your Python scripts directory to be on PATH, which Windows doesn't always do automatically.
Builds fail or hang
Make sure OPENAI_API_KEY or ANTHROPIC_API_KEY is set in your current shell session. You can open Studio without a key but builds will not run.
Contributing to Mozaiks or setting up from a repo checkout? See Local Setup.