Retrieved article excerpt
Open article Β· Retrieved 2026-11-19T07:22:29.178339+00:00
# Memro: one memory for all your AI coding tools
**Tell one tool once, and they all know.** Claude Code, Cursor, Codex, GitHub Copilot and any MCP client share one long-term memory of your decisions, preferences and project context, across sessions and across tools.
[Cursor forgets the deploy day decided in Claude Code; with Memro, a new Cursor session recalls it: Tuesdays, decided with Claude Code on Monday.](https://github.com/memrohq/memro/blob/main/docs/assets/memro-aha.gif)
```
npx memro-cli connect # sign in and add Memro to every AI tool on this machine
```
- **Shared across tools:** what you tell Claude Code, Cursor recalls tomorrow. No more re-explaining your project.
- **Current, not just similar:** memories are typed, linked and checked for contradictions, so agents recall what's true now.
- **Your team's context too:** sync Slack, GitHub, Linear, Notion and [40+ more](https://memro.co/docs/connectors.html), hosted or self-hosted with Docker.
β **If Memro saves you from re-explaining your project, star the repo (top right): it helps other developers find it.**
[Website](https://memro.co) Β·
[Docs](https://memro.co/docs/) Β·
[Discord](https://discord.gg/ykTeRFRpQP) Β·
[Voice demo](https://memro.co/demo/voice/) Β·
[What broke wiring one memory into 4 AI tools](https://dev.to/subal_bain_059153c5cbc1cc/i-gave-claude-code-codex-cursor-and-copilot-one-shared-memory-heres-what-broke-3g56)
[npm](https://www.npmjs.com/package/memro-cli)
[PyPI](https://pypi.org/project/memro/)
[CI](https://github.com/memrohq/memro/actions/workflows/ci.yml)
[Discord](https://discord.gg/ykTeRFRpQP)
[License: PolyForm Noncommercial](https://github.com/memrohq/memro/blob/main/LICENSE)
**Source-available:** free for personal, research and other non-commercial use, including self-hosting; commercial use runs on [Memro Cloud](https://memro.co/pricing/) or a commercial license.
License details
Memro is licensed under the [PolyForm Noncommercial License 1.0.0](https://github.com/memrohq/memro/blob/main/LICENSE).
- **Free for non-commercial use:** personal study, experiments, hobby projects, research, and testing without commercial application.
- **Commercial use:** using Memro for commercial products or production services requires a managed subscription on [Memro Cloud](https://memro.co) or an enterprise commercial license.
- **Getting a commercial license:** see [memro.co/pricing](https://memro.co/pricing) or contact `[email protected]`.
`github.com/memrohq/memro` is the single public repository for Memro: the Go server, official SDKs (Python, JavaScript/TypeScript, Go), the MCP server and the CLI.
---
## Claude Code plugin
```
/plugin install memro --marketplace memrohq/memro
```
Adds Memro's MCP server and recalls the project's memory at the start of every session. See [integrations/claude-code](https://github.com/memrohq/memro/blob/main/integrations/claude-code).
## Quickstart
### Option A: Memro Cloud with Claude Code, Cursor, or Codex (< 10 lines)
```
# 1. Connect installed agent tools via device login:
npx memro-cli connect
# 2. Check connection status:
npx memro-cli status
```
In your assistant, say: *"Remember that our primary database is PostgreSQL 16 with pgvector."*
Restart your session and ask: *"What database and extensions do we use?"*
### Option B: Self-Host with Docker Compose (Source Available)
Run the full Memro API server and PostgreSQL with pgvector on your own infrastructure:
#### Option 1: Clone the repository (works today)
```
git clone https://github.com/memrohq/memro && cd memro
cp .env.example .env # add OPENAI_API_KEY for hybrid search; set METRICS_TOKEN
docker compose up -d # API on :8081, dashboard on :5173, Postgres on 127.0.0.1:55432
curl http://localhost:8081/health
```
#### Option 2: Prebuilt images (no clone required, after v0.1.0 release)
```
curl -fsSL https://raw.githubusercontent.com/memrohq/memro/v0.1.0/docker-compose.release.yml -o docker-compose.yml && docker compose up -d
curl http://localhost:8081/health
```
*(Note: The prebuilt image one-liner downloads `docker-compose.release.yml` with pinned `ghcr.io/memrohq/memro:0.1.0` and `ghcr.io/memrohq/memro-dashboard:0.1.0` images, available once `v0.1.0` is published.)*
- **Backend API**: `http://localhost:8081`
- **Dashboard**: `http://localhost:5173`
- **Postgres Database**: Port `55432` on localhost (Option 1 clone) to avoid port 5432 collisions with existing local Postgres setups.
- **Metrics Token**: Set `METRICS_TOKEN` (min 32 characters) in `.env` to protect `GET /metrics` and `GET /stats/cache`; the server logs a warning if unset.
- **Verify Signatures**: Verify published container images keylessly using Cosign:
```
cosign verify ghcr.io/memrohq/memro:0.1.0 \
--certificate-identity-regexp 'https://github.com/memrohq/memro/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
```
For complete deployment options, production topologies, and configuration tables, see [docs/self-hosting.md](https://github.com/memrohq/memro/blob/main/docs/self-hosting.md).
---
## See your memory
[The Memro dashboard's memory graph: a million memories, linked by the people, companies and conversations in them](https://memro.co/#graph)
The dashboard's memory graph on an account with a million memories; it draws the newest 5,000 at most at a time. [Watch the tour with sound](https://memro.co/#graph).
## Architecture
```
ββββββββββββββββββββββββββββββββββββββββ
β Clients & MCP Tools β
β Claude Code Β· Cursor Β· Codex Β· SDKsβ
ββββββββββββββββββββ¬ββββββββββββββββββββ
β HTTP REST / Stdio MCP
ββββββββββββββββββββΌββββββββββββββββββββ
β Memro API (Go) β
β Sovereign Ed25519 Identity Β· RRF β
ββββββββββββββββββββ¬ββββββββββββββββββββ
β SQL & Embeddings
ββββββββββββββββββββΌββββββββββββββββββββ
β PostgreSQL 16 + pgvector β
β pgvector Dense Search + tsvector FTSβ
ββββββββββββββββββββββββββββββββββββββββ
```
Memro runs a Go HTTP API backed by PostgreSQL and pgvector. Search queries combine vector cosine similarity and full-text keyword search using Reciprocal Rank Fusion (RRF, $k=60$). Agents authenticate using sovereign Ed25519 keypairs solved via local proof-of-work (private keys never leave the host) or standard Bearer API tokens.
---
## Repository Layout
`memrohq/memro` holds all components in one mono-repository:
| Path | Description | Documentation |
| --- | --- | --- |
| [`server/`](https://github.com/memrohq/memro/blob/main/server) | Go API server, PostgreSQL + pgvector engine | [Self-Hosting Guide](https://github.com/memrohq/memro/blob/main/docs/self-hosting.md) |
| [`cli/`](https://github.com/memrohq/memro/blob/main/cli) | One-command connector (`npx memro-cli connect`) | [CLI Documentation](https://github.com/memrohq/memro/blob/main/cli/README.md) |
| [`mcp/`](https://github.com/memrohq/memro/blob/main/mcp) | Model Context Protocol server (stdio & SSE HTTP) | [MCP Guide](https://github.com/memrohq/memro/blob/main/docs/mcp.md) |
| [`sdk/python/`](https://github.com/memrohq/memro/blob/main/sdk/python) | Official Python SDK (PyPI: `memro`) | [Python SDK Guide](https://github.com/memrohq/memro/blob/main/sdk/python/README.md) |
| [`sdk/js/`](https://github.com/memrohq/memro/blob/main/sdk/js) | Official JavaScript / TypeScript SDK (npm: `@memro/sdk`) | [JavaScript SDK Guide](https://github.com/memrohq/memro/blob/main/sdk/js/README.md) |
| [`sdk/go/`](https://github.com/memrohq/memro/blob/main/sdk/go) | Official Go SDK (`github.com/memrohq/memro/sdk/[email protected]`) | [Go SDK Guide](https://github.com/memrohq/memro/blob/main/sdk/go/README.md) |
| [`examples/`](https://github.com/memrohq/memro/blob/main/examples) | Runnable integrations (Claude Code, Cursor, Codex) | [Examples Index](https://github.com/memrohq/memro/blob/main/examples/README.md) |
| [`bench/`](https://github.com/memrohq/memro/blob/main/bench) | Reproducible benchmark harness and test suites | [Benchmarks Index](https://github.com/memrohq/memro/blob/main/docs/benchmarks/README.md) |
| [`docs/`](https://github.com/memrohq/memro/blob/main/docs) | Architecture, concepts, API reference, decisions | [Documentation Index](https://github.com/memrohq/memro/blob/main/docs/README.md) |
---
## Official SDKs & Runnable Examples
### Python (`sdk/python`)
```
# PyPI (once published) or install from source: pip install ./sdk/python
pip install memro
```
```
from memro import Agent
agent = Agent.create() # local sovereign Ed25519 identity
mem = agent.remember("The billing service was rewritten in Go", type="semantic")
results = agent.recall("billing service language")
print(results[0].content)
```
See runnable script at [`examples/python/register_remember_recall.py`](https://github.com/memrohq/memro/blob/main/examples/python/register_remember_recall.py).
### JavaScript / TypeScript (`sdk/js`)
```
# npm (once published) or install from local build: npm install ./sdk/js
npm install @memro/sdk
```
```
import { Agent } from '@memro/sdk';
const agent = await Agent.create(); // local sovereign Ed25519 identity
const mem = await agent.remember('The billing service was rewritten in Go', { type: 'semantic' });
const results = await agent.recall('billing service language');
console.log(results[0].content);
```
See runnable script at [`examples/typescript/index.js`](https://github.com/memrohq/memro/blob/main/examples/typescript/index.js).
### Go (`sdk/go`)
```
go get github.com/memrohq/memro/sdk/[email protected]
```
```
package main
import (
"context"
"fmt"
memro "github.com/memrohq/memro/sdk/go"
)
func main() {
ctx := context.Background()
agent, _ := memro.CreateAgent(nil)
mem, _ := agent.Remember(ctx, "The billing service was rewritten in Go", nil)
results, _ := agent.Recall(ctx, "billing service language", nil)
fmt.Println(results[0].Content)
}
```
See runnable script at [`examples/go/main.go`](https://github.com/memrohq/memro/blob/main/examples/go/main.go).
---
## Integration Guides
Step-by-step guides for connecting coding tools with full session-restart memory verification:
- [Claude Code Integration](https://github.com/memrohq/memro/blob/main/docs/integrations/claude-code.md) ([`examples/claude-code/`](https://github.com/memrohq/memro/blob/main/examples/claude-code))
- [Cursor Integration](https://github.com/memrohq/memro/blob/main/docs/integrations/cursor.md) ([`examples/cursor/`](https://github.com/memrohq/memro/blob/main/examples/cursor))
- [OpenAI Codex Integration](https://github.com/memrohq/memro/blob/main/docs/integrations/codex.md) ([`examples/codex/`](https://github.com/memrohq/memro/blob/main/examples/codex))
---
## Advanced Memory Features
Memro includes structured primitives and cognitive graphs beyond basic vector search:
- **Typed Memories**: Categorize observations as `semantic` (facts), `episodic` (events/conversations), `procedural` (runbooks/recipes), or `profile` (agent guardrails). See [Memory Concepts](https://github.com/memrohq/memro/blob/main/docs/concepts.md).
- **Temporal Search & Evolution**: Query memories with timestamp weighting and trace how beliefs evolve over time. See [API Reference](https://github.com/memrohq/memro/blob/main/docs/api-reference.md).
- **Conflict Analysis & Resolution**: Identify contradictory facts across sessions and mark superseded memories using `resolve_conflict()`. See [Conflict Resolution](https://github.com/memrohq/memro/blob/main/docs/concepts.md#conflict-resolution).
- **Reasoning Graphs**: Trace memory provenance, causal chains, and dependencies between stored observations. See [Opinionated Guide](https://github.com/memrohq/memro/blob/main/docs/Opinionated_Guide.md).
---
## Measurable Verification & Benchmarks
Memro publishes empirical evaluations and methodology:
- **LongMemEval Benchmark**: Evaluated across 500 questions testing multi-session recall and knowledge updates. See [LongMemEval Report](https://