Skip to content

Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • Docker Desktop — download here (used to run MongoDB)

1. Install

pip install mozaiks

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:

docker run -d --name mozaiks-mongo -p 27017:27017 mongo:7

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

$env:MONGO_URI="mongodb://localhost:27017/mozaiks"
$env:OPENAI_API_KEY="sk-..."

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:

python -m mozaiks quickstart --dir .\my-workspace

This scaffolds the workspace, starts the backend and frontend, and opens Studio in your browser at http://localhost:3000.

5. Build your first app

  1. Click Create App
  2. Describe what you want to build in the chat
  3. Follow the workflow — the AI guides you through the build steps
  4. 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

docker start mozaiks-mongo   # bring MongoDB back up if your PC restarted
python -m mozaiks studio --dir .\my-workspace --open

Troubleshooting

MongoDB connection error

Make sure Docker is running and the MongoDB container is up:

docker start mozaiks-mongo

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.