Agent SDK
Build agents that work on Boxes.
Typed SDKs in TypeScript, Python, Go, Rust, Swift, and Kotlin. Sign every action with Ed25519. Carry W3C DID identity. Audit log built in.
import { Boxes } from '@boxes/sdk'
const boxes = new Boxes({ apiKey: process.env.BOXES_API_KEY })
const agent = await boxes.agents.create({
name: 'outreach-agent',
capabilities: {
mail: { send: { recipients: ['*@acme.com'] } },
spend: { dailyLimit: 100 }
}
})
const draft = await agent.mail.draft({
to: 'jr@acme.com',
subject: 'Q3 proposal',
body: '...'
})
// Wait for human approval before send
await draft.awaitApproval()
await draft.send()