SDKsOverview

SDKs

Three hand-written clients over the same REST API. None of them is generated from the OpenAPI document, so each one covers the routes its authors wrapped, and the three are not identical.

Where each one stands

SDKPackageInstallVersion
TypeScript@mnemo-ai/client-tsnpm3.6.2
Pythonmnemo-ai-sdk (imported as mnemo)from the repository, not on PyPI3.0.0a0
Gogithub.com/lucasmailland/mnemosyne/packages/sdk-gogo get, no tagged releasepseudo-version of main

The TypeScript client is the widest of the three. The CLI and the MCP server are built on it.

What the three share

  • A client built from a server URL and an API key. The key decides the workspace.
  • recall, facts (create, get, list, patch, forget, restore, pin, unpin), timeline, health, sessions, entities, decisions, relations, tasks, events, strategies and the review queue.
  • One API error type that carries the HTTP status, the server’s error code and the request id.
  • Retries with exponential backoff and jitter, starting at 200 ms, on network failures, 429 and 5xx. The default budget is three attempts in TypeScript and three retries in Python and Go. Reads are replayed automatically. A write is replayed only when it carries an idempotency key.
  • Idempotency keys, sent as the Idempotency-Key header.
  • A way to target another workspace with a user token: forWorkspace, for_workspace, ForWorkspace.

What differs

  • TypeScript returns typed objects. Python returns plain dicts. Go returns map[string]interface{}, except Recall, which returns a *RecallResponse.
  • Only TypeScript has remember, with kind, scope, scopeRef, topicKey and the rest of the POST /remember body. In Python and Go, create_fact and CreateFact send the statement, attribution, tags and a session id.
  • Only TypeScript exposes the recall options mode, kinds, scope, scopeRef, minSimilarity, hyde and includeGraph. Python and Go send query, vector, topK, asOf, vectorWeight and a session id.
  • None of them has pagination iterators. List calls return a page with nextCursor, and you loop on it yourself.

For any other language, call the REST API directly. A running server publishes its OpenAPI document at /openapi.json and a browsable reference at /docs.