Welcome to Compass API
Compass is a non‑custodial API for on‑chain finance. Add Earn, Swap, Borrow, Leverage, Monitoring, and more to your product with a few lines of code. No smart contracts and protocol integrations required. Multi‑step strategies run as one safe, atomic transaction with the Transaction Bundler. Our mission: make on‑chain finance products as easy to build as any Web2 product. The Compass API and SDKs let you ship on‑chain features in days while we handle the blockchain plumbing. Whether you’re a wallet, fintech, trading platform, or crypto super app, use Compass to grow users and revenue, without new smart contracts or protocol maintenance.We launched Compass Transaction Bundler: build and execute complete DeFi workflows in one atomic transaction, without writing or deploying smart contracts. Read more here.
Key features
- Unified API: 90+ actions across DeFi (swap, lend, borrow, LP, leverage, monitor, and more); same interface for data (historic and real-time) and execution across all protocols.
- Always non‑custodial: we return unsigned payloads; you (or your users) sign. Works with EOAs, custodians, and smart accounts like Safe and ZeroDev.
- Intent bundles: Bundle multiple DeFi actions across protocols in a single request, cutting failures, partial flows, and saving ~50–70% gas. Read more here.
- Python & TypeScript SDKs: Fast and easy-to-use Python and TypeScript SDKs so you can focus on building incredible products.
- Agent-ready: Compass LangChain toolkit; works with any supported LLM.
What you can build
Some examples you can ship this week:- Earn — deposit to Aave, Morpho, Sky, and ERC‑4626 vaults; rotate when yields change.
- Trade — swap or LP via integrated DEXs and Pendle.
- Leverage — “Long ETH 3x” (supply → borrow → swap → re‑deposit) as one click.
- Managed portfolios — withdraw → swap → re‑deposit to target weights, atomically.
- Monitoring — balances, positions, APR/APY, health, and P&L in one schema.
10× faster time-to-market · $500k+ saved in blockchain overhead · New revenue lines via embedded fees (Earn, Trading, Rebalance)
Read our latest product report here to get a clear view of what is supported and how Compass can be used to monitor markets, automate transactions, and manage exposure across venues.
Monetize from day one (Embedded Fees)
Add deposit/withdrawal/performance/management fees inside the same user‑signed transaction. Pass bps or flat fee +feeRecipient
; fees settle atomically with the bundle. Configure per flow, product, or user segment.
Getting started
- Sign up for a free API key (1,000 calls/month).
- Run the Quickstart to execute your first on‑chain action in minutes.
- Explore examples for common flows and bundles.
Developer experience
- API — Construct transactions and manage market and user data over one REST interface. See the API reference to get started.
- SDKs — Use familiar Python or TypeScript SDKs
- Guides — Start in minutes with our Quick Start Guide, discover our tutorials, and use cases across common user flows.
Need help?
Exploring an integration or shipping a new DeFi feature? Tell us what you’re building and we’ll help you go live fast.- Email: contact@compasslabs.ai
Chat With Us
Schedule a 1:1 with our team to get you set up quickly.
Join our Discord
Stay up-to-date and join our builder community.