--chain default to base unless documented otherwise.
quote — Price Quotes (No Auth)
Get a swap price without a wallet, a session, or any setup. It is the fastest pricing entry point for trying FibX or answering a question before a user has logged in. Other public or local commands, includingstatus, tx-status,
config, policy, and aave markets, also work without an active session.
Examples
wrap or unwrap operation without slippage or router fields. To execute
the same trade, use trade with the same arguments once
authenticated.
auth — Authentication
Manage the wallet session. Authentication is required before commands that inspect or act on a wallet. Three signing paths are available; each of these commands replaces the active session. The comparison is on Signing Paths and the Local Policy.auth setup
Choose how FibX should sign, with the trade-offs explained. Interactive: it asks one question and runs the matching flow below.auth connect (Your Own Wallet)
Pair a wallet you already have over WalletConnect. The CLI prints a QR code and awc: URI and waits for the wallet app to approve. Every later
transaction is approved in that wallet, on your phone; nothing is signed on
this machine.
auth import (Private Key)
Import an existing private key to create a local wallet session that runs unattended. The CLI opens an interactive prompt where you paste the key.policy.
auth login / auth verify (Email OTP)
Authentication via email OTP. This creates a server-managed wallet through Privy — useful when you do not have an existing private key and want FibX to act without you.auth logout
End the active session. Also ends a WalletConnect pairing.policy — Signing Policy
Read and change the local signing policy: a JSON file the user owns, evaluated before every signature on all three signing paths. No session is needed.set replaces the rule’s previous value. clear with no rule removes the
whole policy and asks for confirmation; -y skips the question. A
transaction outside the policy is refused before any signature is requested,
with POLICY_BLOCKED and the rule named.
No file means everything is permitted. A file that exists but cannot be
parsed means everything is refused until it is fixed or cleared — a
corrupt policy does not fail open.
Examples
status — Session Status
Check whether a session is active, which signing path it uses, and the authenticated wallet address.address — Wallet Address
Print the active wallet address.wallets — Wallet Details
Show the active wallet details for the current session.portfolio — Cross-Chain Portfolio
View a consolidated portfolio across all supported chains with USD-valued token holdings and DeFi positions.Examples
The portfolio view aggregates holdings across Base, HyperEVM, and Monad. It also includes Aave V3 collateral and debt positions when available.
balance — Check Balances
Fetch native and ERC-20 token balances for the authenticated wallet.- Base
- HyperEVM
- Monad
send — Transfer Tokens
Send native tokens or ERC-20 tokens to a recipient address. FibX performs a command-specific preflight before submission.
If
token is omitted, the chain’s native token is used (ETH on Base, HYPE on HyperEVM, MON on Monad).
Examples
trade: Swap Tokens
Exchange one token for another via Fibrous aggregation. The CLI finds a route, handles token approvals, estimates the main swap path, and submits it.The
trade command automatically detects Wrap (Native → Wrapped) and Unwrap (Wrapped → Native) operations and executes them directly via contract calls, bypassing the aggregator routing to save gas.If the source is an ERC-20 token with insufficient allowance,
trade --simulate returns requiresApproval: true without submitting an
approval. Because the swap cannot be estimated safely in that state, the
preview omits the gas estimate.Examples
- Base
- HyperEVM
- Monad
- Custom Slippage
- Swap Preview
aave — Aave V3 (Base Only)
Manage Aave V3 lending positions on Base. Supply assets to earn yield, borrow against collateral, repay debt, or withdraw.Actions
ETH ↔ WETH Auto-Wrap
For the ETH market,supply and repay can wrap ETH to WETH, while withdraw
can unwrap WETH to ETH. Borrowing the ETH market returns WETH; the borrowed
asset is not auto-unwrapped.
An Aave
--simulate result summarizes the normalized request without
broadcasting it. It does not perform on-chain validation, simulate the
contract call, or estimate gas.Health Factor
Before borrowing, always checkaave status. The Health Factor indicates liquidation risk:
- Above 1.5 — Lower liquidation risk, but not risk-free
- Between 1.1 and 1.5 — Liquidation risk warning
- Below 1.1 — High liquidation risk, proceed with extreme caution
max is supported only for repay and withdraw; supply max and
borrow max are rejected. Use max when fully repaying debt or withdrawing a
supplied position to avoid dust residuals.config — RPC Configuration
View and modify local fibx CLI configuration. Used primarily to set custom RPC URLs when hitting rate limits on public endpoints.Configuration is stored in the OS-specific FibX config directory and persists
across sessions. Typical paths are
~/.config/fibx-nodejs/config.json on
Linux and ~/Library/Preferences/fibx-nodejs/config.json on macOS.Examples
tx-status — Transaction Status
Check the on-chain status of a transaction and retrieve the block explorer link.Always use the same
--chain flag that was used for the original transaction. A Base transaction hash will not be found on Monad.