Skip to main content

What The CLI Covers

kaleido is the command-line interface for two distinct workflows:
  • Local RGB Lightning Node operations: create Docker-backed node environments, initialize and unlock wallets, manage BTC, RGB assets, channels, peers, and Lightning payments.
  • KaleidoSwap market and swap flows: inspect market data, request quotes, create maker swap orders, run atomic swaps, and drive low-level local node swap steps.
The same binary supports both interactive terminal use and scripted automation.

Why Use It

Guided Setup

Start in market-only mode or provision a local node environment from one setup flow.

Named Environments

Keep multiple local node stacks isolated and switch the active node with one command.

Wallet And RGB Ops

Work with BTC, RGB assets, invoices, transfers, backups, and Lightning payments.

Trading And Swaps

Query pairs and quotes, place maker orders, and run atomic or local swap flows.

Global Flags

All command groups inherit the same root flags:
FlagPurpose
--jsonReturn raw JSON instead of rich terminal output
--agentDisable interactive prompts for scripted or agent-driven use
--node-urlOverride the configured RGB Lightning Node URL for one command
--api-urlOverride the configured KaleidoSwap API URL for one command
--install-completionInstall shell completion for the current shell
--show-completionPrint shell completion for manual setup
Example:
kaleido --json market pairs
kaleido --node-url http://localhost:3001 wallet balance
kaleido --agent channel open 03ab...@host:9735 --capacity 100000

Environment Variables

The CLI also reads these environment variables:
VariableUse
KALEIDO_NODE_URLDefault RLN node URL
KALEIDO_API_URLDefault KaleidoSwap API URL
Command-line flags take precedence over environment variables and stored config.

Command Groups

GroupPurpose
setupFirst-run setup for market-only or local-node use
nodeEnvironment lifecycle, wallet initialization, unlock, and taker operations
walletBTC balance, addresses, sends, UTXOs, fees, backup, and restore
assetRGB assets, issuance, invoices, sends, transfer history, and sync
channelLightning channels plus LSP-backed channel ordering
peerPeer discovery and connectivity
paymentLightning invoices, sends, keysend, decode, and status
marketAssets, pairs, routes, quotes, maker info, and analytics
swapMaker order flow, maker atomic flow, and local node swap flow
configStored CLI configuration in ~/.kaleido/config.json

Output Modes

By default, kaleido renders human-readable tables and summaries. For pipelines and automation, prefer --json:
kaleido --json market quote BTC/USDT --from-amount 100000
Use --agent when the command must fail instead of prompting for missing input.

Next Steps