Threads AI

mem0

Mem0 memory: refused, since the mem0ai SDK sends outside any transport threads can fence (its constructor checks the key and it posts telemetry on its own).

TypeScript refuses at check() or the first run, Python when mem0() is called. Use supermemory() or zep().

Import from @threads/mem0 (TypeScript) or threads.mem0 (Python).

function mem0(options: {
  apiKey: Secret;
  host?: string;
}): MemoryProvider

Parameters

apiKey / api_keySecretrequired

A secret() naming the host environment variable that holds the Mem0 API key. See Secret.

hoststring

The Mem0 API host. Omitted: Mem0's hosted platform.

Returns

MemoryProvider

Throws ConfigError with one of these codes: transport_fence_unsupported.

Edit on GitHub

On this page