Quick Start

Get your first agent wallet running in under 5 minutes.

1. Install

npm install @orbserv-labs/orb-wallet

2. Get an API key

Sign in at app.orbserv.coAPI KeysCreate key.

Your key will look like orb_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Store it in an environment variable — never commit it to source control.

3. Create a wallet

import { OrbWallet } from '@orbserv-labs/orb-wallet'
 
const orb = new OrbWallet({ apiKey: process.env.ORB_API_KEY! })
 
const wallet = await orb.wallet.create({
  name: 'my-agent',
  chains: ['solana', 'base'],
})
 
console.log(wallet.evm.address)     // 0x...
console.log(wallet.solana.address)  // ...

4. Send a payment

const agent = await orb.wallet.get(wallet.id)
 
await agent.send({
  to: '0xRecipient...',
  amount: '5.00',
  token: 'USDC',
  chain: 'base',
})

5. Set a spending policy

Before deploying an agent, add guardrails so it cannot overspend:

await agent.policy.update({
  dailyLimit: '25.00',
  maxPerTx: '5.00',
  allowedDomains: ['api.openai.com', 'api.anthropic.com'],
})

Next steps