Skip to main content

SDKs

Anima provides official SDKs for TypeScript/Node.js, Python, and Go. All three give you access to the full platform: agents, email, cards, vault, phone, webhooks, and more.

Installation

npm install @anima-labs/sdk
The TypeScript SDK is fully typed and works with Node.js, Bun, and Deno.

Initialization

import { Anima } from "@anima-labs/sdk";

const anima = new Anima({ apiKey: "ak_..." });

Key examples

Create an agent

const agent = await anima.agents.create({ name: "Procurement Bot" });
console.log(agent.id); // ag_abc123

Send an email

await anima.messages.sendEmail({
  agentId: agent.id,
  to: "vendor@example.com",
  subject: "Purchase Order #1042",
  body: "Please find the attached purchase order.",
});

Issue a virtual card

const card = await anima.cards.create({
  agentId: agent.id,
  label: "Vendor Payments",
  currency: "usd",
  spendLimitDaily: 50000, // amount in cents
});

Available resources

All three SDKs expose the same set of resources:
ResourceDescription
agentsCreate and manage AI agents
messagesSend and receive email messages
inboxesManage email inboxes
cardsIssue and manage virtual cards
vaultStore and retrieve encrypted credentials
phoneManage phone numbers
webhooksSubscribe to real-time events
domainsConfigure custom email domains
securityManage security policies
api_keysCreate and rotate API keys
All monetary amounts (spend limits, balances, transaction values) are expressed in the smallest currency unit — cents for USD.