Skip to main content
The Mem[v] SDK provides convenient access to the Mem[v] REST API from Python and TypeScript/JavaScript applications.

Installation

Requirements

  • Python 3.9 or higher
  • Works with standard Python and async/await

Authentication

Get your API key from the Mem[v] Dashboard.

Set up your API key

Or use a .env file:
Never commit your API key to source control. Always use environment variables.

Quick start

Async usage

Type support

Configuration options

Timeouts

Default timeout is 60 seconds.

Retries

Automatically retried errors:
  • Connection errors
  • 408 Request Timeout
  • 409 Conflict
  • 429 Rate Limit
  • 500+ Server errors

Logging

Runtime-specific usage

Deno

Bun

Cloudflare Workers

Working with response objects

Next steps

Spaces

Create and manage memory spaces

Memories

Add and search memories

Files

Upload and manage files

Error handling

Handle errors and exceptions