The official Python library for the Supermemory API, providing programmatic access to memory storage, retrieval, and management. Current version 3.45.0, requires Python ≥3.9, updated regularly.
pip install supermemoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize client with API key, create and list memories.
Pass api_key as keyword argument: Supermemory(api_key='your-key')
Always pass optional arguments as keywords: client.memories.create(content='...', tags=[], metadata={})Replace client.memories.update(id, ...) with client.memories.patch(id, ...)
Ensure you set SUPERMEMORY_API_KEY environment variable or pass a valid api_key to the Supermemory constructor.
Assign the result to a variable: memories = client.memories.list(limit=10). Then iterate over memories.
Use 'from supermemory import Supermemory' or ensure you have v3.0+ (pip install --upgrade supermemory).