Skip to main content

Requirements

  • Node.js v18 or higher
  • npm (included with Node.js)
  • A running fibx-server instance only if you use Privy-managed wallet operations
No global installation is needed. All commands use npx fibx@latest, which always fetches the latest version (currently v0.5.1).

Installation Options

Run FibX directly with npx:
Or install it globally:

Installing Agent Skills

To add fibx skills to your AI agent, use the Vercel Skills CLI:
This installs the pre-built skill definitions from the fibx-skills repository into your agent’s skill registry. No separate installation of fibx is needed — all skills execute via npx fibx@latest.

Verify Your Environment

Authentication

FibX requires an active session before performing any wallet operation (balance, send, trade, aave). Two authentication methods are available: If you already have a wallet with a private key, this is the fastest way to get started. The key is encrypted and stored in a local session file for the duration of the session. This mode does not require fibx-server.
Your private key will be stored locally in an encrypted session file. Only use this method on a trusted device.
This is ideal for developers and agents that already manage their own wallets. The imported key is used directly for signing transactions — no external server holds your key.

Email OTP (Alternative — Privy Server Wallets)

If you do not have a private key or prefer a managed wallet, you can authenticate via email OTP. This creates a server-managed wallet through Privy, where the private key is held securely on Privy’s infrastructure and never exposed to the client. This mode requires fibx-server to be running and reachable.

Session Management

Global Options

These flags apply to all commands:

Chain Selection

If no --chain flag is provided, all commands default to Base.

First Transaction

After authenticating, run through a complete workflow to verify everything is working:
1

Check your balance

2

Execute a swap

The CLI will find the optimal route via Fibrous, simulate the transaction, handle token approvals, and execute.
3

Verify the transaction

This returns the on-chain status, gas used, and a block explorer link.

Dry-Run Mode

Use --simulate to estimate gas and validate execution without broadcasting a transaction.