AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Memro — the memory layer for AI context. Server, SDKs, MCP server and integrations.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Give your AI agents persistent memory across sessions: agent identity, memory storage and hybrid retrieval through an API, SDKs and MCP.
License (Source Available)
Memro is licensed under the PolyForm Noncommercial License 1.0.0.
- 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 or an enterprise commercial license.
- How to Get a Commercial License: Visit memro.co/pricing or contact
[email protected].
Repository Notice:
github.com/memrohq/memrois the single public repository for Memro. It contains the Go server, official SDKs (Python, JavaScript/TypeScript, Go), Model Context Protocol (MCP) server, and the CLI.
# 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?"
Run the full Memro API server and PostgreSQL with pgvector on your own infrastructure:
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
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.)
http://localhost:8081http://localhost:517355432 on localhost (Option 1 clone) to avoid port 5432 collisions with existing local Postgres setups.METRICS_TOKEN (min 32 characters) in .env to protect GET /metrics and GET /stats/cache; the server logs a warning if unset.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.
┌──────────────────────────────────────┐
│ 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.
memrohq/memro holds all components in one mono-repository:
| Path | Description | Documentation |
|---|---|---|
server/ | Go API server, PostgreSQL + pgvector engine | Self-Hosting Guide |
cli/ | One-command connector (npx memro-cli connect) | CLI Documentation |
mcp/ | Model Context Protocol server (stdio & SSE HTTP) | MCP Guide |
sdk/python/ | Official Python SDK (PyPI: memro) | Python SDK Guide |
sdk/js/ | Official JavaScript / TypeScript SDK (npm: @memro/sdk) | JavaScript SDK Guide |
sdk/go/ | Official Go SDK (github.com/memrohq/memro/sdk/[email protected]) | Go SDK Guide |
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.
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.
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.
Step-by-step guides for connecting coding tools with full session-restart memory verification:
examples/claude-code/)examples/cursor/)examples/codex/)Memro includes structured primitives and cognitive graphs beyond basic vector search:
semantic (facts), episodic (events/conversations), procedural (runbooks/recipes), or profile (agent guardrails). See Memory Concepts.resolve_conflict(). See Conflict Resolution.Memro publishes empirical evaluations and methodology:
# 1. Start PostgreSQL with pgvector
docker compose up -d db
# 2. Run backend API server
cd server
DATABASE_URL=postgres://memro:memro@localhost:55432/memro go run ./cmd/memro-api
# 3. Run tests
MEMRO_TEST_DATABASE_URL=postgres://memro:memro@localhost:55432/memro go test -race ./...
Please review CONTRIBUTING.md and SECURITY.md before submitting pull requests.
Repository: github.com/memrohq/memro · Documentation: https://memro.co License: Source available under PolyForm Noncommercial 1.0.0. Free for non-commercial use; commercial use requires Memro Cloud or a commercial license.
examples/ |
| Runnable integrations (Claude Code, Cursor, Codex) |
| Examples Index |
bench/ | Reproducible benchmark harness and test suites | Benchmarks Index |
docs/ | Architecture, concepts, API reference, decisions | Documentation Index |