1inch-Agent-Platform

1inch Agent Platform combines 15 APIs with Fusion+ (XRP, Tron), an agent kit, NLP and a dashboard.

1inch-Agent-Platform

Created At

Unite Defi

Project Description

The 1inch Agent Platform is an all-in-one Node.js package that unifies the entire 1inch API suite and an optional AI layer into a single, install-and-go solution. By running npm install 1inch-agent-kit, developers immediately gain access to all 15 core 1inch endpoints—Swap, History, Orderbook, NFT, Portfolio, Gas Price, Protocol Stats and more—as well as an AI-powered “agent” that leverages OpenAI’s API (simply set your OPENAI_API_KEY) to translate natural-language requests into smart, multi-step routing, gas estimation, portfolio checks and cross-chain operations. Fusion+ extends that functionality beyond EVM networks to include native support for Tron and XRP, automatically identifying the most efficient bridging or pool-based path. For non-technical users, the package ships with a plug-and-play NextJS dashboard and ChatGPT-style interface: users can chat to perform swaps or view balances, click through real-time charts of token holdings and transaction history, and configure API exposure, slippage settings and wallet connections without writing a single line of code. Whether you’re building custom DeFi integrations or offering a no-code crypto assistant, the 1inch Agent Platform delivers seamless programmatic access, AI-driven orchestration and a user-friendly visual front end in one cohesive ecosystem.

How it's Made

We began by publishing our core library as an npm package (1inch-agent-kit), so anyone can install it with npm install 1inch-agent-kit and immediately get access to every 1inch endpoint plus our AI layer. Under the hood, the kit is written in TypeScript on Node.js, leveraging Express to expose REST/WebSocket endpoints. We leaned on the SendAI Agent Kit architecture—wrapping each 1inch call as a micro-agent—and added a thin orchestration layer that handles retries, gas-optimizations, and cross-chain settlement. For the AI-powered interface, we import the same package into a ChatGPT-style service that calls OpenAI’s API. We did extensive prompt engineering to teach the agent how to decompose user intents—“swap 100 USDC to XRP via ETH if gas is low”—into specific 1inch and Fusion+ calls, then reassemble the results into a conversational reply. The dashboard is a React/Next.js app styled with Tailwind CSS. It simply import { AgentKit } from '1inch-agent-kit' on the front end, so every chart and table (portfolio balances, swap history, gas-price trends, NFT activity) calls the same library you’d use in code. We chose Recharts for visuals.

background image mobile

Join the mailing list

Get the latest news and updates