Skip to main content

Prerequisites

Steps

1

Install the SDK

pip install anima-labs
2

Initialize the client

from anima import Anima

anima = Anima(api_key="ak_...")
Replace ak_... with your API key from the Anima console.
3

Create an agent

Each agent gets its own inbox automatically when you create it.
agent = anima.agents.create(name="My First Agent")
print(f"Agent: {agent.id}")
4

Send an email

anima.messages.send_email(
    agent_id=agent.id,
    to="recipient@example.com",
    subject="Hello from my AI agent",
    body="This email was sent by an AI agent powered by Anima.",
)
print("Email sent!")

Next steps

Cards quickstart

Issue virtual cards with spending controls.

Vault quickstart

Store credentials securely for your agents.

Webhooks

Get notified when emails arrive in an agent’s inbox.

Custom domains

Send email from your own domain.