memoryo-sdk, and its client class is MemoryOS. The package name differs because memoryos was unavailable on the registry.
npm version 0.1.3 was checked on 24 November 2026. Node.js applications can use the ESM import below. Installing a package does not start the backend or enable gated features.
Connect from your server
/v1. The default is https://api.memoryo.dev; set it to your instance URL for self-hosting. Keep the key server-side and derive the stable externalUserId from authenticated application identity.
Save and inspect the original job
The following is a verification sequence, not a per-response chat wait. Polling can wait up to the specified timeout. Use chat lifecycle for ordinary background capture, correction ordering and processing-state UX.wasStored is a legacy admission convenience, not proof of a stored/current record. A completed job can retain a pending candidate or create nothing. After timeout, inspect the same job; do not resubmit to hide failures. Reuse the exact authorized request/key for a network retry.
The object form accepts optional metadata, source and preferenceClaims. The positional form remains available:
Retrieve and gate
items, hasContext, systemPromptAddition, retrievalId, cached, quotaMode, isDegraded, isPassthrough, memoryVisibility, clarification, sourceReviews, preferenceReviews, preferenceDecisions and preferenceScopeRequest.
get() accepts limit, categories, format, contextMaxTokens, timeFilterDays, asOf and preferenceContext. Explicit preference context cannot be combined with historical asOf or agent-bound SDK reads. See scoped preferences and visibility handling.
Respond to a source review
keep_current and dismiss close an eligible review without storing pending text. restate returns resolved: false, nextStep: "add_memory" and requires a separate new save. Intentional typed replacement needs the actual target ID/version; see the replacement contract. A model must not invent a user’s choice or replacement binding.
Source review is separate from answerClarification() and administrative service correction. See the native source-review contract.
Registered service events
source to add() only after the owner configures the writer, credential binding and authority policy. Normal chat applications can omit it. See provenance.
Other contracts
getJobStatus()/waitForJob(): original job inspection.list(): authorized management listing; use the native history endpoint for version history, not as current answer context.feedback(): retrieval outcome reporting; corrections may create another asynchronous job.- Delete/export and domain helpers: require their endpoint-specific permissions/configuration.
UniversalMemoryOS belongs to disabled-by-default Memory Passport. Assistant-proposal confirmation and automatic interpretation are experimental. Check the feature configuration of your backend before using optional contracts.