Prerequisites
Before you begin, ensure you have:- Node.js 22+: Download from nodejs.org
- pnpm: Install with
npm install -g pnpm - AI Provider API Key : Get one from OpenRouter, OpenAI, xAI, or Hyperbolic
Installation
-
Install dependencies:
-
Set up environment:
Edit
.envand add your API keys.
Quickstart
Creates a general-purpose AI agent with DeFi capabilities in 4 steps:1
Initialize Your Agent
config/ directory with a general-purpose AI agent that has DeFi capabilities (swapping, lending, liquidity) and web tools. You can customize it by editing config/agent.md.2
Start the Server
http://0.0.0.0:30003
Test Your Agent
In a different terminal, send a message to verify everything works:Your agent is now ready to receive messages and execute workflows.
4
Connect to Your Agent
Your agent exposes these endpoints for integration:
- A2A Endpoint:
http://0.0.0.0:3000/a2a- Send messages and get responses - Agent Card:
http://0.0.0.0:3000/.well-known/agent-card.json- Agent discovery - Health Check: POST to
/a2awith{"jsonrpc": "2.0", "method": "health", "id": 1}