Getting Started
What is Compass API?
Compass API is a unified execution layer that allows traders, developers and agents to interact with DeFi. It simplifies on-chain operations, from basic transactions to complex workflows, all through one simple API. Wether you’re swapping tokens, managing liquidity or building a DeFi yield products, the Compass API provides tools to interact with on-chain markets.
Built with secure, non-custodial execution in mind, Compass API abstracts away complex smart contract interactions, allowing you to focus on intent and strategy—without worrying about low-level infrastructure.
With one API you can:
- Execute complex DeFi transactions – Swap, lend, borrow, stake, LP, and more, with high-level on-chain actions.
- Stay secure & non-custodial – Transactions are signed locally, and you retain full control.
- Build AI & automation workflows – Power AI agents, trading bots, yield products and DeFi applications with programmatic transaction execution. Integrate seamlessly into existing workflows.
- Interact across multiple protocols & chains – Spot, lending, staking on Ethereum, Arbitrum, Base. Many more to come!
Key Features
- On-chain transactions: The Compass API allows you to pick and choose from pre-built DeFi actions, making it easy to automate and scale transactions:
- Token swaps: swap tokens on DEXs like Uniswap & Aerodrome.
- Liquidity management: add or remove liquidity from pools and optimize liquidity management.
- Lending & borrowing: borrow, supply, take leverage, manage risk and summarize positions.
- Custom workflows: Chain together DeFi workflows to fit your dApp or trading logic. Think about AI agents, trading bots, yield bearing products and position monitoring.
- High-level commands, no smart contract hassle: Forget low-level contract calls and raw transaction data—Compass API provides intuitive commands - think asset, amount, leverage, and more. Whether it’s swapping tokens, lending, or liquidating positions, you focus on strategy, and we handle the smart contracts.
- Secure by default, no authorization: your private keys stat local and transactions are signed securely on your machine. Also, no keys, no sign-ups, no waiting, no fuss. Start building instantly.