What it is
Compass AI is your LLM’s gateway to DeFi. It translates natural language into structured, ready-to-use DeFi actions—whether that means executing a leveraged trade or checking a wallet’s P&L. Built on top of Compass Labs’ API, it supports both execution and monitoring, and works with any LLM supported by Langchain. Compass AI is an LLM‑friendly layer on top of the Compass API. It converts plain English (e.g., “Borrow 1,000 USDC on Aave on Base”) into structured, sign‑ready transactions or standardized data responses (balances, positions, P&L, rates).- Execution: returns an unsigned payload you sign.
- Monitoring: returns data for balances, positions, APR/APY, prices, risk, and more.
Compass AI is officially integrated with LangChain. Use the Compass Langchain Toolkit to add DeFi to your chat interface.
When to use it
- Add AI agents that can execute swaps, lends/borrows, LP, leverage, or rebalance.
- Let users ask in natural language to check balances, position health, and yield.
- Prototype agentic flows quickly without writing protocol adapters.
How it works
Each Compass API action (swap, lend, borrow, repay, withdraw, bundle, balances, positions, etc.) is exposed as a LangChain Tool with an input/output schema.- User asks in plain English. The LLM parses the user’s intent, and picks the right tool. .
- Deterministic execution. The tool calls Compass, which returns either a sign‑ready transaction or data.
- You keep the keys. Payloads are unsigned. You review, sign, and broadcast. Compass never holds keys.
Ways to Integrate
Compass AI is officially integrated with LangChain. Use the Compass Langchain Toolkit to add DeFi to your chat interface.1
2
Import and instantiate the toolkit
3
Pass the tools to your agent with toolkit.get_tools()