AI agent powered Intent Settlement Network. Nimble is an AI‐agent‐based solver network that helps users get the best price for swaps and also supports deposits and withdrawals in Morpho vaults
Prize Pool
Nimble Nimble is an AI‐agent‐based solver network that helps users get the best price for swaps and also supports deposits and withdrawals in Morpho vaults. The network is chain‐agnostic and has been demonstrated on Base for this project. The solver agents are built with Coinbase’s AgentKit, and the frontend is deployed on OpSec.
Table of Contents Overview Architecture High-Level Flow Swap Infrastructure Deposit and Withdraw Infrastructure Features Getting Started Prerequisites Installation Configuration Running Locally Usage Swapping Assets Depositing to Morpho Vaults Withdrawing from Morpho Vaults Deployment Project Status Contributing License
Find optimal swap routes for users across multiple liquidity pools and DEXes. Automate yield optimization for deposits and withdrawals in Morpho vaults. This project consists of:
Nimble Frontend – A user interface that interacts with the backends (Swap, Deposit, Withdraw). Swap Backend – Collects quotes from multiple solver agents and executes swaps at the best price. Deposit Backend – Finds the best vault for Morpho deposits, ensures optimal yields, and handles the deposit process. Withdraw Backend – Retrieves user funds from Morpho vaults, returning tokens seamlessly. 2. Architecture The Nimble architecture has three major components: Swap Infrastructure, Deposit Infrastructure, and Withdraw Infrastructure. These are orchestrated by the Nimble Frontend.
2.1 High-Level Flow User -> Nimble Frontend -> (Swap Backend | Deposit Backend | Withdraw Backend) -> User
User interacts with the Nimble Frontend. Frontend forwards requests to the appropriate backend. Backend leverages one or more solver agents (built with Coinbase’s AgentKit) to: Run an auction among solver agents. Retrieve best route (for swaps) or best vault (for deposits). Execute the transaction on-chain. Result is returned to the user (swapped assets or updated vault balance). ![High-Level Diagram] image
2.2 Swap Infrastructure The swap flow is:
User approves token spending to the Swap Contract. Solver Agents each propose a quote (e.g., price, route, etc.). Swap Contract runs an auction to pick the best solver agent. Winning Solver Agent executes the swap and sends funds back to the user. ![Swap Infrastructure] image
2.3 Deposit and Withdraw Infrastructure User gives approval to the Deposit Contract or Withdraw Contract. Solver Agents propose yields (for deposits) or methods (for withdrawals). Deposit or Withdraw Contract chooses the best agent based on yield or other optimization criteria. Winning Agent finalizes depositing or withdrawing on behalf of the user. ![Deposit/Withdraw Infrastructure] image
git clone https://github.com/purebl00d/nimble.git
Install dependencies:
cd nimble npm install
4.3 Configuration Copy .env.example to .env and fill in the required environment variables:
cp .env.example .env
CDP_API_KEY_NAME: Key name of the CDP API Key CDP_API_KEY_PRIVATE_KEY: CDP API KEY from coinbase developer kit. OPENAI_API_KEY: you OPEN AI API key for the models NETWORK_ID: for example base-mainnet 4.4 Running Locally Start the local dev server (frontend):
yarn start
This runs the Nimble frontend on http://localhost:5171.
Backends may each have separate start scripts (depending on how you organize your project):
Example yarn run swap-backend yarn run deposit-backend yarn run withdraw-backend
npm run dev
Then upload the build artifacts to your hosting service of choice.
Smart Contracts are on Base (testnet or mainnet). You can adapt the deployment scripts to other EVM chains.
Nimble Nimble is an AI‐agent‐based solver network that helps users get the best price for swaps and also supports deposits and withdrawals in Morpho vaults. The network is chain‐agnostic and has been demonstrated on Base for this project. The solver agents are built with Coinbase’s AgentKit, and the frontend is deployed on OpSec.
Table of Contents Overview Architecture High-Level Flow Swap Infrastructure Deposit and Withdraw Infrastructure Features Getting Started Prerequisites Installation Configuration Running Locally Usage Swapping Assets Depositing to Morpho Vaults Withdrawing from Morpho Vaults Deployment Project Status Contributing License
Find optimal swap routes for users across multiple liquidity pools and DEXes. Automate yield optimization for deposits and withdrawals in Morpho vaults. This project consists of:
Nimble Frontend – A user interface that interacts with the backends (Swap, Deposit, Withdraw). Swap Backend – Collects quotes from multiple solver agents and executes swaps at the best price. Deposit Backend – Finds the best vault for Morpho deposits, ensures optimal yields, and handles the deposit process. Withdraw Backend – Retrieves user funds from Morpho vaults, returning tokens seamlessly. 2. Architecture The Nimble architecture has three major components: Swap Infrastructure, Deposit Infrastructure, and Withdraw Infrastructure. These are orchestrated by the Nimble Frontend.
2.1 High-Level Flow User -> Nimble Frontend -> (Swap Backend | Deposit Backend | Withdraw Backend) -> User
User interacts with the Nimble Frontend. Frontend forwards requests to the appropriate backend. Backend leverages one or more solver agents (built with Coinbase’s AgentKit) to: Run an auction among solver agents. Retrieve best route (for swaps) or best vault (for deposits). Execute the transaction on-chain. Result is returned to the user (swapped assets or updated vault balance). ![High-Level Diagram] image
2.2 Swap Infrastructure The swap flow is:
User approves token spending to the Swap Contract. Solver Agents each propose a quote (e.g., price, route, etc.). Swap Contract runs an auction to pick the best solver agent. Winning Solver Agent executes the swap and sends funds back to the user. ![Swap Infrastructure] image
2.3 Deposit and Withdraw Infrastructure User gives approval to the Deposit Contract or Withdraw Contract. Solver Agents propose yields (for deposits) or methods (for withdrawals). Deposit or Withdraw Contract chooses the best agent based on yield or other optimization criteria. Winning Agent finalizes depositing or withdrawing on behalf of the user. ![Deposit/Withdraw Infrastructure] image
git clone https://github.com/purebl00d/nimble.git
Install dependencies:
cd nimble npm install
4.3 Configuration Copy .env.example to .env and fill in the required environment variables:
cp .env.example .env
CDP_API_KEY_NAME: Key name of the CDP API Key CDP_API_KEY_PRIVATE_KEY: CDP API KEY from coinbase developer kit. OPENAI_API_KEY: you OPEN AI API key for the models NETWORK_ID: for example base-mainnet 4.4 Running Locally Start the local dev server (frontend):
yarn start
This runs the Nimble frontend on http://localhost:5171.
Backends may each have separate start scripts (depending on how you organize your project):
Example yarn run swap-backend yarn run deposit-backend yarn run withdraw-backend
npm run dev
Then upload the build artifacts to your hosting service of choice.
Smart Contracts are on Base (testnet or mainnet). You can adapt the deployment scripts to other EVM chains.