Neonmem Server
Shared project memory for a team's agents
One server holds a team's brains. Agents connect over MCP, ask before they act and record what they learn; people manage the same brains from a browser console and a command line.

Get started
From the zip to an agent asking its first question takes five steps.
-
Download and unzip
The Windows x64 zip carries its own Java runtime. The portable zip runs on any system with Java 25 or later.
# Windows: unzip neonmem-server-1.1.0-windows-x64.zip # Linux, macOS: unzip neonmem-server-1.1.0.zip cd neonmem-server-1.1.0
-
Install the embedder
The embedder is a separate package: IBM Granite Embedding 30M English, 47 MB, Apache-2.0.
model-installdownloads it from the Neonmem releases, checks its SHA-256 and unpacks it intoembedders/. Without an embedder, the server ranks memories by their words and does not import documents. To use an embedding service such as Voyage AI instead, setneonmem.embedding.provider=http.# Windows bin\model-install.bat # Linux, macOS bin/model-install.sh
-
Start the server
It listens on port 7700 for HTTP and 7443 for HTTPS, and keeps its brains in
data/.# Windows bin\neonmem.bat # Linux, macOS bin/neonmem.sh
-
Create the first admin
The first account is created on the server's machine:
add-userasks for a name and a password and writes the account, and the running server reads it at its next request.$ bin/add-user.sh Username [admin] : Password : Re-enter Password : Is 'admin' a server admin, who can create brains and users? (yes/no) [yes] : Added user 'admin' (server admin) to data/identity.enc.
-
Connect an agent
Sign in at
http://localhost:7700, open a brain, and choose Connect an agent. The page issues a token for that brain and writes the configuration for Claude Code, Claude Desktop, Cursor and VS Code. The agent then has one tool,neonmem:ask the standing rules, dead ends, record and documents that bear on a question remember a decision, rule, dead end, plan or observation, recorded in the brain status what the brain holds
What the server does
Every function is available from the console, the command line and the HTTP API, which share one management model.
Brains
Each brain is one .neonmem cartridge with an append log. A server holds many; a brain from Neonmem Workspace or the SDK is uploaded as it is.
Dynasties
Brains in a tree. A project's agent is answered from the project and then its ancestors, and a newer rule in the nearer brain overrides an older one on the same subject.
Roles and agent tokens
Reader, writer, admin and owner per brain. An agent token is bound to one brain and is capped by the role its issuer holds at the time of each request.
Uploads
Files and whole folders from the browser or the command line, PDFs page by page, memories as JSON, and public git repositories from hosts an admin allows.
Process layer
Decay, plasticity, consolidation of near-duplicates, promotion of passages that keep answering, revision and a nightly replay. Changes that need a decision become proposals.
Reports
What a brain is asked, which questions it could not answer, who asks, and the health of its memories.
Brain views
A 3D view of the brain, a graph of memories and edges, a memory browser and the imported passages with their sources.
Operations
Backups while running, restore of one brain or the whole server, TLS, per-address rate limits and an audit log of every change.
Command line
A prompt modelled on application-server CLIs: cd and ls over the management model, operations, and every brain command. On the server's machine it signs in through local authentication.
How an answer is put together
Rules first, then dead ends, then the record
An ask embeds the question once and gathers, from the brain and each of its ancestors, nearest first:
- standing rules
- the rules that bear on the question, with what they override
- dead ends
- approaches recorded as tried and failed, with their cause
- record
- decisions, conclusions and observations above the score floors
- documents
- imported passages, quoted and cited, kept apart from the project's own record
When nothing clears the floors, the nearest memory is given and the answer says it is a weak match.

The command line
bin/neonmem-cli opens a prompt that shows the server and the node of the management model it is at. Scripts pass commands with --command, --commands or --file and sign in once per run.
$ bin/neonmem-cli.sh --connect Connected to localhost:7700 as $local (local authentication) [neonmem@localhost:7700 /] ls brain handbook payments [neonmem@localhost:7700 /] cd brain=payments [neonmem@localhost:7700 /brain=payments] upload ./runbooks Uploaded 14 files; importing... [neonmem@localhost:7700 /brain=payments] :backup [neonmem@localhost:7700 /brain=payments] quit

Measured retrieval
LongMemEval (Wu et al., ICLR 2025) labels the sessions and turns of a long chat history that hold each answer. These figures measure retrieval only: whether the labelled evidence ranks in the first five. The same 30M-parameter embedder is used for every arm.
| Dataset | Level | BM25 | Cosine | Neonmem |
|---|---|---|---|---|
| LongMemEval_S, about 50 sessions per question | session, recall@5 | 0.943 | 0.945 | 0.976 |
| turn, recall@5 | 0.821 | 0.838 | 0.881 | |
| LongMemEval_M, about 500 sessions per question | session, recall@5 | 0.883 | 0.811 | 0.900 |
| session, all evidence in the first 5 | 0.706 | 0.568 | 0.685 |
419 questions scored per dataset. On the larger haystack BM25 finds all of a question's evidence more often than Neonmem does; the method, every arm and the limits are in the retrieval results.
Download Neonmem Server 1.1.0
Released November 28, 2026, under the PolyForm Noncommercial License 1.0.0; commercial use needs a commercial licence.
Windows x64
With Java runtime
Unzip and run. 122 MB.
sha256 1ff7407af527fff5d7cf631f64ed837c
f056f8c0e23ca8c1ce539e7401bcf0c7
Any system
Portable
Runs with Java 25 or later from JAVA_HOME or the PATH. 86 MB.
sha256 2fff0040b9453ce9c36e05493ef3afe6
ba7e699383878a7251d1d4a3874b9f7f
Requirements
- system
- Windows x64 with the runtime zip; Windows, Linux or macOS with Java 25 or later for the portable zip
- memory
- about 400 MB with the embedder loaded and a brain of 760 memories open; brains are opened on demand
- ports
- 7700 (HTTP) and 7443 (HTTPS), set in
config/application.properties - embedder
- optional: IBM Granite Embedding 30M English, a 47 MB package installed by
bin/model-install, or an embedding service over HTTPS