Skip to Content
agentmemory

agentmemory: A Memory Server That Records Agent Sessions and Feeds Them Back

agentmemory records what coding agents do and hands the relevant pieces back in the next session. Agents such as Claude Code, Codex, Cursor and Gemini CLI reach it through a plugin, REST or MCP: prompts, file reads and shell commands are stored as observations, and lasting rules or decisions are saved as separate memories. Ordering agentmemory hosting gets you that server on a VDS of your own, at one HTTPS address your agents can reach from any machine.

The same address serves a viewer where you browse memories, sessions, the project profile and session replays. There is no username. The password from the handover is agentmemory's access key, and both the viewer and your agents send it as a Bearer header. No language model or embedding provider comes with the install, so search runs on keywords (BM25).

Install

From $15/mo

Comes with

  • Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
  • Docker
  • HTTPS address
  • Admin account set up during installation
  • Full root access
agentmemory0.9.34
agentmemory viewer Memories list with four records, their types and concept tags

Installation

Inside this agentmemory install

  • Prebuilt image, fixed release

    agentmemory 0.9.34 uses the ready-made image upstream pushes to Docker Hub, tied in our compose file to a version tag and its sha256. Memories, the secret and the worker cache sit on a persistent Docker volume mounted at /data.

  • Data only with the key

    The viewer page loads for anyone but carries no data; REST and MCP calls need the Bearer key. On our test install a request with no key and one with a wrong key got 401, the right key got 200.

  • One address for both

    The browser viewer and your agents' REST and MCP calls go to the same HTTPS address; the viewer passes API requests to the server inside the container. No second port to open.

  • Search without a model

    No language model or embedding provider is configured. Records go into a keyword index (BM25) and search works from that. Summaries, consolidation and the knowledge graph need a model and stay off.

  • MCP built in

    agentmemory speaks MCP over Streamable HTTP at /agentmemory/mcp. Through our own address, an initialize request with the key answered 200 and one without it 401.

  • Small footprint

    Idle on our test install, agentmemory used 143 MiB of memory; turning on the local embedding model would raise that. Plans for it start at 1 GB of memory.

Screens

The agentmemory viewer on our test install

Click a screenshot to see it larger.

  • Memories: four records saved for a made-up harbor-billing project, with their types (fact, workflow, architecture, pattern) and concept tags.
  • Sessions: two agent runs; the selected one lists its observation count, tools used (Read, Edit, Bash) and the file it touched.
  • Replay: a session's prompt and tool results in time order, with play, step and speed controls.
  • Profile: top concepts and most-touched files for the project, plus a rule inferred from those files.

Use cases

Why keep agentmemory on a remote server

  • Several agents, one history

    Run Claude Code and Codex on the same project, or work from two computers, and both write to and read from the same server. The README describes scoping records by agentId, shared or isolated.

  • Context for the next run

    When an agent starts a session, agentmemory returns the project profile and related records as context. Opening our second test session brought the first session's prompt and file operations back in the response.

  • Write a project rule once

    Store a standing decision such as "amounts are summed in integer cents" through /agentmemory/remember with a type and concept tags. It appears under Memories, keeps versions and becomes searchable.

  • See what the agent did

    Sessions and Replay lay out a run's prompt, tool calls and touched files in order, which is where you trace the moment an agent went off course.

Steps

From order to the first memory

  1. 01

    Choose a plan

    With agentmemory already ticked, choose where the server lives and a plan that meets its minimum. The lowest-priced fit is $15.

  2. 02

    Install and key checks

    After payment the server is prepared and agentmemory started. We probe the viewer page, API calls with no key, a wrong key and the right key, and a request under a foreign host name. When each probe answers as expected, activation normally follows.

  3. 03

    Connect your agent

    Open the address and paste the password from the link into the viewer's AGENTMEMORY_SECRET box. Give your agent's plugin or MCP settings the same address and password.

Packages

Packages for agentmemory

Only packages that meet the minimum agentmemory needs are listed; prices are monthly.

  • USA 1

    Lowest-priced package that runs this app

    $15/mo

    4 vCPU4 GB RAM30 GB NVMe

    Install
  • USA 2

    $18/mo

    4 vCPU6 GB RAM40 GB NVMe

    Install
  • USA 3

    $22/mo

    4 vCPU8 GB RAM50 GB NVMe

    Install
  • USA 4

    $27/mo

    4 vCPU10 GB RAM60 GB NVMe

    Install
  • USA 5

    $33/mo

    4 vCPU12 GB RAM70 GB NVMe

    Install
  • USA 6

    $37/mo

    6 vCPU14 GB RAM80 GB NVMe

    Install
  • USA 7

    $40/mo

    6 vCPU16 GB RAM90 GB NVMe

    Install
  • USA 8

    $46/mo

    8 vCPU18 GB RAM100 GB NVMe

    Install

Technical

Technical details

App version
0.9.34
Operating system
Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
Minimum CPU
1 vCPU
Minimum memory
1 GB
Minimum disk
10 GB

The address, the access key and connecting an agent

