The Mozaiks core is a self-hostable runtime for deploying AI-driven, multi-tenant web apps with real-time UI, auth, and billing built in. Apps are defined via YAML and lightweight Python/JS stubs for agent logic, workflows, and integrations — so developers focus on behavior, not plumbing. :link: https://docs.mozaiks.ai/ :link: https://mozaiks.ai
Mozaiks is an open-source AI app factory for building, running, and iterating on AI-native software products.
It brings together three things that usually live in separate tools:
The goal is not to generate a throwaway demo. Mozaiks stages production-shaped artifacts, validates them against strict contracts, and keeps runtime concerns separate from builder workflows.
Every Mozaiks app begins with one Genesis Build: the first complete journey from product intent to a staged, validated app. It establishes the app's first canonical artifact lineage.
Every later change is a Refinement Run. Mozaiks starts from the app's current artifacts and history, determines what the request affects, and re-enters only the parts of the build needed to stage a safe new version for review. A small copy fix and a major product rethink are both Refinement Runs; their scope and route are different, but neither discards the app's lineage.
Internally, the Refinement Engine classifies and routes Refinement Runs. Genesis Build and Refinement Run are the product-facing lifecycle terms.
Five steps from installation to your first app in Studio.
^20.19.0 || >=22.12.0)Docker Desktop is not required; use MongoDB Atlas, a local MongoDB install, or Docker only if that is how you prefer to run MongoDB.
Commands below are shown for Windows PowerShell and for macOS / Linux shells (bash or zsh) wherever the two differ.
Install the public package from PyPI:
python -m pip install mozaiks
Contributors working on the framework should instead use an editable checkout. These commands are the same in every shell:
git clone https://github.com/BlocUnited-LLC/mozaiks.git
cd mozaiks
python -m pip install -e ".[dev]"
On macOS and Linux, use python3 wherever these steps say python if your
system has no python command. If pip refuses with an
externally-managed-environment error, create and activate a virtual
environment first, as shown in
Local Setup.
Studio stores workspace state in MongoDB, so configure it before opening Studio: MongoDB must already be running; setting its URI does not start the database.
Windows (PowerShell)
# Local MongoDB
$env:MONGO_URI="mongodb://localhost:27017/mozaiks"
macOS / Linux (bash or zsh)
# Local MongoDB
export MONGO_URI="mongodb://localhost:27017/mozaiks"
For another MongoDB server, replace the local URI with its connection string. If you need to start a local database, follow Getting Started.
Builds call OpenAI today: the runtime builds OpenAI clients only, so set
OPENAI_API_KEY:
Windows (PowerShell)
$env:OPENAI_API_KEY="sk-..."
macOS / Linux (bash or zsh)
export OPENAI_API_KEY="sk-..."
Replace sk-... with your own key and keep the quotes. In PowerShell, an
unquoted key is treated as a command and produces "not recognized". Keep the
key private when sharing terminal output.
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, and the
provider you pick in Studio or with --provider is recorded for display only.
Variables set this way last only for the current terminal session. Run step 4 in the same terminal, or set them again in a new one.
Windows (PowerShell)
Set-Location $env:USERPROFILE
python -m mozaiks quickstart --dir .\mozaiks-workspace
macOS / Linux (bash or zsh)
cd "$HOME"
python -m mozaiks quickstart --dir ./mozaiks-workspace
These commands create mozaiks-workspace inside your user folder, start the
local Studio, and open it in your browser. You can choose another writable
folder instead. A relative --dir path starts from the terminal's cu
Open findings carried over from removed review docs
https://github.com/BlocUnited-LLC/mozaiks/issues/1170
Labels: 없음
Mozaiks is the OSS runtime, platform, Studio, and factory framework repo.
factory_app is the first-party builder/reference app workspace that dogfoods
the same contracts external app workspaces consume.
All participation in this repository is governed by the Code of Conduct.
Follow this path for any human-authored contribution — a bug fix, a docs change, a new test, or a small feature:
Fork the repository and clone your fork.
Create a branch for your change, e.g. git checkout -b fix/short-description.
Install development dependencies:
pip install -e ".[dev]"
Make a focused change. Keep the diff scoped to one thing and avoid unrelated refactors.
Sign off your commits with git commit -s. This certifies you have the
right to contribute the change under the
Developer Certificate of Origin - there is no CLA and no rights
assignment. CI checks for it, and forgetting is easy to fix after the fact.
Run the relevant tests for what you changed. Use the narrowest test slice that covers your change (see Running Tests Locally below), or run the full suite with pytest.
Open a pull request against main using the pull request template. Describe what changed, why, and what you tested.
Using an AI coding agent (Claude Code, Cursor, Copilot, or similar)? Read the AI Policy first — it is short, it applies to maintainers and their agents too, and it explains what we ask of any contribution regardless of how it was written. Then see Working With an AI Coding Agent below for the repo's optional agent routing system, which is tooling this repo supports rather than a prerequisite for contributing.
Looking for something to work on:
Browse the good first issue label — scoped, self-contained work, written with file and line references so you are not hunting for context.
Most of these need no MongoDB, Node.js, or LLM API key — see What You Can Contribute Without Extra Setup.
Comment on the issue saying you are taking it, and wait for a maintainer to assign it to you. GitHub does not let contributors self-assign, so the assignment has to come from our side; it is usually quick.
This matters more than it looks. Two people have already built the same fix half an hour apart because nothing here said to claim first, and one of them lost the work. That was our fault, not theirs, and this section exists so it does not happen again. An issue with an assignee is taken; an issue without one is free.
If an issue is assigned but has gone quiet for a couple of weeks, comment and ask — people's circumstances change and we would rather hand it on than let it sit.
Many issues here include a suggested fix. That is a starting point written by someone who may have been wrong, not a specification. Read the surrounding code first, and if the suggestion looks wrong, say so on the issue — noticing that is worth more to us than implementing it faithfully.
There is no bounty program; see Bounties.
Running the full Mozaiks Studio stack needs MongoDB, Node.js, and an LLM API key. Most first contributions need none of that:
Documentation changes (docs/, README.md, CONTRIBUTING.md, and other
Markdown) only need Python and the docs extra to preview locally:
pip install -e ".[docs]"
python -m mkdocs serve
This is the canonical docs recipe; the commands are the same in PowerShell,
bash, and zsh. python -m mkdocs build is the build command the docs deploy
workflow runs. On Windows, scripts/build-docs.ps1 (with -Serve or
-Strict) is an optional wrapper around these commands that uses the repo
.venv.
Most Python tests run with no external services. tests/conftest.py
automatically skips the tests that need a real app workspace
(MOZAIKS_APP_WORKSPACE_PATH or PLATFORM_PATH) — you do not need to set
those to add or fix an ordinary test.
Many mozaiks_cli changes can be developed and verified through the
CLI's own unit tests without MongoDB, Node.js, or a running Studio instance.
You only need Docker/MongoDB, Node.js 20.19+ or 22.12+ (required by the Vite 8 frontend toolchain), and an LLM API key when you are changing or manually verifying behavior that talks to a real database, a real frontend build, or a real LLM call. See Local Setup when you get there.
You do not need to run the entire test suite for every change. Pick the focused test file(s) that cover what you touched:
python -m pytest tests/test_your_file.py -q
Coverage gate note: The local pyproject.toml configuration sets a
repository-wide minimum coverage threshold of 30% (--cov-fail-under=30,
measured against mozaiksai). However, CI enforces a stricter 70% gate on
the combined coverage of its test shards: each shard runs with
--cov-fail-under=0, and the test job in .github/workflows/ci.yml then
runs coverage report --fail-under=70. CI is authoritative — your pull request
must pass the 70% threshold regardless of local results.
Running a narrow test file against the global threshold will often report a coverage failure even when every test you ran passes. That failure reflects the coverage math for the whole package, not a problem with your change.
To run a focused slice without tripping the repository-wide coverage gate, use the verified command:
python -m pytest tests/test_your_file.py -q --no-cov
CI remains authoritative. --no-cov i