Skip to content

Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 20.19+ or 22.12+ (required by the Vite 8 frontend toolchain)
  • Docker Desktop — download here (used to run MongoDB)

Mozaiks installs Tree-sitter parser packages with the core framework checkout so Studio can build source-backed App Intelligence for generated and existing apps. Mozaiks is not published on PyPI yet, so install it from this repo instead of pip install mozaiks. No separate parser setup is required.

1. Install

git clone https://github.com/BlocUnited-LLC/mozaiks.git
cd mozaiks
python -m pip install -e ".[dev]"
git clone https://github.com/BlocUnited-LLC/mozaiks.git
cd mozaiks
python -m pip install -e ".[dev]"

2. Start MongoDB

Mozaiks requires a database to store your apps, build history, and workspace state. The easiest way to start one is via Docker:

docker run -d --name mozaiks-mongo -p 27017:27017 mongo:7
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-..."
export MONGO_URI="mongodb://localhost:27017/mozaiks"
export OPENAI_API_KEY="sk-..."

LLM provider

Builds call OpenAI today: the runtime builds OpenAI clients only. The default model is gpt-5-nano; set DEFAULT_LLM_MODEL to use another OpenAI model. Gemini and Anthropic keys are not used for builds yet.

Using Atlas? Replace MONGO_URI with your Atlas connection string.

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
python -m mozaiks quickstart --dir ./my-workspace

This scaffolds the workspace, starts the backend and frontend, and opens Studio in your browser at http://127.0.0.1:3000/apps. While it runs, http://localhost:3000 reaches the same Studio.

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.

This first build is your app's Genesis Build; after that, every change you ask for is a Refinement Run against the app you already have. See Genesis Builds and Refinement Runs.

Code Context Infrastructure

Mozaiks indexes app source into a SourceContextBundle, AppContextGraph, and AppIntelligenceSnapshot after generated artifacts, App Intelligence indexing, or existing-app discovery. This is automatic and uses Tree-sitter-backed parsing where supported.

For local quickstarts, graph snapshots are stored with Mozaiks artifacts. For team or production deployments with large repositories, plan to run FalkorDB as the graph-query mirror for faster multi-hop queries and Studio visualization. FalkorDB mirrors canonical AppContext and App Intelligence artifacts; it does not replace them.

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
docker start mozaiks-mongo   # bring MongoDB back up if your machine 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
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 some systems don't configure automatically.

Builds fail or hang

Make sure OPENAI_API_KEY is set in the current shell session; builds call OpenAI only. You can open Studio without a key but builds will not run.


What's Next

  • Key Concepts


    Workspaces, apps, modules, workflows — the full mental model in one page.

    Key Concepts

  • CLI Reference


    Every mozaiks command in one place.

    CLI Reference

  • Use Studio


    Learn the workspace and app dashboard surfaces.

    Studio

  • Guides


    Add modules, pages, workflows, integrations, and more.

    Guides


Contributing to Mozaiks or setting up from a repo checkout? See Local Setup.