Memory Engine is permanent memory for AI agents. Store, search, and organize knowledge that persists across conversations.
Were you invited to a shared space? Head to Joining a Space for a teammate-focused walkthrough — logging in, selecting the space, and searching what's already there.
curl -fsSL https://install.memory.build | shThis installs the me binary to ~/.local/bin. Make sure it's on your PATH.
me loginThis opens your browser to sign in via GitHub or Google (an OAuth 2.1 auth-code + PKCE flow over a 127.0.0.1 loopback redirect) and stores your credentials. On a host with a system keychain they're stored there; otherwise they fall back to ~/.config/me/credentials.yaml (mode 0600).
On a headless host with no local browser (an agent harness in a sandbox, a remote SSH session, a container), use me login --device instead: the CLI prints a short URL and code to approve on any device (the OAuth 2.0 device authorization grant), yielding a rolling 7-day session token. See me login.
If you belong to more than one space, pick the active one:
me space list
me space use <slug-or-name>me login <space> selects it in one step, and me whoami shows your identity and active space.
If your CLI is older than the server (or vice versa), me login will tell you and bail out before sending you to the browser. You can run the same check explicitly:
me versionme memory create "PostgreSQL 18 supports native UUIDv7 generation." \
--tree '~/notes/postgres' \
--name uuidv7 \
--meta '{"topic": "database"}'A --tree is required. Put memories the rest of your space should see under /share/*, and personal ones under ~/* (your private home). The optional --name gives the memory a filename-like slug (unique within its tree) so you can later address it by path -- me get '~/notes/postgres/uuidv7'. See Core Concepts.
# Hybrid search (meaning + keywords)
me memory search "UUID generation in Postgres"
# Keyword search
me memory search --fulltext "UUIDv7"
# Pure semantic search (by meaning only)
me memory search --semantic "database-generated identifiers"me memory treeFor a richer, visual experience there's a web UI with a tree explorer, hybrid / advanced search, a rendered Markdown viewer, and an editor for content + metadata.
- Hosted (no install): open api.memory.build and sign in with GitHub or Google — the same account you'd use for
me login. This is the quickest way in if you don't want to touch the CLI. - Local: run
me serveto start the same UI against your CLI session onhttp://127.0.0.1:3000(or the next free port). Seeme serve.
Memory Engine has first-class integrations for Claude
Code,
OpenCode, and Codex
CLI. An integration gives the coding
harness access to Memory Engine tools through MCP. You can also opt in to session
capture and configure where me commands run by the harness connect. For other
MCP-compatible coding harnesses, see MCP Integration.
Install each harness integration once for your user account. Then configure it
machine-wide through fallback defaults, or for one directory and its descendants.
me init is the guided tool for that configuration.
From a repository you want to configure, run:
me initThis is the recommended coding-agent setup. It signs you in when needed,
selects a space, enables MCP tools and me command routing for detected
harnesses, and offers to install missing integrations. It also asks whether to
enable session capture.
Capture is off by default. When enabled, its suggested tree is
/share/projects/<repository> for team knowledge; choose
~/projects/<repository> instead for private captures.
Verify the result with:
me doctorUse me init --verbose to configure MCP, capture, and CLI routing separately.
me init works in headless or unattended environments, use me login --device or supply an
API key through ME_API_KEY.
Read Harness Integrations for installation, uninstallation, and machine-local policy details. See MCP Integration for manual MCP client configuration.
- Core Concepts -- understand memories, tree paths, metadata, search modes
- Harness Integrations -- install coding-agent integrations and configure local policy
- Projects -- set up repository memory trees and project grants
- Access Control -- spaces, principals, and tree-access grants
- Memory Packs -- install pre-built knowledge collections
- MCP Integration -- how AI agents use Memory Engine
- CLI Reference -- full command reference
- MCP Tool Reference -- full MCP tool reference