Getting Started¶
If you have never used Mozaiks before, start here.
The recommended first experience is:
- set your environment
- create a local workspace
- open Studio
- build your app through the
factory_appworkflows
You do not need to hand-author workflows, modules, or branding before you open Studio.
What Mozaiks Is Doing¶
There are three layers involved in the first-run experience:
mozaiksCLI- bootstraps a local workspace and launches the app
- Studio
- browser UI where you create and manage builds
factory_app- the shared build workflows that decompose intent and generate the app
Important:
- the local workspace scaffold is not the finished app
- the generated app is staged separately first
- Studio and the generator workflows are the primary build path
Recommended Path For First-Time Users¶
Use the full Mozaiks repo checkout and launch Studio locally.
Why this is the recommended path:
- Studio lives in the shared frontend shell
- the builder workflows live in
factory_app - those pieces are available in the repo checkout
If a public mozaiks release is not yet available on PyPI, use the full repo checkout path below. The repo-first path remains the most complete builder experience during active framework development.
Prerequisites¶
You need:
- Python 3.11+
- Node.js 18+
- MongoDB, either:
- local MongoDB, or
- MongoDB Atlas
- one supported LLM provider key, such as:
OPENAI_API_KEYANTHROPIC_API_KEY
Check your tools:
Step 1: Clone The Repo¶
Fastest Path¶
If you already cloned the repo and want the shortest supported path into Studio, run the bootstrap script from the repo root.
PowerShell¶
macOS / Linux¶
What this does:
- creates
.venvwhen missing - runs
pip install -e . - launches
mozaiks quickstart - opens Studio
If you want the manual steps instead, keep reading.
Step 2: Create A Virtual Environment¶
PowerShell¶
macOS / Linux¶
This installs the mozaiks CLI from your local repo checkout.
Important:
- run the commands from the cloned
mozaiksrepo root - keep the virtual environment activated while you use
mozaiks - this is the supported first-time setup path today
Choose Your Path¶
If you are new to Mozaiks, use the builder path.
- Builder path
- You want to build an app through Studio and the shared
factory_appworkflows. - Use
mozaiks quickstart. - Framework path
- You are working on the runtime, CLI, platform hosts, workflow generator, or repo internals.
- Use
mozaiks onboard --full,mozaiks studio,mozaiks init, andmozaiks servedirectly.
Step 3: Set Your Environment Variables¶
Before launching Studio, set:
- your LLM key
- your Mongo connection string
PowerShell example¶
Bash example¶
If you use Anthropic instead of OpenAI:
If you prefer MongoDB Atlas, set MONGO_URI to your Atlas connection string.
Step 4: Quickstart Into Studio¶
Run:
What this does:
- creates a workspace scaffold if it does not exist
- writes minimal core app config files
- launches the local backend
- launches the frontend shell
- opens Studio in your browser
If you want detailed branding/admin setup later, use:
Step 5: Open Studio Create¶
If the browser did not open automatically, go to:
This is the main first-run entrypoint.
Step 6: Start Your First Build¶
In Studio Create:
- choose
Greenfield App - choose your validation strategy
- paste your build request
- start the build
Example prompt:
Build me a trading bot app that lets a user describe a trading strategy,
configure risk controls, backtest the strategy, and monitor live signals in a
clean dashboard.
At this point, the factory_app workflows take over.
The flow is:
ValueEngineDesignDocsAgentGeneratorAppGenerator
You are now using the canonical Mozaiks build path.
What Happens Behind The Scenes¶
Mozaiks does not immediately overwrite your workspace with generated files.
Instead:
- the workspace scaffold gives the host something to run
- the generator workflows create staged artifacts
- those artifacts are reviewed and then promoted explicitly
Generated output is staged under a path like:
That means:
- your scaffold is the working shell
- the generated app is a staged build artifact
- promotion is a separate step
If you were expecting Mozaiks to directly fill app/workflows/ and app/modules/ in place during the build, that is not the intended lifecycle.
The Simplest Mental Model¶
If you are brand new, think about Mozaiks like this:
quickstart- prepares the local workspace and opens Studio
studio --open- advanced way to open the builder directly
factory_app- does the actual build planning and generation
generated/apps/...- holds the staged output
Daily Commands¶
Once your workspace exists, these are the main commands you will use:
Builder quickstart:
Create or configure a workspace with the lower-level setup command:
Open Studio directly:
Inspect workspace status:
Use the advanced detailed onboarding flow:
Troubleshooting¶
pip install mozaiks did not work¶
That is expected until the first public PyPI release is live.
Mozaiks' Studio-first builder flow depends on the full repo checkout, including:
factory_app/web_shell/- the local CLI source
If you ran:
and then:
that does not currently represent the supported setup path unless you are installing from an official published release. Use:
git clone https://github.com/BlocUnited-LLC/mozaiks.git
cd mozaiks
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .
mozaiks --version
If mozaiks is still not recognized, make sure your virtual environment is activated and run the module entrypoint directly:
If you already had an older local install cached, remove it before retrying:
Studio does not open¶
Check:
- backend:
http://localhost:8000/api/health - frontend:
http://localhost:3000
If the frontend is not running, make sure:
- Node.js is installed
web_shelldependencies can install successfully
Mongo connection errors¶
Make sure:
- MongoDB is running locally, or
- your Atlas URI is correct in
MONGO_URI
LLM key errors¶
Make sure you exported the provider key that matches the model/provider you selected during onboarding.
Examples:
OPENAI_API_KEYANTHROPIC_API_KEY
Port already in use¶
Use different ports:
Advanced: Runtime-Only Path¶
If you are not trying to use Studio and only want the runtime/CLI surfaces, you can still use the lower-level path:
But for a first-time user who wants to build apps with the generator, the recommended path is: