# Ai-memory

Ai-memory is persistent, shared long-term memory for AI coding agents such as Claude Code, Codex, Cursor, and OpenCode. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/8913/ai-memory

## Description

Ai-memory is persistent, shared long-term memory for AI coding agents such as Claude Code, Codex, Cursor, and OpenCode. It records every agent session, builds a searchable knowledge base of what your agents have learned, and passes that context via a Model Context Protocol (MCP) server when you switch agents or start a new session. Designed for homelabbers who use multiple AI coding tools and want to stop re-explaining project architecture and decisions in every new session.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

65/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 2 days ago)
- Popular: 84 (16,154 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Security check: 0 (8 serious findings, 6 minor, CI, tests)

## Security check

8 serious findings: A Slack token is committed in the source code; A private key is committed in the source code; An AWS access key is committed in the source code; A Slack token is committed in the source code; A private key is committed in the source code; A GitHub access token is committed in the source code; A GitHub access token is committed in the source code; Uses zip 8.6.0, which has a known critical vulnerability.
Automated checks on commit 443a982, 19 Nov 2026. Not an audit.

## Links

- Unraid: https://ca.unraid.net/apps/ai-memory-1u3k5st1iwk1m9?q=ai-memory
- GitHub: https://github.com/akitaonrails/ai-memory
- Official website: https://aimemory.sh

## Common questions

### How do MCP clients authenticate to ai-memory?

Connect them to the server's /mcp endpoint on port 49374 and send the auth token as a Bearer token. On a machine with the CLI, use ai-memory install-mcp --client claude-code --auth-token YOUR_TOKEN.

### Why can ai-memory reject a client request?

The allowed hosts configuration must list every hostname or IP clients use to reach the server. Requests with any other Host header are refused.

### How do I expose the web console securely?

The /web console needs HTTPS, so put a reverse proxy in front and set Secure cookie to true.

### Are multi-user and audit features locked behind a paid plan?

No, multi-user auth, per-person attribution, and an audit log are built in and are not a paid tier.

---
Source: Our Local Host (https://ourlocalhost.com/app/8913/ai-memory), the self-hosted and open-source app directory.
