Skip to Content
Anuma SDKAnuma SDK

Anuma SDK

A TypeScript SDK for building AI-powered applications with streaming chat completions, long-term memory, tool calling, and end-to-end encryption.

To learn more, check out the Documentation .

Installation

npm install @anuma/sdk@next

Getting Started

Create an app on the Anuma Dashboard  to get your API key or configure Privy authentication.

Usage

React Hooks

import { useChat } from "@anuma/sdk/react"; const { sendMessage, isLoading, stop } = useChat({ getToken: async () => token, onData: (chunk) => console.log(chunk), }); await sendMessage({ messages: [{ role: "user", content: [{ type: "text", text: "Hello!" }] }], model: "gpt-4o-mini", });

API Functions

import { postApiV1Responses } from "@anuma/sdk/client"; const response = await postApiV1Responses({ body: { messages: [ { role: "user", content: [{ type: "text", text: "Hello!" }] }, ], model: "gpt-4o-mini", }, headers: { Authorization: `Bearer ${apiKey}`, }, });

Platforms

The SDK provides entry points for different platforms:

  • @anuma/sdk/react — React hooks
  • @anuma/sdk/expo — React Native / Expo
  • @anuma/sdk/client — Generated API client and types

Features

The SDK gives you access to a unified API across multiple LLM providers (OpenAI, Anthropic, Google, and more) through a single integration. Key capabilities include:

  • Streaming chat completions with tool calling and auto-execution
  • Extended thinking (Claude) and reasoning (o-series) support
  • Long-term memory with semantic search and encrypted storage
  • Voice recording and transcription via Whisper
  • PDF and image text extraction (OCR)
  • Phone call integration
  • End-to-end encryption with wallet-based key management
  • Credit and subscription management

Documentation

https://docs.anuma.ai/ 

Contributing

Contributions are welcome. Please open an issue or pull request on GitHub .

Modules

ModuleDescription
client-
expoReact Native hooks for building AI-powered mobile applications.
nextNext.js configuration plugin for @anuma/sdk
reactThe @anuma/sdk/react package provides a collection of React hooks designed to simplify building AI features in your applications. These hooks abstract away the complexity of managing streaming responses, loading states, authentication, and real-time updates, letting you focus on creating great user experiences.
vercelHelper utilities for integrating the useChat hook and Vercel AI Elements .
Last updated on