---
updatedAt: 2026-09-24T13:23:37.000Z
agentTools:
  projectIndex: https://docs.corelightning.org/llms.txt
---

# Plugin Development

Customise your Core Lightning node by leveraging its powerful modular architecture via plugins.

Plugins are a simple yet powerful way to extend the functionality provided by Core Lightning. They are subprocesses that are started by the main `lightningd` daemon and can interact with `lightningd` in a variety of ways:

* **[Command line option passthrough](https://docs.corelightning.org/docs/a-day-in-the-life-of-a-plugin)** allows plugins to register their own command line options that are exposed through `lightningd` so that only the main process needs to be configured. Option values are not remembered when a plugin is stopped or killed, but can be passed as parameters to rpc command [`plugin start`](https://docs.corelightning.org/reference/plugin).
* **[JSON-RPC command passthrough](https://docs.corelightning.org/docs/json-rpc-passthrough)** adds a way for plugins to add their own commands to the JSON-RPC interface.
* **[Event stream subscriptions](https://docs.corelightning.org/docs/event-notifications)** provide plugins with a push-based notification mechanism about events from the `lightningd`.
* **[Hooks](https://docs.corelightning.org/docs/hooks)** are a primitive that allows plugins to be notified about internal events in `lightningd` and alter its behavior or inject custom behaviors.
* **[Dynamic REST paths](https://docs.corelightning.org/reference/clnrest-register-path)** allows a plugin to register an rpc command with a custom REST path for `clnrest`.