Skip to content

Plugins

Brain Framework’s plugin system allows you to extend your agent’s capabilities with various integrations. Each plugin adds specific functionality, such as DeFi operations, token swaps, or other blockchain interactions.

import { AgentBuilder, ModelProviderName } from "@iqai/agent";
import { createFraxlendPlugin } from "@iqai/plugin-fraxlend";
import { createOdosPlugin } from "@iqai/plugin-odos";
import { bootstrapPlugin } from "@elizaos/plugin-bootstrap";
import { fraxtal } from "viem/chains";
async function main() {
const fraxlendPlugin = await createFraxlendPlugin({
chain: fraxtal,
walletPrivateKey: process.env.WALLET_PRIVATE_KEY,
});
const odosPlugin = await createOdosPlugin({
chain: fraxtal,
walletPrivateKey: process.env.WALLET_PRIVATE_KEY,
});
const agent = new AgentBuilder()
.withClient(DirectClient)
.withModelProvider(
ModelProviderName.OPENAI,
process.env.OPENAI_API_KEY
)
.withPlugin(bootstrapPlugin)
.withPlugin(fraxlendPlugin)
.withPlugin(odosPlugin)
.build();
await agent.start();
}
main().catch(console.error);

Browse the full collection of community plugins at ElizaOS Plugins , including:

  • Additional client interfaces
  • Data storage solutions
  • Integration tools
  • Utility plugins

This compatibility ensures you have access to a wide range of tools while building your agents.