Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

lightning-security-module

Skill by jiayaoqijia

Sets up an lnd remote signer container that holds private keys apart from the AI agent. It exports a credentials bundle so a watch-only litd node can connect. Intended for users who want to firewall key material from AI agents.

  • Score 59
  • 81 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install lightning-security-module

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jiayaoqijia/cryptoskill /tmp/cryptoskill && mkdir -p ~/.claude/skills && cp -r /tmp/cryptoskill/skills/chains/lightning-security ~/.claude/skills/lightning-security-module

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install lightning-security-module in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets up a remote signer for lnd, the Lightning Network node software. The signer runs in a container on a separate, secured machine and holds the seed and private keys. It never routes payments or opens channels. It only signs when a watch-only litd node asks it to.

The setup scripts pull the lnd signer image, start the container, create the signer wallet and export a credentials bundle. The bundle holds account xpubs, a TLS certificate and an admin macaroon. It can be copied to the agent machine as a base64 string. The source says a compromised agent machine cannot sign transactions or extract keys. Docker is the default, with a native mode available. The skill is intended for users who want to keep private key material away from AI agents.

Written from the project's SKILL.md and checked against it.

What it can do

  • Signer container setupPulls the lnd signer image and starts the signer container, with a source build as fallback.
  • Signer wallet and credentialsCreates the signer wallet and exports the credentials bundle for a watch-only node.
  • Credentials bundle exportPackages accounts JSON, TLS certificate and admin macaroon, also as a base64 tar.gz.
  • Start and stop signerStarts and stops the signer, with an option to remove volumes on stop.
  • Re-export credentialsRe-exports credentials from a running signer after TLS certificates or macaroons change.
  • Native modeSets up, starts and stops the signer without Docker.
  • Signing-only macaroonUses the macaroon-bakery skill to bake a signer-only macaroon for production.

What you need

  • Docker, for the default container setup
  • A separate, secured machine for the signer
  • Network access to Docker Hub to pull the lnd image
  • A watch-only litd node on the agent machine

Try asking

  • Set up a lnd remote signer container on this machine
  • Export the signer credentials bundle for my watch-only node
  • Stop the signer container and remove its volumes

Good to know

  • The signer does not route payments or open channels.
  • The default admin macaroon is broad and should be scoped down for production.
  • The bundle is exported in plain files, so keep its transfer secure.
  • The source build is a fallback. Container setup is recommended.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/chains/lightning-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to lightning-security-module

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

lightning-security-module: common questions

Can the agent machine spend funds if it is compromised?

The source says a compromised agent machine cannot sign transactions or extract private keys. An attacker with agent access can see balances and channel state but cannot spend.

What does the watch-only node get from the signer?

It gets the account xpubs, which are public keys only, plus the TLS certificate and admin macaroon for authenticated gRPC.

What should I change before production use?

The source recommends replacing the admin macaroon with a signer-only macaroon, restricting RPC access by firewall, and running the signer on dedicated hardware or a hardened VM.

How do I install lightning-security-module?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is lightning-security-module free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is lightning-security-module safe to use?

It scores 59 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to lightning-security-module?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

lightning-security-module Install

Add to stack

Loading.