Skip to content

Installation

You get: Ciaren running at http://localhost:8055. The PyPI package is the shortest route.

Ciaren has a backend (FastAPI, the execution engine, and the scheduler) and a frontend (the React editor). The PyPI wheel and the Docker image bundle both and serve them from one port. You can also run the backend alone and drive it through the REST API.

Requirements

Install methodYou need
PyPI package (recommended)Python 3.12+ (download)
DockerDocker with Compose, and Git to clone the repository
GitHub CodespacesA GitHub account. Nothing is installed locally
From sourcePython 3.12+, Node.js (see Install from source), and Git

A database is optional: SQLite is the zero-setup default, and PostgreSQL or MySQL work through an async driver. The editor needs a current browser: Chrome 111+, Firefox 128+, or Safari 16.4+.

bash
python -m pip install --upgrade pip
python -m pip install ciaren
ciaren serve

Open http://localhost:8055.

The wheel bundles the web UI, so ciaren serve serves the editor, the API, and the background scheduler from one process. The first start creates the SQLite database and seeds a Demo project with sample datasets and example flows.

The one-process layout: browser, ciaren serve, database, and data directory

To pin a version for repeatable tutorials or CI, use python -m pip install "ciaren==0.5.0".

Optional extras

The base install includes the core app, scikit-learn models, MLflow tracking, pandas, and polars. Add an extra only for a specific driver or model family:

bash
python -m pip install "ciaren[postgres]"   # PostgreSQL as Ciaren's own database
python -m pip install "ciaren[s3]"         # AWS S3 storage connections
python -m pip install "ciaren[ml]"         # adds XGBoost and LightGBM model choices

Connections lists the connector extras, and the ML Quick Start covers ml.

Alternative: Docker

Docker builds the backend and the editor, serves them at one URL, and keeps app data in a Docker volume. You need no local Python or Node.js.

bash
git clone https://github.com/ciaren-labs/Ciaren.git
cd Ciaren
docker compose up --build

Open http://localhost:8055. The first start creates the database and seeds the same Demo project. To add connector or ML packages, pass EXTRAS at build time, for example EXTRAS=ml docker compose up --build. The Docker guide covers extras, persistence, and production settings.

No install: GitHub Codespaces

Open codespaces.new/ciaren-labs/Ciaren (or the Open in GitHub Codespaces badge in the README) and create the codespace. The setup in .devcontainer/ installs the released Ciaren package from PyPI (currently 0.5.0), starts ciaren serve on port 8055 in the codespace terminal, and opens the editor in a new tab with the Demo project loaded. The first start takes about two minutes. On a development branch whose version is not on PyPI yet, the setup builds the editor from the checkout instead, which needs Node.js.

  • If your browser blocks the new tab, click the link in the terminal, or open the Ports panel and click the globe icon next to Ciaren editor.
  • When VS Code asks whether you trust the authors of the folder, choose Trust. VS Code runs terminal commands only in a trusted folder, and the server starts in a terminal.
  • It uses your GitHub account's free monthly Codespaces hours. Stop or delete the codespace when you finish.
  • The forwarded port stays private, so only your GitHub account can open it. The server trusts exactly that forwarded URL for changes (through CIAREN_CORS_ORIGINS) and refuses cross-site requests from any other origin.
  • Data and the server log live in /workspaces/.ciaren/data and are deleted with the codespace. To restart a stopped server, run bash .devcontainer/ciaren.sh serve in the terminal.

Run from source

To contribute, debug, or run the backend and frontend in development mode, follow Install from source.

Use the AI flow assistant

The assistant needs release 0.4.0 or later and a provider API key (OpenAI, Anthropic, DeepSeek, OpenCode Console, Google Gemini, or AWS Bedrock). Building by hand needs neither.

  • PyPI. python -m pip install ciaren includes the keychain support that lets you save a key on the Connections page. The steps are in the AI quick start.
  • Docker. docker compose up --build includes the assistant. A container has no OS keychain, so supply the key through a server secret. See Deployment and credentials.
  • Keys. Add one under Connections → Assistant API keys. Ciaren stores it in the OS keychain, and the database keeps only its name, provider, and model.

Configure

Ciaren runs with no configuration. To change a setting, run ciaren init to write a commented starter .env, or set CIAREN_* environment variables. Keep .env out of version control. The repository's .gitignore already lists it.

bash
ciaren init        # writes a commented .env in the current directory
ciaren info        # prints the resolved settings (the database password is redacted)
ciaren check       # validates the data directory, driver, database, and engines

Verify the install

bash
curl http://localhost:8055/health

The response is {"status":"ok"}. ciaren check gives a fuller diagnosis. Open http://localhost:8055/docs for the interactive API docs.

Troubleshooting

SymptomFix
Port 8055 is already in useciaren serve --port 8001
Database connection failedUse an async driver in CIAREN_DATABASE_URL, make sure the database is running, and install the driver. ciaren check reports all three
ModuleNotFoundErrorReinstall in a clean virtual environment with python -m pip install ciaren
CORS errors from another originAdd the origin to CIAREN_CORS_ORIGINS (a JSON list)

The Troubleshooting guide has the full list. For help, open a GitHub issue or ask in Discussions.

Next step

Once Ciaren runs, build your first flow by hand with the manual quick start, or have the assistant draft one from a prompt with the AI quick start.