Documentation
Compass AI
Turn natural‑language prompts into executable, non‑custodial blockchain transactions, and monitor balances, positions, and risk.
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.
Why teams are integrating it
- One line of code to make your AI DeFi-native
- Works with all LLMs supported by LangChain
- Supports execution (swapping, lending, LPing, yield) + real-time monitoring (check balances, visualize portfolio, etc)
- Fully non-custodial—your users sign every tx
- Supports major protocols: Aave, Uniswap, Aerodrome, and more
Ways to Integrate
Compass AI is now natively integrated with LangChain. View the Compass Tool in LangChain Docs
1
2
Import and instantiate the toolkit
3
Pass the tools to your agent with toolkit.get_tools()
What does it mean to serve the AI as an API endpoint?
What:
- You can access Compass AI programmatically via a dedicated interface, similar to calling OpenAI’s API.
- Developers send REST requests (with natural language) to Compass AI’s API and receive structured, machine-friendly responses (e.g., unsigned transactions, regular AI message text).
Why:
- It enables simple integration into your own services, letting you provide its functionality for your users.
How:
- Use a
cURL
command (as you would for any REST API). For example: