Operate CKB Lightning payments through fiber-pay CLI. Use when tasks involve node lifecycle, channel management, invoice/payment flows, config tuning, or multi-node orchestration on Fiber Network v0.8.0.
fiber-pay is an AI payment layer over Fiber Network for CKB Lightning. It provides an AI-friendly CLI to manage node lifecycle, channels, invoices, payments, and more.
fiber-pay primarily operates via the local fnn binary and interacts through RPC. However, via @fiber-pay/sdk/browser, it also provides a native WebAssembly architecture allowing nodes to run fully in the browser (eliminating local daemon dependency).
Most CLI atomic commands are direct mappings or thin orchestration wrappers over RPC methods. On top of atomic commands, fiber-pay introduces a runtime for complex operations.
Think in layers:
node/channel/invoice/payment/job/peer/binary/config/graph/runtime/l402/agent) provide user/operator entry points.In runtime-active scenarios, write operations are generally job-first and then observable via job list/get/events/trace.
Default to npm install for usage/testing. Only use source build+link if user explicitly asks to modify/contribute to the repo.
npm install -g @fiber-pay/clipnpm install + pnpm build + pnpm link --globalFor details, read references/install.md.
-hDo NOT memorize every flag. When unsure about a command's options, run -h first. This saves tokens and guarantees correct, up-to-date flag usage.
fiber-pay -h → discover command groupsfiber-pay <group> -h → discover subcommands (e.g. fiber-pay channel -h)fiber-pay <group> <cmd> -h → discover flags (e.g. fiber-pay channel open -h)Try bootstrap the node, prepare channels, and get the payment network ready end-to-end without waiting for step-by-step instructions.
Only ask users for missing pieces of information that they would know but you don't (e.g. "what's the multiaddr of the peer you want to connect to?", "Do you want custom password or default one?", "Please deposit some CKB to my funding address: <funding-address>") instead of asking for every single command or flag.
--json when output is consumed by agents or scripts.references/contracts.md.references/runtime-api.md.Read references/core-operation.md for end-to-end payment operations: readiness gate, bootstrap, peer/channel setup, send/receive flow, and failure recovery sequence.
Read references/rebalance.md for channel liquidity rebalance concepts, command usage, and operational checklist.
npm install -g @fiber-pay/cli) and contributor clone/build/link flow.fiber, rpc, ckb, cch).node start does/doesn't auto-handle.7) Agent debugging micro-habits (logs-first), then pivot to job trace <jobId> and job events --with-data before guessing root causes.payment rebalance and high-level channel rebalance wrapper workflow.node upgrade, migration check, backup/rollback, breaking change handling)./jobs/* and /monitor/* endpoints and state model.l402 proxy, agent serve, and agent call commands.