Introducing FibX: Best DeFi Execution for AI Agents
AI is getting exponentially more capable. Agents from Claude to OpenAI, and from Cursor to custom LLM workflows, can reason, plan, and make decisions at a level that was unimaginable just two years ago. But intelligence without execution is just theory.
Until now, connecting an AI agent to real DeFi operations meant building custom integrations, managing complex wallet infrastructure, and writing brittle onchain scripts by hand.
This changes today.
We are excited to announce FibX, a CLI-based DeFi execution layer and pre-built agent skill framework. FibX empowers AI agents to perform complex onchain financial operations through natural language. Swap tokens, send funds, manage Aave V3 positions, and verify transactions across Base, Citrea, HyperEVM, and Monad, without writing a single line of custom blockchain logic.
What is FibX? (TL;DR)
FibX is an intent-driven execution layer that wraps the entire DeFi execution stack into a clean, machine-readable CLI interface. It provides structured JSON outputs, built in transaction simulation, and intelligent defaults to prevent common execution failures, making it the perfect bridge between AI reasoning and onchain action.
Why AI Agents Need a DeFi Execution Layer
Managing decentralized finance across multiple chains is operationally complex. Each blockchain has its own RPC endpoints, token addresses, DEX routers, gas mechanisms, and approval flows. Even for experienced developers, coordinating a multi-step DeFi workflow like checking balances, finding a route, approving tokens, simulating the transaction, executing, and verifying requires non-trivial coding.
For AI agents, this complexity is a hard wall. They can reason about what to do, but they lack a reliable way to do it.
FibX removes that wall. By handling the heavy lifting of blockchain interactions, FibX allows agents to call commands directly, utilizing built-in simulations before every execution to prevent costly onchain errors.
What FibX Enables: Key Use Cases
1. Conversational Token Swaps
A user tells an agent: "Swap 0.1 ETH to USDC on Base." Previously, this required the agent to query a DEX API, build a transaction, manage approvals, estimate gas, and sign. With FibX, the agent executes a single, clean command:
npx fibx@latest trade 0.1 ETH USDC
FibX routes the swap through Fibrous aggregation, automatically splitting across the best available liquidity sources. The agent receives a structured JSON result containing the output amount, route taken, gas used, and transaction hash. Wrap and unwrap operations (ETH ↔ WETH, cBTC ↔ wcBTC) are handled completely under the hood.
2. Multi-Chain Portfolio Execution
AI agents managing portfolios across chains no longer need custom for each chain’s integrations. FibX supports Base, Citrea, HyperEVM, and Monad under a unified interface. Switching chains is as simple as adding a flag:
npx fibx@latest trade 1 MON USDC --chain monad
npx fibx@latest balance --chain citrea
npx fibx@latest send 50 0xRecipient USDC --chain base
An agent can assess balances across all supported networks, determine optimal rebalancing moves, and execute them in sequence—or in a scripted pipeline using the --json output flag for each step.
3. Aave V3 Position Management on Base
Lending protocol interactions are among the most error-prone operations in DeFi. Health factors, liquidation thresholds, interest accrual, and ETH/WETH distinctions create multiple points of failure. FibX handles all of this natively:
# Check health factor and net worth
npx fibx@latest aave status
# Auto-wraps ETH → WETH before supplying
npx fibx@latest aave supply 1 ETH
# Borrow against collateral
npx fibx@latest aave borrow 500 USDC
# Repays full WETH debt, auto-wraps ETH
npx fibx@latest aave repay max ETH
# Withdraws WETH, auto-unwraps to ETH
npx fibx@latest aave withdraw max ETH
Built-in Safety Guardrails: If the health factor drops below 1.5, the agent is warned. If it falls below 1.1, the operation is blocked until explicitly confirmed. The max keyword automatically handles dust and accrued interest, leaving no residual balances or failed transactions.
4. Autonomous Transaction Verification
After any operation, agents can verify execution and surface the block explorer link to users automatically:
npx fibx@latest tx-status 0xabc...def
npx fibx@latest tx-status 0xabc...def --chain monad
The response includes confirmation status, block number, gas used, and a direct link to the appropriate chain explorer.
Agent Skills: Natural Language to Onchain Execution
For teams building with AI agents, FibX ships with a ready-to-use skill library at github.com/Fibrous-Finance/fibx-skills. These are pre-built Agent Skills specifications that map natural language intents to FibX CLI commands.
Install them in a single line:
npx skills add Fibrous-Finance/fibx-skills
Seven skills are available out of the box:
Once installed, agents can interpret conversational prompts (e.g., "Supply 1 ETH to Aave") and route them to the correct skill, complete with parameter extraction, pre-execution validation, and structured response handling.
Wallet Authentication: Your Key, Your Choice
FibX supports two flexible authentication paths, creating a persistent session for all subsequent commands:
- Direct Key Import: Import your private key directly. It is encrypted locally and used for signing without any external dependency.
npx fibx@latest auth import
- Privy Integration: For server-managed wallets, FibX integrates with Privy for email OTP-based onboarding. Ideal for agents provisioning wallets dynamically.
Built for the Agent-Native Stack
FibX is designed from the ground up for machine consumption. Every command supports --json output for clean integration into agent pipelines. Transactions are simulated before broadcast; if a swap would fail, the agent knows before any gas is spent.
There is no SDK to install, no ABI to manage, and no per-chain configuration to maintain. The agent calls npx fibx@latest, and FibX handles the rest.
The Future of DeFi is Intent-Driven
The shift from transaction-driven to intent-driven DeFi is happening now. Users and agents should be able to describe what they want like "rebalance my position" or "swap and supply in one step" and have the execution layer handle routing, simulation, approvals, and verification automatically.
FibX brings the aggregation depth of Fibrous into a format that AI agents can use directly, today. We're open-sourcing the skills layer so any developer can extend, fork, and integrate. The execution primitives are stable and production ready!
Ready to Build?
- Documentation: docs.fibrous.finance/fibx-agent
- npm Package: npmjs.com/package/fibx
- Agent Skills Repository: github.com/Fibrous-Finance/fibx-skills