Install custom Node-RED nodes

Currently im trying to use custom nodes in my node-red agents inside OpenCore.

I’ve tried installing it the custom nodes in a local copy of the “openiap/noderedagent:latest” image, which didnt work because i can’t find the package.json where i can add the dependency.

Then i also tried to upload a .tgz via the “upload module tgz file” button in the palette, but the nodes disappear after a restart of the container.

I found some posts here from 2 years ago, which say this wasn’t possible back then.
Is there now a way to achieve this (except publishing the nodes to the node red community)?

Yes.
Clone GitHub - openiap/noderedagent.
Then publish it as a package to opencore (either add a package using the web interface or use the VS Code extension https://docs.openiap.io/docs/flow/Agent-Getting-Started.htm).

Then run the package on a normal agent, not the one with Node-RED preloaded.