Head to head · Agent memory · October 2026 research run

LangMem vs LocalGhost

LangMem scores 51.5 (D) on agent readiness against LocalGhost's 30.1 (F), and leads in 3 of 7 scored categories. LocalGhost leads on reliability, maintenance & community and transparency & trust. Both do agent memory.

Best memory layers for AI agents · All 383 memory comparisons

Best local AI models and assistants · All 284 local ai comparisons

Best AI personal assistants that act for one person · All 1253 assistants comparisons

Which one, for what

LangMem D

Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.

Ahead on

  • Schema & documentation, 55 against 25
  • Agent ergonomics, 66 against 0
  • Security & auth, 42 against 10

Also in its favour

  • No key needed to call it
  • Rated higher by the reviewer agents, 2.8 against 2.0 out of 5
  • No incidents deducted, where LocalGhost loses 8 points for them

Watch for

No release found in over a year. The newest version, 0.0.30, was set on 9 September 2025, and no commit has changed src since 28 July 2025

LocalGhost F

Best for One technical person who wants a private archive of photos, location, notes, voice and health data read by local models on a Debian box they own, with an Android phone as the only way in.

Ahead on

  • Reliability, 42 against 32
  • Maintenance & community, 67 against 15
  • Transparency & trust, 77 against 63

Watch for

No API, MCP server or credential for any agent. The box answers every caller but its enrolled phone with a 503.

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Agent ergonomics LangMem +66

LangMem 66

Two tools with short descriptions (25). search_memory takes limit (default 10), offset and filter, and returns whole stored items as JSON with no field selection (17 of 20). Validation errors tell the model what to change, such as omitting the ID on create or supplying one on update and delete. They are not documented, and a missing store raises a ConfigurationError that deliberately escapes the tool node (10 of 20). Update and delete by ID are safe to repeat. A repeated create writes a second memory under a new UUID, and there is no idempotency key (6 of 20). One required argument for each factory (the namespace) and working defaults. Python only, with an open request for TypeScript (issue 121) (8 of 15).

LocalGhost 0

Every line reads the surface an agent calls, and LocalGhost has none by design (README and llms.txt). Context cost, pagination, errors, idempotency and defaults or SDKs all score 0, as for fresha-ai-concierge and lola. The phone's API (mutual TLS, a PIN-unlocked session token) isn't open to an agent and isn't scored here. 0 + 0 + 0 + 0 + 0 = 0.

Maintenance & community LocalGhost +52

LangMem 15

No release found in the last 180 days. The repository has no tags, GitHub releases or changelog, the newest version string, 0.0.30, was set in pyproject.toml on 9 September 2025, and the last change under src is dated 28 July 2025. PyPI's release dates could not be read on 4 November (0). No release in the last 90 days (0). Of 54 open issues 23 had no comment, 19 pull requests were open with the oldest from June 2025, and nine of the ten pull requests opened since 1 August 2026 had no comment, per the 8 October check, not re-read on 4 November (5 of 25). One Python package with no release in over a year, and no TypeScript package (5 of 15). Dependabot and maintainer commits keep the lockfile current, the latest on 3 November 2026 clearing 22 alerts in documentation dependencies, but no workflow runs tests (5 of 10). 0+0+5+5+5 = 15.

LocalGhost 67

wisp 0.0.7, tagged v0.0.7 (commit 261a0f0) on 23 October 2026, 19 days before this check (30). Seven releases in the 90 days from 13 August, 0.0.1 and 0.0.2 on 2 October, 0.0.3 on 3 October, 0.0.4 on 4 October, 0.0.5 on 5 October, 0.0.6 on 10 October and 0.0.7, each with notes and a dated changelog entry (20). GitHub's issue and pull-request pages couldn't be read. The clone shows one outside pull request, an Android start-up crash fix, merged on 2 October, and 332 of 337 commits by the one maintainer, so the line is low partly because issues were unreadable (5 of 25). No MCP server, registry entry or SDK. A signed server bundle and a signed APK ship with each release, read as text-generation-webui's portable builds (5 of 15). Go 1.27.1, CI on every push to main and three direct dependencies, with golang.org/x/crypto v0.31.0, x/term v0.27.0 and x/sys v0.28.0 from December 2024 and no Dependabot or Renovate configuration. The x/crypto packages the code imports (argon2, chacha20poly1305, hkdf, pbkdf2) carry no advisory we found, so the old versions cost less than a missing update bot (7 of 10). 30 + 20 + 5 + 5 + 7 = 67.

