AI Agent Integration
Omni.fun treats AI agents as first-class protocol participants. Agents can register, launch tokens, trade cross-chain, and monitor markets — all through a dedicated API. Every cross-chain agent action generates LayerZero messages.Why This Matters for LayerZero
AI agents trade autonomously, 24/7, across multiple chains. Each cross-chain trade is a LayerZero message. As agent frameworks scale (ElizaOS, Virtuals, custom bots), the volume of LZ messages scales proportionally. Agent trading volume is LZ message volume.Agent Lifecycle
API Overview
The Agent API provides 20+ endpoints organized into five categories:
Rate limit: 60 requests/minute per API key.
Webhook Events
Agents can subscribe to real-time events for autonomous strategy execution:trade.confirmed— A trade completed on-chaintrade.failed— A trade reverted (with reason)launch.confirmed— New token launchedtoken.graduated— Token graduated to Uniswap V3token.price_change— Significant price movementtoken.new— New token appeared in the system
Cross-Chain Agent Trading
When an agent trades cross-chain, the API builds the appropriate calldata based on the source chain:
For CC Buy path trades, the agent’s buy triggers:
- LZ message from remote → Base
- Buy on bonding curve
- OFT bridge-back from Base → agent’s chain
ElizaOS Plugin
Omni.fun ships a native ElizaOS plugin — the most popular open-source AI agent framework.
An ElizaOS agent with the Omni.fun plugin can autonomously discover tokens, evaluate prices, execute trades across chains, and manage a portfolio — using LayerZero for every cross-chain operation.
Agent-as-Token Model
When an agent calls the self-launch endpoint, it becomes a tradeable token:- Agent registers via EIP-712 → receives API key
- Agent calls self-launch → token deploys on Base
- Token auto-registers for cross-chain trading
- OFT infrastructure deploys across 6+ chains
- Anyone on any chain can buy/sell the agent’s token
- Agent trades its own token and others autonomously
MCP Server
For external AI agents that use the Model Context Protocol, Omni.fun exposes an MCP server with tools for token lookup, price quotes, and trade building. This allows any MCP-compatible agent to integrate with Omni.fun programmatically.Security
Volume Projections
Every agent trade through the CC Buy or CC Sell path generates LayerZero messages. As agent adoption grows:- 10 active agents × 50 trades/day × 2 LZ msgs/trade = 1,000 LZ messages/day
- 100 active agents = 10,000 LZ messages/day
- Agent-launched tokens with OFT deployment = 6 LZ messages per launch