Skip to main content

Python SDK

pip install supermemory

JavaScript SDK

npm install supermemory
Both SDKs also work against self-hosted Supermemory — pass baseURL: "http://localhost:6767" (TypeScript) or base_url="http://localhost:6767" (Python) when creating the client.

Install the TypeScript SDK

Start a TypeScript client

Run common TypeScript operations

Handle TypeScript SDK errors

Connection errors, 408, 409, 429, and >=500 responses are retried automatically (maxRetries, default 2, exponential backoff). Requests time out after 1 minute by default (timeout option). Set the SUPERMEMORY_LOG env var (or logLevel client option) to debug/info/warn/error/off — defaults to warn.Requires TypeScript >= 4.9, Node 20+, Deno 1.28+, or Bun 1.0+.