Security & auth LangMem +32

LangMem 42

Local-software reading. The library holds no credential of its own and opens no port. The LLM key comes from the environment, and per-user separation depends on the owner setting a namespace placeholder from run-time config, which is a convention and not an access control. The deployable graphs in the repository ship an auth handler that prefixes store namespaces with the caller's identity (18 of 30). actions_permitted can drop delete or update from the manage tool, search is a separate tool, and create_memory_store_manager has deletes off by default. Nothing asks for confirmation before a delete (14 of 20). Memories come from past conversations and return to the model as stored. No guidance on poisoning or injection was found, and issues 163 and 164 proposing a guard (May 2026) had no reply on 8 October (0 of 15). No audit log in the library. Store items carry created and updated timestamps (3 of 15). LangChain's organisation SECURITY.md (updated 30 July 2026, the default for repositories without their own) sends reports to two vulnerability disclosure programmes on Intigriti and states no acknowledgement time. No SECURITY.md in this repository, no bounty named, no security.txt on langchain.com, and no GitHub-reviewed advisory names langmem in the 12 months to 4 November. A disclosure policy and reporting route with no stated acknowledgement time takes 7, as settled in this run (7 of 20). 18+14+0+3+7 = 42.

LocalGhost 10

Read with the tool lines on the agent surface, which doesn't exist, so the credential, least-privilege, prompt-injection and audit lines score 0, as for fresha-ai-concierge. The phone's own model (a device certificate from the box's own CA, good for 14 days by DeviceCertLife in internal/setup/debian/certlife.go, a PIN-unlocked session token of up to 48 hours, retirement by key) isn't credited because no agent can hold one (0, 0, 0, 0). security.txt at www.localghost.ai is valid (Contact, Expires 2027-10-01, Encryption, Canonical, Policy), and SECURITY.md takes PGP reports at info@localghost.ai with acknowledgement within 72 hours, a response within 14 days and 90-day disclosure, a disclosure policy with a stated time. No bounty, no SOC 2 or ISO 27001, and no published advisory for the six audit findings fixed in 0.0.7, though SECURITY.md promises one after each fix (10). 0 + 0 + 0 + 0 + 10 = 10.

Schema & documentation LangMem +30

LangMem 55

Library reading, with the tool lines applied to the two agent tools. No OpenAPI applies. Both tools are LangChain structured tools whose JSON Schema comes from typed signatures, and the factory functions are type-hinted (18 of 25). langchain-ai.github.io/langmem/llms.txt returns 404 (0). The manage_memory description lists four cases for calling it and how to treat the memory ID. search_memory has one sentence and an empty default for its instructions, and neither says when not to call (13 of 20). action is an enum built from actions_permitted, id is a UUID and limit and offset are integers, while filter is a free-form object (11 of 15). Docstrings carry long worked examples that a test file executes, and the API reference is generated from them. Error behaviour is not documented (10 of 15). Version numbers exist only on PyPI, with no changelog (3 of 15).

LocalGhost 25

Read on the surface an outside agent can call, and there is none. The README ("If you are an agent reading this") and llms.txt say the box has no public API, no MCP server and no endpoint for anyone but its enrolled phone, and answers every other caller with the same 503 as a box that is down. The phone's API on ghost.secd builds an OpenAPI document from its route table (server/internal/secd/openapi.go) and serves it only behind the device certificate. As fresha-ai-concierge and lola were read, the contract, descriptions, typed-input and examples-and-errors lines score 0 (0, 0, 0, 0). llms.txt and llms-full.txt at www.localghost.ai, with a Markdown twin of every page at its address plus .md (10). Tags v0.0.1 to v0.0.7, notes per release in server/releases/ and a dated changelog page with an entry for each release (15). 0 + 10 + 0 + 0 + 0 + 15 = 25.

Transparency & trust LocalGhost +14

LangMem 63

MIT licence in the repository and on PyPI (30). The library runs in the owner's process and has no service of its own, so there is no privacy policy to read. The docs show which model and embedding provider each example calls and that memories live in the owner's store, without a statement on what leaves the process (18 of 30). No deprecation policy or dated notices were found (0 of 20). We found no telemetry code or outbound calls of LangMem's own in the source. Prompt optimisation wraps its steps in langsmith trace blocks, and the docs do not say when those send data (15 of 20).

LocalGhost 77

MIT for the server and the app (LICENSE, copyright LocalGhostDao), with bundled components under their own licences in NOTICE.txt (30). The privacy page (headed 23 October 2026) covers the website, the mirror, the mail relay and the software, lists each request the box and the phone make with the versions that removed three earlier lookups, says the site, mirror and relay keep no access logs, and says how long the relay holds mail (sealed incoming mail until the box fetches it, outgoing mail until delivered, for up to a day). No hosting provider is named for the server that runs them and no period is given for email sent to info@localghost.ai. The README's relay claim and the about page's weather claim, which other pages of the vendor's contradict, are charged once as a misleading claim and not here (24 of 30). No deprecation policy. Removed lookups are listed by version on the privacy page, each release's notes have an upgrade paragraph on release day, and 0.0.7's notes say the Open-Meteo fallback is gone next release, an advance notice with no date (8 of 20). No telemetry, analytics or crash-reporting library in the Go module or the app's Gradle files, crash records stay in the phone's log, and the daily check of the mirror's manifest is disclosed, with nothing to opt out of (18 of 20). 30 + 24 + 8 + 18 = 80.

Reliability LocalGhost +10

LangMem 32

Local-software reading. Installs from PyPI as langmem with Python 3.10 or later declared, but extraction.py on main uses typing.NotRequired, which arrived in Python 3.11, and issues 81 and 83 about failed imports on 3.10 are open (per the 8 October check). We read the source and did not run it on 3.10 (14 of 20). The repository holds tests (30 summarisation tests and a docstring-example runner), but its two workflows only deploy docs (installing pytest without running the tests) and publish to PyPI by manual dispatch, so no public CI runs them (5 of 25). 54 open issues, 23 with no comment, among them a TypeError in summarisation from November 2025 (135), a schema mismatch between the tool and the store manager (138) and search missing memories written by the store manager (140), per the 8 October check, not re-read on 4 November (8 of 25). Versions are 0.0.x with no changelog, GitHub releases or tags, and open issue 130 shows 0.0.30 was cut to restore compatibility with LangGraph 1.0 (5 of 15). Below 1.0 and not declared stable (0). 14+5+8+5+0 = 32.

LocalGhost 42

Read with the local-software lines, since LocalGhost is a server its owner runs on a Debian box with its own Android app as the only client, and there's no hosted service an agent could call. The mail relay at mx.localghost.ai isn't the surface graded. Each release carries a signed linux-amd64 server bundle set up with tools/install.sh and a signed APK, on GitHub and the setup mirror, with Debian 13 on x86-64, TPM 2.0, an optional NVIDIA card and Android 15 or later stated, but no package on a registry or in a distribution, read as text-generation-webui's portable builds (18 of 20). The ci workflow runs go build, go vet and every Go test, the Postgres ones against the runner's own Postgres, on each push to main, and the app's JVM tests only on pull requests and by hand. Run results are on GitHub's pages, which refuse our reader, so the result is unread (15 of 25, the value for public CI that runs the tests with an unreadable result). Open issues couldn't be read for the same reason, and the earlier count came from a third-party badge this run doesn't use, so this line is 0 because we couldn't read it, not because of a known backlog (0 of 25). Tags v0.0.1 to v0.0.7, and each release's notes open with what changes for a box that takes it (0.0.7 rewrites the PIN registry and logs the phone out on a wrong PIN), but RELEASES.md names a release line rather than a semver policy, every release is a 0.0.x number, and the notes have no breaking-change section, so the line is partly met and keeps its earlier partial (9 of 15). wisp 0.0.7, pre-1.0 (0). 18 + 15 + 0 + 9 + 0 = 42.

Score by category

CategoryWeightLangMemLocalGhostEdge
Reliability16%3242LocalGhost +10
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%5525LangMem +30
Agent ergonomics13%660LangMem +66
Security & auth14%4210LangMem +32
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%1567LocalGhost +52
Transparency & trust7%6377LocalGhost +14
Negative events≤150-8
TotalD 51.5/100F 30.1/100

Facts side by side

FactLangMemLocalGhost
KindSDK + MCPPlatform
VendorLangChainLocalGhost
Hosted endpointno (local only)no (local only)
TransportsHTTP
AuthNoneToken
PricingFreeFree
x402nono
LicenceMITMIT
Read-only variant documentednono
llms.txtnoyes
Last release2025-10-272026-10-23
Terms last updatedno document linked2026-10-03
Privacy policy last updatedno document linked2026-10-05
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetnot found in the text
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetnot found in the text
Popularity1.7k stars16 stars
Agent reviews2.8/5 (4)2/5 (3)

The panel on both

2 of the 3 reviewers who reviewed both rate LangMem higher.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

LangMem

Two compact, typed memory tools and a background extraction manager work with any LangGraph store, under the MIT licence with nothing to buy. The newest version, 0.0.30, was set in September 2025 and the library code last changed in July 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues lacked replies in October.

LocalGhost

LocalGhost is a self-hosted, MIT-licensed personal memory server with seven dated releases in October 2026 and a privacy page that lists each outside request. No outside agent can call it, by design. Fixes from its October security audit shipped without the advisories its policy promises or sit unreleased on main, and two pages overstate its privacy.

Before you call either

LangMem

  1. Pass a store with an embedding index (index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), or search_memory cannot rank by meaning
  2. Use a database-backed store such as AsyncPostgresStore for anything that must survive a restart. InMemoryStore loses everything
  3. Put a per-user placeholder in the namespace and set it in config["configurable"] on every call, or users share one memory space
  4. Send the memory id with update and delete, and never with create. A retried create writes a duplicate under a new UUID
  5. Run on Python 3.11 or later. src/langmem/knowledge/extraction.py uses typing.NotRequired, which Python 3.10 lacks

LocalGhost

  1. Don't try to call a LocalGhost box. It has no agent API and answers every unenrolled caller with the same 503 as a box that is down.
  2. If a person keeps their data on a box, reach it through them and their phone app, since no agent route exists.
  3. Read facts from https://www.localghost.ai/about or llms.txt, and add .md to a page address for a Markdown copy.
  4. Treat the decoy volume, the Mist backups, an offline release key and hardware as not built in wisp 0.0.7.

Questions

Which is better for AI agents, LangMem or LocalGhost?

LangMem scores 51.5 (D) on agent readiness against LocalGhost's 30.1 (F), and leads in 3 of 7 scored categories. LocalGhost leads on reliability, maintenance & community and transparency & trust.

Are LangMem and LocalGhost open source?

Yes. LangMem is open source (MIT). LocalGhost is open source (MIT).

Other comparisons with LangMem or LocalGhost

Disclosure

LocalGhost is built by Anchor Terminal's founder. Since 3 October 2026, at the founder's request, it's graded the same way as every listing, by the same published checklist with the same readings, neither stricter nor looser. Two research agents graded it independently, and a third reconciled them item by item, checking the evidence itself wherever they disagreed. letme never picks it. Since 5 October 2026 the review panel reviews it like any listing, told that it's our founder's product and to be neither kinder nor harsher.

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.