fuel-agent-kit

Tools that let you build AI agents on Fuel.

npm install fuel-agent-kit fuels

This project is in alpha and things might break. Please use it with caution. Any feedback is appreciated.

  • Transfer any asset to another Fuel wallet

  • Swap any supported asset pair on Mira

  • Query balances

  • Lend or borrow assets on Swaylend

  • Add Liquidity on Mira

  • Supports OpenAI, Gemini, and Anthropic API

  • (trading, NFTs, more coming)

import { FuelAgent } from 'fuel-agent-kit';

const agent = new FuelAgent({
  walletPrivateKey: process.env.FUEL_WALLET_PRIVATE_KEY,
  model: 'gpt-4o-mini',
  openAiApiKey: process.env.OPENAI_API_KEY
});

// Execute commands in natural language
await agent.execute(
  'Send 0.1 USDC to 0x8F8afB12402C9a4bD9678Bec363E51360142f8443FB171655eEd55dB298828D1',
);

// Or, call functions directly
await agent.transfer({
  to: '0x8F8afB12402C9a4bD9678Bec363E51360142f8443FB171655eEd55dB298828D1',
  amount: 0.1,
  symbol: 'USDC',
});

// Swap Assets
await agent.execute('Swap 5 USDC for ETH');

// Add Liqudity
await agent.execute(
  'Add liquidity into USDC/USDT pool for 0.1 USDC with 5% slippage',
);

// Lend Assets
await agent.execute('Supply 10 USDT as Collateral');

// Borrow Assets
await agent.execute('Borrow 11 USDC');

Last updated