MemoryLayer
  • How it works
  • Arena
  • Benchmarks
  • Registry
  • Pricing
  • Docs
Log inGet started free
  • 01Arena
  • 02Benchmarks
  • 03Registry
  • 04Pricing
  • 05Docs
Log inGet started free

Docs

Docs home

Getting started

  • Quickstart
  • Claude Code
  • Cursor

Learn

  • How memory works
  • Search & recall
  • Shared across agents
  • Grounded facts

Reference

  • MCP tools
  • Agent rules
  • Bookmarks
  • Registry & CLI
    1. Sign in
    2. Publish
    3. Install
    4. Search
    5. Sync
    6. Share
    7. Orgs & teams
    8. Plans

Help

  • FAQ
← BookmarksFAQ →
Docs home

Getting started

  • Quickstart
  • Claude Code
  • Cursor

Learn

  • How memory works
  • Search & recall
  • Shared across agents
  • Grounded facts

Reference

  • MCP tools
  • Agent rules
  • Bookmarks
  • Registry & CLI
    1. Sign in
    2. Publish
    3. Install
    4. Search
    5. Sync
    6. Share
    7. Orgs & teams
    8. Plans

Help

  • FAQ

Docs/Reference

Registry

Registry & CLI

Publish memory as packages other people can install, and keep encrypted backups of your own — all from the memorylayer CLI.

loginSign the CLI ininit · publishShip a packageaddInstall onesearch · infoFind packagessyncEncrypted backupshareLinks & collaboratorsorgTeams & rolesplansWho shares a budget

Sign in

If you saved your key during the Quickstart, you're already signed in. The key lives in ~/.memorylayer/auth.json — outside your projects; never commit it. In CI, set MEMORY_API_KEY instead.

Terminal
memorylayer login --token sk-ml-your-key-here   # checks the key, then saves itmemorylayer whoami                               # key prefix + registrymemorylayer logout

Publish

A package is a versioned snapshot of one namespace. Names are scoped to your username or an org you admin — @you/name. memorylayer init writes the manifest; memorylayer.namespace picks what to export and defaults to the package name.

memory.json
{"name": "@acme/react-patterns","version": "1.0.0","description": "React component patterns for the Acme design system","keywords": ["react", "components", "design-system"],"private": false,"license": "MIT","memorylayer": { "namespace": "react-patterns" }}
Terminal
memorylayer publishmemorylayer publish --bump patch       # 1.0.0 → 1.0.1 (or minor, major)memorylayer publish --tag betamemorylayer publish --access private   # only you and collaborators can installmemorylayer publish --dry-run

Need to pull a version back? Email support@memorylayer.in — yanked versions stay visible in infobut can't be installed.

Install

Terminal
memorylayer add @acme/react-patterns                    # into a namespace of the same namememorylayer add @acme/react-patterns@1.2.0memorylayer add @acme/react-patterns --namespace my-acmememorylayer add @acme/react-patterns --dry-run

Every download is checked against its SHA-512 hash and aborts on a mismatch. Dependencies install first; memories you already have are skipped, changed ones merged. Private packages use your signed-in key.

Search

Terminal
memorylayer search "react hooks"memorylayer search --keyword typescriptmemorylayer info @acme/react-patterns     # details + version history

Sync

sync

A private backup

One namespace, encrypted before it leaves your machine. Only you can read it; it never appears in the registry. For moving between machines.

publish

A package for others

Versioned and installable with add. Listed on the registry unless private. For sharing.

Terminal
memorylayer sync push --namespace work    # remote becomes exactly your local copymemorylayer sync pull --namespace work    # remote merges in; nothing local is deletedmemorylayer sync status                   # every backup: count, size, last push

Push replaces the backup completely, so pull first if another machine pushed since. Backups are AES-256-GCM encrypted with a key derived from your API key; pass --key "passphrase"to use your own — and the same one on every push and pull. Signed in on the web? They're listed under Encrypted backups on the registry.

Share

Terminal
# a link: 7 days by default, prints a ready-to-paste add commandmemorylayer share @acme/internal-kbmemorylayer share @acme/internal-kb --expires 48 --max-uses 5 # a collaborator: installs with their own key, can't publishmemorylayer share @acme/internal-kb --add sk-ml-their-keymemorylayer share @acme/internal-kb --remove sk-ml-their-keymemorylayer share @acme/internal-kb --list

Orgs & teams

An org gives a team one scope — @acme/… — without sharing a key. Whoever creates it is admin.

Terminal
memorylayer org create acme "Acme Inc"memorylayer org add-member acme sk-ml-their-key [--role admin]memorylayer org set-role acme sk-ml-their-key adminmemorylayer org remove-member acme sk-ml-their-key

member

Installs and publishes

Can install and publish packages under @acme/…, public or private.

admin

Also runs the org

Adds and removes members, changes roles, and creates share links for org packages.

Plans

A plan belongs to an API key. Every machine and agent using that key shares its monthly budget; org members each keep their own. One budget for a whole team is Enterprise. Limits per plan are on MCP tools and pricing.

← PreviousBookmarksNext →FAQ

Something missing or wrong? Email support@memorylayer.in or open an issue.