Skip to content

Plugins & Extensibility

Ciaren is plugin-first. The nodes on the canvas, the databases you connect to, the engine a flow runs on and the code it exports are each defined as a versioned provider contract that a plugin can implement. A plugin is a small Python package that depends only on the public plugin API (app.plugin_api), never on Ciaren's internals.

The open core ships a focused set of built-in capabilities. Long-tail connectors, SaaS integrations and organization-specific nodes belong in plugins, so you can add them without forking.

In one sentence

If Ciaren doesn't do something you need, add it as a plugin and ship it as a portable, optionally signed package.

Which page do I need?

I want to…ReadKind of page
Install, approve, disable, or remove a pluginInstalling & Managing PluginsHow-to
Build my first plugin, step by stepBuild Your First PluginTutorial
Understand how a plugin fits together: runtimes, forms, events, manifest, discoveryWriting a PluginGuide
Look up an exact class, method, or fieldPlugin API ReferenceReference
Add a trainable model type or a train nodeML Model PluginsGuide
Add a database, API, or storage connectorConnector PluginsGuide
Package, sign, and share a pluginPackaging & DistributionHow-to
Follow a larger worked example with hyperparameters and code exportBuild an Advanced Plugin (scikit-learn)Tutorial
Use the ciaren-plugin command linePlugin CLI ReferenceReference
Check a manifest fieldPlugin ManifestReference
Decide which plugins to trustPlugin Security & PermissionsExplanation

What you can extend

Each row below is a real interface in app.plugin_api. A single plugin can implement one or several of them.

Extension pointProvider contractWhat a plugin can add
NodesNodeProviderNew canvas nodes that run end-to-end: preview, run, and Python code export. Sidebar forms render from the node's config_schema
ConnectorsConnectorProviderNew database / API / storage sources and sinks, with runtime behavior: test, list tables/objects, and read/write through the SQL & storage nodes. Connection forms render from the connector's metadata + config_schema
ML model typesModelProviderNew trainable model types that appear inside the core Train nodes' model picker and train/log/export through the core ML pipeline
StorageStorageProviderNew object/file storage backends
Execution enginesExecutionProviderNew dataframe engines beyond the built-in polars and pandas
ExportersExporterProviderNew code/artifact export targets (e.g. notebooks)
ValidatorsValidatorProviderNew data-quality / contract checks
AI capabilitiesAIProviderPipeline builders, debuggers, optimizers
AuthenticationAuthProviderNew authentication methods

Plugin train nodes get first-class ML support too: a node can declare typed model output handles, persist fitted models through the host's MLflow-backed ModelStore, and emit model references that the core Predict / Feature Importance nodes consume; see ML Model Plugins.

Flow assistant and plugins

The built-in flow assistant is part of Ciaren core, not a plugin. It never adds or configures plugin nodes or connectors, so build and edit those in the regular editor.

What runs today

Plugins can run nodes, connectors and ML model types end-to-end. The other contracts (extra engines, exporters, validators, AI capabilities, auth methods) are defined extension points, but the core does not call a plugin's implementation of them yet.

The plugin API is versioned. Until it reaches 1.0, a minor bump can change the contract: a plugin with a manifest declares the api_version it targets, and the loader rejects an incompatible one before importing it. Plugins installed with pip (entry points) have no manifest and skip this check. The Catalog & Plugins API shows what the running instance exposes.

How a plugin is discovered

Ciaren finds plugins two ways:

  1. Local directory: point CIAREN_PLUGINS_DIR at a folder of plugins, or use ~/.ciaren/plugins. Needs no install, which suits development.
  2. Installed package: a plugin that declares the ciaren.plugins entry point is discovered once it is pip install-ed.

Fresh installs also include a small bundled Explore catalog with the Hello Plugin, HTTPS Input Connector and MLP Classifier example packages. Bundled catalog entries are not loaded automatically: they are shown as installable examples so users can try the install and approval flow. Set CIAREN_MARKETPLACE_INDEX=none to hide Explore, or point it at your own marketplace JSON.

Plugins page: no plugins installed, permissions warning banner, and the Explore catalog showing installable example plugins with trust tier and license

Once installed and approved, plugins show what they contribute (nodes, ML model types, connectors), with trust and signature badges:

Plugins page with the MLP Classifier example installed: Active status and Trusted signature badges

Plugin details: the MLP Classifier plugin's contributed node and ML model type, license, trust tier, compatibility, and install location

bash
# Develop against a local folder
export CIAREN_PLUGINS_DIR=/path/to/your/plugins
ciaren serve

# Inspect what's loaded
ciaren-plugin list

A plugin from a local directory or the Plugins page is not imported until you approve it, so its code never runs behind your back. The exception is an entry-point package: you installed it with pip on purpose, so it loads without approval. See Plugin Security & Permissions, and Installing & Managing Plugins for the step-by-step lifecycle.

Packaging & signing

Plugins can be packaged as portable .ciarenplugin files and cryptographically signed (Ed25519). Installing with --trusted refuses any package not signed by a key you trust.

bash
# Publisher: generate a key, package, and sign
ciaren-plugin keygen
ciaren-plugin pack ./my-plugin ./my-plugin.ciarenplugin
ciaren-plugin sign ./my-plugin.ciarenplugin \
  --key <private_hex> --key-id acme-2026 --publisher acme

# Consumer: install only trusted, signed packages
ciaren-plugin install ./my-plugin.ciarenplugin --trusted
ciaren-plugin verify  ./my-plugin.ciarenplugin

See Packaging & Distribution for the full publisher workflow.

Complete, runnable examples

Four example plugins live in the repository. Hello, HTTPS Input Connector and MLP Classifier also ship as pre-built packages in examples/plugins/dist/, signed with the ciaren-demo key (they show Untrusted key unless you add that key to your trusted keys), and are bundled into the Explore catalog so a fresh install lists them ready to install. The Validator plugin ships as source only:

  • Hello plugin: the smallest node that runs end-to-end. Start here → Build Your First Plugin.
  • Validator plugin: a practical data-quality check: validates a column against a regex or allowed-value set and adds a boolean pass/fail column. Shows config_schema with column, select, string, and string_list fields; the editor renders the form automatically.
  • HTTPS Input Connector plugin: a read-only connector for HTTPS CSV/JSON documents that demonstrates the connector runtime, network permission, URL safety checks, redirect refusal, timeout, and streamed download limit.
  • MLP Classifier plugin: neural-network classification both ways: a model type inside the core Train Classifier picker, and a standalone train node that persists to MLflow and emits a typed model reference. Walk through it → Build an Advanced Plugin and ML Model Plugins.

Reading plain HTTP APIs needs no plugin at all; that's the built-in REST API connector. Build a connector plugin for sources beyond it.

Asking for a new integration

If you want Ciaren to support a new external system, start by building a plugin. If the Plugin API blocks that work, open an issue for the SDK gap rather than a request to add the system to core. Built something useful? Share it in a Discussion.