Skip to content

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

bash
git clone https://github.com/ciaren-labs/Ciaren.git
cd Ciaren

2. Start the backend

bash
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 serve

The 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:

bash
cd backend
uv sync               # install dependencies
uv run ciaren serve   # run the server
uv sync --all-groups  # also install test, lint, and type-check tools

ciaren 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:

bash
cd frontend
npm install
npm run dev

The editor runs on http://localhost:5173 and proxies /api to the backend on port 8055. Open http://localhost:5173.

Projects page, with the Demo project ready to explore

To change the ports, set VITE_PORT for the dev server and VITE_API_TARGET for the backend it proxies to:

bash
VITE_PORT=3000 VITE_API_TARGET=http://localhost:8001 npm run dev

Other frontend scripts:

CommandWhat it does
npm run buildType-check and build for production into frontend/dist
npm run previewPreview the production build
npm run testRun 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:

bash
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.