Built-in plugins
Some of Kaneo’s own features are plugins built on the same contract as everyone else’s. They ship inside the Kaneo image and are on in every workspace by default.
Workspace admins can turn a built-in plugin off in Settings → Workspace → Plugins. To remove one from the whole instance, turn it off in your Kaneo config:
Add plugins
1. Create the project
Plugins live in a small project next to your deployment:With kaneo plugin add
The Kaneo CLI adds plugins for you, and Kaneo’s image ships it, so you need nothing but Docker. Create the folder and replace your-plugin-package with a published package name:
kaneo plugin add picks plugin versions for that Kaneo release. It:
- Asks npm for the plugin’s releases and picks the newest stable, non-deprecated one whose
engines.kaneorange includes your Kaneo version. It stops if no release declares a range or none fits, and shows the newest release’s range. - Checks the package against the plugin catalog. For a package that is not listed, or when the catalog cannot be reached, it warns and asks before going on. Without a terminal, for example without
docker run -it, it needs--yesto go on. - Creates
package.jsonif the folder has none, then runsnpm install --save-exact --ignore-scriptsfor the plugin, plus@kaneo/configfor your Kaneo version the first time. Plugins and their dependencies never run install scripts. - Adds the import and plugin to your Kaneo config. If there is no config, it creates
kaneo.config.mjs. If it cannot change your config safely, it leaves it as is and prints the lines to add.
--user makes the new files yours instead of the container user’s. npm reads .npmrc in the folder, so private registries and tokens work. Running kaneo plugin add again for an installed plugin moves it to the newest release that supports your Kaneo. Without a terminal, the command prints its result as JSON; add -it to docker run for the styled output and the prompt.
Run kaneo plugin add --help for the options. The command works in the folder mounted at /kaneo; pass --project <dir> or set KANEO_PROJECT_DIR to use another one.
You can also install the CLI on your machine and run kaneo plugin add in the folder. It needs Node.js with npm for the install. Outside Kaneo’s image, the CLI cannot tell which Kaneo you run, so pass it the first time:
@kaneo/config installed in the folder.
With npm
You can also set the project up with npm on your machine:package.json:
@kaneo/config is released with Kaneo under the same version, so use the version of the image you deploy:
package-lock.json, which pins the exact versions. Install plugins as regular dependencies, not with -D, so the image install step below keeps them.
2. Declare the plugins
kaneo plugin add creates kaneo.config.mjs. Kaneo also accepts kaneo.config.ts when your Node.js version supports TypeScript. Below is a configuration for the repository’s Task Progress example:
reports({ apiToken: process.env.REPORTS_API_TOKEN }), and set REPORTS_API_TOKEN where you set Kaneo’s other variables.
There is no build step. Kaneo runs kaneo.config.ts with Node’s built-in TypeScript support, which removes type annotations without compiling. Stick to plain TypeScript: enums and namespaces are not supported.
3. Check the project
kaneo plugin check runs the startup checks against the folder without starting Kaneo or connecting to the database:
docker run -it, it prints the ID and version of each plugin that passes, including the built-in ones:
status, and the stage and message of each failure. If your config reads environment variables, pass them to the container too, for example with --env-file .env. Use --config <path> to check a config file outside the project folder; the command does not read KANEO_CONFIG.
The same works with the CLI installed on your machine: run kaneo plugin check in the folder. Built-in plugins are only checked inside a Kaneo installation such as the image, and outside one the CLI needs --kaneo-version or @kaneo/config installed in the folder.
4. Deploy
Docker Compose
Putmy-kaneo beside compose.yml, including its node_modules folder, and mount it read-only at /kaneo on the kaneo service:
docker compose restart kaneo.
Kubernetes, Coolify, and Railway
Build a thin image on top of Kaneo’s. Add thisDockerfile to my-kaneo, replacing <version> with the Kaneo release you run:
.dockerignore so your local node_modules stays out of the image:
--ignore-scripts keeps packages from running install scripts. The --chown flag matters because Kaneo’s image runs as appuser, which must be able to write /kaneo/node_modules.
Use the resulting image wherever you used ghcr.io/usekaneo/kaneo. With the Helm chart, set kaneo.image.repository and kaneo.image.tag. On Coolify or Railway, deploy it from a repository that contains the my-kaneo files. Rebuild and redeploy after each change to the project.
Environment variables
DISABLE_PLUGINS=true is also the quickest way to get Kaneo running again while you fix a plugin that stops the boot.
What Kaneo checks at startup
Every plugin goes through these stages, in order:
A failure stops the boot, the same way a broken Compose file would. The log names the plugin, the stage, and the fix:
kaneo plugin check runs the same stages up to import, then checks that no two plugins share an ID. It never runs a plugin’s setup, so a problem that only shows up in setup still appears at startup.
Once Kaneo is running, errors inside a plugin are isolated. An exception in a plugin’s event handler or route is logged with the plugin’s ID and does not take Kaneo down. In the web app, a plugin that fails to render only breaks its own view or panel.
Turn a plugin on in a workspace
Plugins you add are off in every workspace until someone turns them on. Built-in plugins start on.- Open Settings → Workspace → Plugins. You need permission to manage workspace settings, which the built-in Owner and Admin roles include.
- Turn on the plugin.
- If the plugin has settings, fill in the form and save.
kaneo plugin list in the CLI shows the plugins installed on your instance and whether each one is on in your workspace.
Settings belong to one workspace, unlike the options in kaneo.config.ts, which apply to the whole instance. Secret fields are write-only: after you save one, Kaneo shows that it is set but never shows the value again. Enter a new value to replace it.
When a plugin is off in a workspace, its views, panels, pages, and commands disappear there, and its guarded routes reject requests for that workspace. Activity events stop, but a project move can still reach the plugin if it has retained storage in the source workspace. Turning it back on restores everything, including its data.
Upgrade Kaneo
Each plugin declares the Kaneo versions it supports. To see the range for a plugin’s newest release:- Prepare as described in Upgrade Kaneo, including a backup.
-
Change the image tag and move
@kaneo/configto the same version: runnpm i @kaneo/config@<new version>inmy-kaneo. -
Check the project with the new image, before you deploy it:
-
For each plugin that fails at the compatibility stage, install a release that supports the new version with the new image, then check again:
- Deploy as usual.
kaneo.config.ts, or set DISABLE_PLUGINS=true until the plugin catches up. Without the check, Kaneo stops at the compatibility stage with a message like the one above.
Trust
Plugins run inside Kaneo with full access, like any npm dependency. A plugin can read Kaneo’s environment variables, including its secrets, and make network requests. Workspace boundaries protect plugin routes and data from other users, not your instance from the plugin.- Only add plugins you trust. Check who publishes a package and whether it has npm provenance.
- Commit
package-lock.json. It pins every version, and npm checks each package against its integrity hash on install. - Review changes to the lockfile like code changes.
Data
Plugin data is stored in Kaneo’s PostgreSQL database, so your regular backups include it.- Turning a plugin off in a workspace keeps its data.
- Removing a plugin from the Kaneo config keeps its data. Adding the same plugin back restores it.
- Deleting a workspace deletes the data plugins stored for it.
instance:settings permission (admins have it), and run kaneo plugin purge with the plugin’s ID:
official: { gantt: false } instead. It also refuses while DISABLE_PLUGINS=true, because Kaneo cannot tell then which plugins are installed. Purging needs the instance:settings permission and a login, not an API key. Each purge is recorded in the audit log as Purged plugin data, with the number of rows deleted. The command asks you to confirm; without a terminal, pass --yes. Take a backup first, because a purge cannot be undone.
Build a plugin
Writing plugins
Package a plugin with a server entry, a web entry, and settings.
Plugin reference
Events, context members, extension points, hooks, and components.