# 使用 Homebrew 安装 core-lightning

查看 core-lightning 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:core-lightning
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install core-lightning
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:core-lightning
- **软件包管理器:** Homebrew
- **版本:** 26.06.6
- **来源摘要:** Lightning Network implementation focusing on spec compliance and performance
- **主页:** <https://github.com/ElementsProject/lightning>
- **仓库:** <https://github.com/ElementsProject/lightning>
- **最后更新:** 2026-07-27T15:30:01+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lightning-cli (别名)
- lightning-hsmtool (别名)
- lightningd (别名)
- reckless (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 26.06.6
## 项目历史与用法

Core Lightning is a C implementation of the Lightning Network protocol that focuses on specification compliance, performance, modularity, and node-operator control. It was formerly known as c-lightning and remains one of the main Lightning node implementations used by technically inclined Bitcoin operators.

### 项目历史

The ElementsProject/lightning repository was created in 2015, during the early implementation period for the Lightning Network. The official README describes Core Lightning, previously c-lightning, as a lightweight, highly customizable, standard-compliant Lightning Network implementation.

The project reached production use on Bitcoin mainnet in early 2018 with the launch of Blockstream Store. Its documentation later standardized on the Core Lightning and CLN names while keeping the same implementation lineage.

### 采用历史

Core Lightning adoption has been strongest among node operators, protocol developers, and businesses that want a scriptable daemon, JSON-RPC interface, plugin system, and close tracking of Lightning Network specifications. Its support for plugins and multiple API surfaces makes it especially common in custom node infrastructure.

### 使用方式

A normal installation runs lightningd alongside a synchronized bitcoind node, then controls it with lightning-cli, JSON-RPC, plugins, or newer API surfaces. Configuration is conventionally stored under ~/.lightning, with network-specific config directories, and the hsm_secret file is the critical wallet-secret material.

### 为什么软件包爱好者会关心

For package maintainers, Core Lightning is more than a CLI: it ships a daemon, client tools, helper tools, plugins, manpage-style docs, and sensitive runtime state expectations. Packaging has to respect platform support, Bitcoin Core integration, database choices, and key material locations.

### 时间线

- 2015: ElementsProject/lightning repository created.
- 2018: c-lightning/Core Lightning in production use on Bitcoin mainnet with Blockstream Store.
- 2020s: Documentation and README use the Core Lightning and CLN names for the former c-lightning project.
- 2026: v26.06.x releases show continued active upstream maintenance.

### Related projects

- Core Lightning is related to Bitcoin Core, the Lightning Network specifications, other Lightning implementations such as LND and Eclair, and CLN's plugin and RPC ecosystem.

### 来源

- <https://github.com/ElementsProject/lightning>
- <https://github.com/ElementsProject/lightning#readme>
- <https://github.com/ElementsProject/lightning/releases>
- <https://docs.corelightning.org/docs/home>
- <https://docs.corelightning.org/docs/configuring-your-node>
- <https://docs.corelightning.org/docs/securing-keys>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.lightning/config, ~/.lightning/bitcoin/config

## Credential files

- Unix: $LIGHTNINGDIR/hsm_secret

## Combined YAML source

View the package source record on GitHub. [combined/core-lightning.yml](https://github.com/mxcl/pkgdb/blob/main/combined/core-lightning.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
