brian-apilisted
Install: claude install-skill aomi-labs/skills
# Brian API
Brian API converts natural language prompts into executable Web3 transactions. Send a text intent like "swap 10 USDC for ETH on Base" and receive ready-to-sign transaction calldata, complete with approval steps and routing through the best available DEX/bridge solvers. Supports swap, bridge, transfer, deposit, withdraw, borrow, and repay actions across Ethereum, Arbitrum, Base, Optimism, Polygon, and 10+ other EVM chains.
Three core endpoints: `/agent/transaction` returns executable calldata from a prompt, `/agent/knowledge` answers DeFi protocol questions with source citations, and `/agent/smart-contracts` generates Solidity code from descriptions. The TypeScript SDK (`@brian-ai/sdk`) wraps all endpoints, and the LangChain toolkit (`@brian-ai/langchain`) lets you plug Brian into autonomous agents.
Official docs: https://docs.brianknows.org/
## What You Probably Got Wrong
> LLMs have stale training data. These are the most common mistakes.
- **"Brian executes transactions"** -- Brian returns transaction calldata. Your application must sign and broadcast. The API never holds private keys and never submits transactions on your behalf.
- **"One API call = one transaction"** -- A single prompt can return multiple steps. A swap requiring token approval returns an `approve` transaction as step 0 and the swap as step 1. You must execute all steps in order.
- **"Brian picks the chain from the token name"** -- If the chain is ambiguous (USDC exists on 10+ chains), Br