📘

Used for applications that want to connect to a CLN node over the lightning network in a secure manner.

Commando is a direct-to-node plugin that ships natively with Core Lightning. It lets you set runes to create fine-grained access controls to a CLN node's RPC , and provides access to those same RPCs via Lightning-native network connections.

The commando plugin adds some cool RPC methods like: commando, commando-rune, commando-blacklist and commando-listrunes.

commando RPC allows you to send a directly connected peer an RPC request, who, in turn, will run and send the result to you. This uses the secure connections that Lightning nodes establish with each other on connect. As arbitrary RPC executions by any connected node can be dangerous, generally, the peer will only allow you to execute the command if you've also provided a rune.

For more details on using runes, read through the docs for commando.

Check out this video of William Casarin (@jb55) walking through how to create runes and connect to a Lightning node via lnsocket.

📘

Pro-tip

  • lnmessage allows you to talk to Core Lightning nodes from the browser via a Websocket connection and controls it using commando.

  • lnsocket allows you to build a web or mobile app that talks directly to a CLN node over commando with runes. Check out LNLink - a mobile app that allows you to control a Core Lightning node over the lightning network itself!


Core Lightning (previously c-lightning) is a lightweight, highly customizable and standard compliant implementation of the Lightning Network protocol.

© 2023 Core Lightning
All rights reserved.

Discussion Forum

The official Core Lightning forum is hosted at discuss.corelightning.org

BuildonL2 Community

The official BuildOnL2 community lives at community.corelightning.org. Join us and build the future of bitcoin on lightning.

Mailing List

For general discussions about CLN implementation, use [email protected]. For the Lightning Network, use [email protected]

Telegram

Community-driven telegram group where most of the node operators hang out. Go to https://t.me/lightningd to join.

Discord

Community-driven discord server where the devs flock together. Go to https://discord.gg/w27fMFESMN to join.

Internet Relay Chat

Don't hesitate to reach out to us on IRC at #lightning-dev @ libera.chat, #c-lightning @ libera.chat.