Quick Start
Get your first agent wallet running in under 5 minutes.
1. Install
npm install @orbserv-labs/orb-wallet2. Get an API key
Sign in at app.orbserv.co → API Keys → Create 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
- Authentication — API key formats and header usage
- Wallets SDK — full wallet API reference
- x402 Auto-pay — pay for HTTP services automatically
- Policies — spending guardrails for autonomous agents
- Covenant Spend Authorization — optional pre-sign spend gate via Covenant daemon