Installing Backend Modules
A backend module extends the modAI server. Depending on what it does, it can expose new REST endpoints, act as an internal service that other modules depend on, connect to an external system, or replace a built-in component entirely. The steps below walk through cloning a module and wiring it into the configuration.
Backend modules are compiled into the Docker image at build time. Installing a module always requires rebuilding the backend image. Runtime installation without a rebuild is not supported.
Step 1: Clone the Module Repository
Clone the module repository into the backend modules directory using the external- prefix:
Example:
The result should look like this:
Step 2: Update config.yaml
Register the module under modules. The module's documentation will provide the exact config entry to paste in.
If the module depends on another module (e.g. session), add module_dependencies. Required dependencies are listed in the module's documentation.
Step 3: Rebuild and Redeploy
Step 4: Verify
Check the startup logs for the module's name. A healthy startup lists all loaded modules.
If the module does not appear, check:
- The repository was cloned under the correct
external-prefix. - The class name and
module_dependenciesexactly match the module's documentation. - The Docker image was rebuilt after cloning — not before.
Updating a Module
Removing a Module
- Delete the cloned directory:
- Remove its entry from
config.yaml. - Rebuild and redeploy.