Skip to main content
Mem[v] provides official SDKs for Python and TypeScript/JavaScript to integrate long-term memory capabilities into your AI applications.

Available SDKs

Python SDK

Official Python SDK (v0.4.1) - Production ready

TypeScript/JavaScript SDK

Official TypeScript/JS SDK (v0.4.0) - Production ready

Go

Coming soon - Join the waitlist

Rust

Planned - Request early access

Why use an SDK?

Get full type definitions and IDE autocomplete for all API methods, parameters, and responses.
Comprehensive exception types for different error scenarios with automatic retries for transient failures.
Native async/await support for efficient concurrent operations in both Python and TypeScript.
Easy API key management with environment variable support.
Streaming responses, custom HTTP clients, middleware support, and more.

Quick examples

from memvai import Memv

client = Memv()

# Create a space
response = client.spaces.create(name="AI Assistant")
space_id = response.space.id

# Add a memory
client.memories.add(
    space_id=space_id,
    content="User prefers technical explanations"
)

# Search memories
results = client.memories.search(
    space_id=space_id,
    query="How does the user like explanations?"
)

for memory in results.memories:
    print(memory.content)

Key features

  • Python 3.9+ and TypeScript 4.9+ support
  • Multiple runtimes: Node.js, Deno, Bun, Cloudflare Workers, Vercel Edge
  • Full type safety: Type annotations with Pydantic (Python) and TypeScript
  • Async support: Async/await in both languages
  • Automatic retries: Built-in retry logic with exponential backoff
  • Error handling: Comprehensive exception types
  • File uploads: Support for all file types

View SDK documentation

Complete SDK documentation with language tabs

REST API

Prefer to use the REST API directly? View the API reference:

REST API Reference

Complete REST API documentation with OpenAPI spec

Community SDKs

Building an SDK for Mem[v]? Let us know! We’d love to feature community-built SDKs here.

SDK Support

GitHub (Python)

Python SDK repository

GitHub (TypeScript)

TypeScript SDK repository

Discord Community

Get help from the community

Email Support

Contact the support team

Contributing

Want to contribute to the SDKs? We welcome contributions!

Next steps

Quickstart

Get started in minutes

Installation

Install the SDK

Core Concepts

Learn how Mem[v] works