---
title: "Balance of Satoshis (BOS) — definition | Nuri Glossary"
description: "A command-line toolkit for running a Lightning node: rebalancing, accounting, channel operations."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/balance-of-satoshis"
---

# Balance of Satoshis (BOS)

A command-line toolkit for running a Lightning node: rebalancing, accounting, channel operations.

## Basically

Balance of Satoshis is a tool for people who run Lightning nodes with LND. You use typed commands to balance channels, track payments and manage fees.

## Key Takeaways

- Balance of Satoshis (BOS) is an open-source command-line tool for managing LND Lightning nodes. Its commands cover channel rebalancing, accounting, fee management and peer analysis.
- Its most popular feature is circular rebalancing. This routes a self-payment from an outbound-heavy channel to an inbound-heavy one, restoring optimal channel balance for routing.
- BOS is a CLI-only tool for power users and routing node operators. It complements web-based alternatives like ThunderHub and Ride The Lightning (RTL), which offer graphical interfaces.

## What Is Balance of Satoshis?

Balance of Satoshis, commonly called "bos", is a free, open-source command-line toolkit for operating Lightning Network nodes running LND. Alex Bosworth, a developer at Lightning Labs, created and maintains it. BOS provides commands that simplify the day-to-day work of running a routing node: rebalancing channels, analysing forwarding revenue, adjusting fee policies, and generating accounting reports.
Running a Lightning routing node involves constant operational work. Channels drift out of balance as payments flow through them, fee policies need adjustment to stay competitive, and operators need visibility into which channels are profitable. BOS addresses these challenges with scriptable, composable CLI commands that you can run manually or automate through cron jobs and Telegram bot integrations.
BOS is distributed as an npm package and supports only LND. It does not work with Core Lightning or Eclair implementations.

## How It Works

BOS connects to an LND node through its gRPC API using macaroon-based authentication. Once connected, it exposes dozens of commands that interact with the node's channels, payments, invoices, and on-chain wallet. Every command runs in the terminal and outputs structured text that you can pipe to other tools or parse with scripts.

## Installation

BOS requires Node.js and npm. You can install it with a single command or use npx to try commands without a permanent installation.
The bos command becomes available after installation. Running bos help lists all available commands, and bos help <command> shows usage details for any specific command.

## Core Command Categories

BOS commands fall into several operational categories. They cover channel rebalancing, accounting, fee management and peer analysis.

## Channel Rebalancing

The most widely used BOS feature is bos rebalance, which performs circular rebalancing. It routes a payment from one of your own channels back to another of your own channels, shifting liquidity without involving a counterparty. The goal is to keep channels balanced so your node can route payments in both directions.
The --max-fee-rate flag caps the cost of rebalancing in parts per million (PPM), preventing you from overpaying for liquidity shifts. BOS also supports formula-based parameter expressions that can reference channel capacity and fee rates, along with an --avoid flag to exclude specific nodes or channels from the route.

## Accounting and Reporting

The bos accounting command generates a formatted transaction ledger that categorises on-chain and off-chain activity. It supports fiat conversion using exchange rate data from CoinDesk or CoinGecko, making it useful for tax preparation.
You can export the output to CSV for import into accounting software. Routing node operators receive structured records of their forwarding income and on-chain costs.

## Forwarding Analysis

The bos forwards command summarises which peers generate the most forwarding revenue. You can use it to identify your most valuable channel partners and decide where to allocate additional liquidity. Combined with bos graph, which looks up a node's channels and fee rates by public key, it helps you evaluate potential peers before opening channels.

## Channel Opens and Rules

BOS supports batched channel opens, combining multiple channel openings into a single on-chain transaction to reduce fees. The bos open-balanced-channel command coordinates with a peer to open a channel where both sides contribute funds, resulting in immediate bidirectional capacity. The bos inbound-channel-rules command lets you set automatic policies for accepting or rejecting incoming channel requests.

## Telegram Integration

BOS includes a Telegram bot integration that lets you monitor your node remotely. The bot can send notifications about channel events, forward summaries, and balance changes, and you can execute certain commands directly through Telegram messages.

## Why It Matters

Running a profitable routing node is operationally demanding because channels constantly shift out of balance as payments flow through them in one direction. Without rebalancing, a node quickly becomes unable to route payments and stops earning routing fees. BOS gives you tools to maintain healthy channel balances and optimise fee structures.
The tool's CLI-first design is valuable for automation because you can script rebalancing routines, schedule accounting exports, and build custom monitoring pipelines. GUI-based alternatives make such programmability difficult to achieve. BOS remains a core part of the operational toolkit for node operators who manage channels across the Lightning Network and need precise control.
The Lightning Channel Management Guide covers channel management strategies in more detail. Lightning Node Profitability and Routing Analysis covers routing economics.

## Comparison With Alternatives

BOS is one of several tools available to Lightning node operators. The right choice depends on whether you prefer a CLI workflow or a graphical interface, and which Lightning implementation you run.
ThunderHub provides a polished web interface with visual channel management, fee dashboards, and two-factor authentication. It supports newer LND features like Taproot Assets. RTL is the most implementation-agnostic option, supporting LND, Core Lightning, and Eclair, making it the default choice for operators running non-LND nodes.
Many experienced operators use BOS alongside a GUI tool. They use BOS for scripted automation and rebalancing, and ThunderHub or RTL for visual monitoring and ad-hoc management. The tools are complementary rather than mutually exclusive.
Other specialised tools in the same ecosystem include Autoloop and charge-lnd. Autoloop automates Loop operations, while charge-lnd automates fee policy management.

## LND Lock-In

BOS only works with LND. Operators running Core Lightning or Eclair cannot use it. BOS can therefore affect implementation choice: operators who rely heavily on BOS workflows are effectively tied to LND.

## Rebalancing Costs

Circular rebalancing is not free because each rebalance pays routing fees to the intermediate nodes along the path. Poorly configured rebalancing, including high max fee rates, unnecessary frequency, or rebalancing unprofitable channels, can cost more in fees than the routing revenue those channels generate. You should track your rebalancing costs against forwarding income to ensure net profitability.

## CLI Complexity

BOS is a power-user tool with a learning curve. Commands have many flags and options, and formula-based parameter expressions add flexibility at the cost of simplicity. New node operators may find GUI alternatives more approachable for initial node management before graduating to BOS for advanced automation.

## Single Maintainer Risk

BOS is open source, but it is primarily maintained by a single developer. The project depends on continued maintenance to stay compatible with new LND releases. You should be aware of this dependency and monitor the GitHub repository for activity and compatibility updates.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
