← Files Dataiku HeadlessARCHIVED FILE

skills/dataiku-headless/references/plugin-development.md

7.06 KB · Nov 27, 2026 · 19:32 UTC

↓ Download file

---
name: plugin-development
description: Build or update a Dataiku plugin locally, then test, package, and install it.
---

# Plugin Development

Use this guide to build or update a Dataiku plugin. First check whether a built-in
Dataiku feature or an existing [store plugin](./administration/plugins.md#store-discovery)
meets the need. For installation, updates, removal, and code
environment setup, follow [Plugins](./administration/plugins.md).

## Before You Start

Work in a local checkout. Headless can upload the finished package over stdio or
install or update it from a Git repository over either transport. It cannot create a
development plugin or edit its files on the instance.

Read the repository instructions, `plugin.json`, and the code and descriptors for
the components you will change. Check dependencies, packaging commands, and tests.
Preserve IDs, role names, and configuration keys that existing usages depend on;
explain how users should migrate if you need to change them.

For a new plugin, identify its purpose, ID, Dataiku version, and local folder. Choose
a test instance before installation. Start from a template the user supplies or the
[official component tutorials](https://developer.dataiku.com/latest/tutorials/plugins/index.html)
for that Dataiku version.

The plugin code can use documented Dataiku APIs. To change the instance, use
Headless tools; to build project assets, use [Cobuild](./cobuild.md). If the tools
cannot perform a needed step, explain what must be done in the UI rather than
working around the gap with SDK or REST calls.

## Choose The Component

Read the reference for the component you are building.

| Component | Use for | Read next |
| --- | --- | --- |
| Agent tool | An operation called by an agent | [Agent tools](./plugin-development/agent-tools.md) |
| Recipe | A Flow transformation | [Recipes](./plugin-development/recipes.md) |
| Dataset connector | External records with a schema | [Connectors](./plugin-development/connectors.md#dataset-connectors) |
| Filesystem provider | Browsing and streaming external files | [Connectors](./plugin-development/connectors.md#filesystem-providers) |
| Macro | An operation or report a user runs | [Macros](./plugin-development/macros.md) |
| Webapp | A reusable visualization or application | [Webapps](./plugin-development/webapps.md) |
| File format | Reading or writing a file structure | [File formats](./plugin-development/file-formats.md) |
| Prepare processor | A reusable Prepare step | [Prepare processors](./plugin-development/prepare-processors.md) |
| Prediction algorithm | A Visual ML estimator | [Visual ML extensions](./plugin-development/machine-learning.md#prediction-algorithms) |
| Feature preprocessor | Preparing features for training and scoring | [Visual ML extensions](./plugin-development/machine-learning.md#feature-preprocessors) |
| Custom LLM | A model provider in the LLM Mesh | [Custom LLMs](./plugin-development/llms.md) |
| Custom agent | Reusable agent logic | [Custom agents](./plugin-development/agents.md) |
| Guardrail | Checking or modifying LLM inputs and outputs | [Guardrails](./plugin-development/guardrails.md) |
| Structured-agent block | A Structured Visual Agent step | [Structured-agent blocks](./plugin-development/structured-agent-blocks.md) |
| Parameter set | Shared configuration and credentials | [Settings and checks](./plugin-development/settings-checks.md#parameter-sets) |
| Project Standards check | Evaluating project quality | [Settings and checks](./plugin-development/settings-checks.md#project-standards-checks) |

For other types, including scenario steps and triggers, metric probes and checks, exporters,
and sample datasets, consult the target version's
[component catalog](https://doc.dataiku.com/dss/latest/plugins/reference/plugins-components.html)
and the starter code generated by Dataiku.

## Writing The Plugin

- Set the plugin ID, version, and display information in `plugin.json`. Define each
  component's parameters in its descriptor, with clear descriptions of what it does,
  what inputs it needs, and what it returns.
- Keep component entry points short and put shared logic in `python-lib/`, which
  Dataiku adds to the Python path. Where practical, keep that logic independent of
  Dataiku so you can test it locally.
- Keep component settings separate from plugin-wide `plugin_config`. Use configured
  connections or [parameter sets](./plugin-development/settings-checks.md#parameter-sets)
  for credentials. Users enter actual secrets and preset values in the UI.
- Set `mandatory` explicitly and choose defaults that make sense for the component.
  Validate inputs in the code as well as the UI. Write `visibilityCondition` in
  JavaScript using `model` to access parameter values.
- Use named loggers and record only the trace fields you need. Keep credentials,
  whole configuration objects, request headers, and sensitive results out of logs
  and traces. Remove sensitive details from errors shown to users.
- Define a plugin-managed Python environment in `code-env/python/desc.json` and
  `code-env/python/spec/requirements.txt`. Check that its interpreter and packages
  work with the intended Dataiku version and component. Install dependencies for
  prediction algorithms and feature preprocessors in the code environment used to
  train and score the model. A root
  `requirements.json` only describes dependencies; it does not install them.

See [parameters](https://doc.dataiku.com/dss/latest/plugins/reference/params.html)
and [dependencies and shared libraries](https://doc.dataiku.com/dss/latest/plugins/reference/other.html).

## Test And Package

1. Run the repository's documented tests, using fakes for external services and
   Dataiku APIs. Check invalid inputs, empty results, failures, and whether outputs
   serialize correctly. Each component reference lists any additional checks.
2. Read the packaging command before running it. For example, `git archive HEAD`
   leaves out uncommitted changes. Check that the package contains your intended
   changes and follow the repository's release process.
3. Inspect the files in the ZIP. Include the code, resources, and built frontend
   assets the plugin needs. Leave out credentials, `.env`, local configuration,
   virtual environments, caches, and unrelated test data. Prefer a checked ZIP:
   directory uploads only skip `.git` and `__pycache__`.

## Deploy And Verify

Follow [Plugins](./administration/plugins.md) to install or update the package and
prepare its environment on the test instance. If the changes are already in a
remote repository, follow that guide's Git workflow to deploy the chosen revision.
The installed package is not an
editable development plugin. Use the UI for any required reload or restart.

Set up the test project through Cobuild, then run existing recipes or scenarios
with the execution tools. Use the UI where needed. Test the installed component and
inspect its results, following its reference. Keep run IDs so you can follow up
through [Jobs](./jobs.md). Report the package revision, test instance, results, and
anything still untested or requiring UI setup. Installation alone does not show
that the component works.

SHA-256: 6eb2f214ffaec11b515e98e744f4366fa7d332b0f8a68112865ccacffedea723