Install from Source
Use a source checkout when you want to contribute, debug, or run the backend and editor in development mode. For everyday use, the PyPI package or Docker is simpler.
You need Python 3.12+, Git, and Node.js for the frontend (22.22.2 or later in the 22.x line, 24.15.0 or later in 24.x, or 26+).
1. Clone the repository
git clone https://github.com/ciaren-labs/Ciaren.git
cd Ciaren2. Start the backend
cd backend
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows (PowerShell)
# Install Ciaren from the checkout (this adds the `ciaren` command)
pip install -e .
# Run the API and the background scheduler in one process
ciaren serveThe backend runs on http://localhost:8055. Open http://localhost:8055/docs for
the interactive API docs.
On a new database, Ciaren creates the schema on first start. If you are upgrading
an existing database, run ciaren db upgrade first. The default start also seeds
the Demo project. Use ciaren serve --no-demo for an empty workspace.
With uv, the same steps are:
cd backend
uv sync # install dependencies
uv run ciaren serve # run the server
uv sync --all-groups # also install test, lint, and type-check toolsciaren serve boots the same app.main:app ASGI app that
uvicorn app.main:app --reload runs. It adds the scheduler, the startup banner,
and flags such as --port, --reload, --db-url, and --engine. See the
CLI reference.
Database drivers are optional
SQL Input and SQL Output nodes need a connector extra, for example
pip install -e ".[mysql]", or pip install -e ".[all]" for all of them. The
extras are separate from the async driver for Ciaren's own database. See
Connections and
Database and data directory.
3. Start the frontend
In a second terminal:
cd frontend
npm install
npm run devThe editor runs on http://localhost:5173 and proxies /api to the backend on
port 8055. Open http://localhost:5173.

To change the ports, set VITE_PORT for the dev server and VITE_API_TARGET for
the backend it proxies to:
VITE_PORT=3000 VITE_API_TARGET=http://localhost:8001 npm run devOther frontend scripts:
| Command | What it does |
|---|---|
npm run build | Type-check and build for production into frontend/dist |
npm run preview | Preview the production build |
npm run test | Run the Vitest unit tests |
Serve the editor from one URL
Build the frontend once and ciaren serve serves the editor too, so the whole app
lives at http://localhost:8055:
cd frontend && npm run build # produces frontend/dist
cd ../backend && ciaren serve # banner: "Open the app: http://localhost:8055"ciaren serve finds frontend/dist on its own. To use a build somewhere else,
set CIAREN_FRONTEND_DIST.
Machine learning
The ML nodes (Train, Predict, Evaluate) are part of the base install. Only the
XGBoost and LightGBM model types need an extra: pip install -e ".[ml]". If the
Machine Learning palette section is missing, run ciaren check (it reports
ml: ok) and confirm the frontend you are viewing is current. See the
ML Quick Start.
Next step
Continue with the manual quick start.