agentmemory normally runs on localhost on the machine where the agent works. Here it lives on your VDS behind HTTPS, and your agents reach it over the internet. That is why agentmemory's own protection stays switched on: an access key (AGENTMEMORY_SECRET) and an allow-list of host names. The key is your handover password, the list holds only your address, and requests under any other host name get 403.

The viewer keeps the key in the tab's session storage. On the first visit a "Viewer authorization required" box appears; enter the password, press Unlock and the screens fill in.

  • Claude Code plugin

    According to the README, enabling the plugin makes Claude Code ask for the remote server's https:// URL and secret, and the plugin's hooks and MCP server read both from there. We have not tried this with a Claude Code install.

  • Standard MCP block

    Clients that read an mcpServers block (Cursor, Claude Desktop, Gemini CLI and others) run the @agentmemory/mcp package with AGENTMEMORY_URL and AGENTMEMORY_SECRET in its environment. The URL is your HTTPS address. Not tested with a client on our side.

  • Direct HTTP MCP

    Clients with Streamable HTTP support connect straight to /agentmemory/mcp on your address with an Authorization: Bearer header, no shim package needed. We measured this path with an initialize request through our own address.

  • REST

    You can write from your own scripts as well. Our test data came from /agentmemory/session/start, /observe, /session/end and /remember calls carrying the Bearer key, and we searched it with /agentmemory/smart-search.

On and off in this agentmemory install
FeatureStateNote
ViewerOnPage opens without a key; data needs the key
REST APIOnSame address; every call, health included, needs the key
MCP (Streamable HTTP)On/agentmemory/mcp
Keyword search (BM25)OnNo model needed
Vector searchOffNo embedding provider set
Summaries, consolidation, knowledge graphOffNo language model provider set
TelemetryOffIII_TELEMETRY_ENABLED=false

Where the data lives and adding models later

  • Persistent volume

    Memories, sessions, index data and the secret itself are written to /data in the container, a persistent Docker volume on the server. They survive a container restart; agentmemory's deployment notes say to back up /data before upgrading or removing the volume.

  • Secret scrubbing

    The README says API keys, bearer tokens, PEM private key blocks and credentials embedded in URLs are redacted before anything is stored. We did not test this separately, but keep in mind that secrets an agent sees could leave traces here.

  • What the viewer warns about

    The Health screen states that no language model provider is configured, so summaries, consolidation and graph extraction are off while search still works. The "6 FEATURES OFF" badge in the top bar counts those switched-off features.

  • Adding a model

    Per agentmemory's docs, summaries and compression need AGENTMEMORY_LLM_PROVIDER plus that provider's key, and vector search needs EMBEDDING_PROVIDER; a key on its own turns nothing on. Adding these variables on this install is something we have not tested.

Changing the key and updating

  • The access key

    The altinsoft-app-password tool is not part of this recipe. On start-up the container takes its key from AGENTMEMORY_SECRET in .env, so a new key means a new value on that line and a container restart. That change was not exercised in our tests. Every connected agent then needs the new key too.

  • Seeing the first key again

    Request the handover details again from your server's app card in our customer panel; the link you receive shows the key set at install time.

  • Upgrading

    No scheduled job swaps the image; the release you got stays until you change it. agentmemory's Docker notes ask for a backup of /data before an upgrade. Take the backup, read the release notes, and pick the moment yourself.

FAQ

Frequently asked questions

9 questions

What comes with the handover? Is there a username?

You get the address in the handover e-mail, and the key itself behind a link in it that works only once. No username: the password is agentmemory's access key. It goes into the AGENTMEMORY_SECRET box in the viewer and into the secret field of your agents' settings.

Which agents does it work with?

The README names Claude Code, GitHub Copilot CLI, Cursor, Gemini CLI, Codex CLI, Hermes, OpenClaw, pi and OpenCode, and MCP clients in general. We checked the install with REST and direct HTTP MCP calls; we did not hook up an agent client.

Do I need a language model key?

Not for saving records or keyword search; on our test install we stored and searched without one. Session summaries, consolidation, the knowledge graph and vector search need a provider and are off here.

Can I lose my records?

Not on a container restart: /data is a persistent Docker volume on the server. Deleting the VDS or removing the volume would lose them, so back up that folder before upgrades.

Can someone else open the viewer?

The page shell loads for anyone, but there is no data in it; memories and sessions arrive only with the key. Whoever has the key sees and can write everything, as agentmemory has no per-person accounts.

My agent is local and the server remote. Does latency matter?

agentmemory's agent hooks send an observation to the server on tool calls. The README says observations are spooled locally when the server cannot be reached and sent later. We have not run an agent against a remote server; what we measured is that individual REST calls returned successfully.

How do I change the key?

There is no command for it; the AGENTMEMORY_SECRET value in the .env file is changed and the container restarted. We have not tried this. Afterwards the viewer and every agent need the new key.

Which agentmemory release do I get?

The release live in our catalog when your server is set up. Today: 0.9.34. The viewer shows the installed version in its top-left corner; ours read v0.9.34.

Suppose the install stalls?

The service opens once the viewer and key checks pass. If a step stalls you will see it in the panel; our support team restarts the install or leaves you the server without agentmemory, and tells you by e-mail.

Catalogue

agentmemory

Get agentmemory installed on your server

Pick your package and pay; the app's installation starts with your order.