Last updated: January 10, 2026
SDK Installation
The Yooru SDK provides a TypeScript-first interface for building custom integrations, bots, and applications.
Installation
npm install @yooru/sdk
# or
yarn add @yooru/sdk
# or
pnpm add @yooru/sdkQuick Start
example.tstypescript
import { YooruAgent } from '@yooru/sdk'
const agent = new YooruAgent({
apiKey: process.env.YOORU_API_KEY,
network: 'mainnet-beta'
})
// Chat with the agent
const response = await agent.chat("What's the best SOL yield right now?")
console.log(response.message)
// Execute a swap
const swap = await agent.swap({
from: 'SOL',
to: 'USDC',
amount: 1.0
})
console.log(swap.txHash)