MemNexus
Get Started

Quick Start

Create your first memory in under 5 minutes using the CLI, SDK, or API.

Get up and running with MemNexus in minutes. Choose your preferred interface below.

Prerequisites

You need a MemNexus API key. MemNexus is currently in invite-only preview — request access or use your invite code to get started. Keys follow the format:

cmk_live_<id>.<secret>

Save your API key immediately — the full secret is only shown once during creation.

Create Your First Memory

Install the CLI

npm install -g @memnexus-ai/cli

Authenticate

mx auth login

Paste your API key when prompted (input is masked). Verify it worked:

mx auth status

Connect your AI tools

Run this from inside your project directory (it needs a git repo to install the CommitContext hook):

cd ~/your-project
mx setup

This configures MCP for your AI coding tools (Claude Code, Copilot, Cursor, etc.) and installs the CommitContext post-commit hook — which automatically captures the reasoning behind every commit as a searchable memory.

You must run mx setup from a git repository. The CommitContext hook is installed per-project, so run it in each repo you want to track.

If you use Husky or another hook manager, mx setup detects it and appends to your existing hooks.

Create a memory

mx memories create \
  --conversation-id NEW \
  --content "MemNexus uses graph storage and vector embeddings for semantic search." \
  --topics "memnexus,architecture,decision"

Search for it

mx memories search --query "what database does memnexus use"

The semantic search finds the memory even though you searched by meaning, not exact keywords.

Try CommitContext

Make a commit in your project to see CommitContext capture it automatically:

git commit --allow-empty -m "test: verify commit context"

Wait a few seconds, then check:

mx commit-context list

You should see your commit listed with a summary. From now on, every commit automatically creates a searchable memory with the reasoning behind your changes.

Install the SDK

npm install @memnexus-ai/mx-typescript-sdk
import { MemnexusClient } from "@memnexus-ai/mx-typescript-sdk";

const client = new MemnexusClient({
  apiKey: process.env.MX_API_KEY,
});

// Create a memory
const memory = await client.memories.create({
  content: "MemNexus uses graph storage and vector embeddings for semantic search.",
  topics: ["memnexus", "architecture", "decision"],
});

console.log("Created:", memory.id);

// Search by meaning
const results = await client.memories.search({
  query: "what database does memnexus use",
  limit: 5,
});

for (const result of results.data) {
  console.log(`[${result.score.toFixed(2)}] ${result.memory.content}`);
}

Create a memory

curl -X POST https://api.memnexus.ai/api/memories \
  -H "Authorization: Bearer $MX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "MemNexus uses graph storage and vector embeddings for semantic search.",
    "topics": ["memnexus", "architecture", "decision"]
  }'

Search for it

curl -X POST https://api.memnexus.ai/api/memories/search \
  -H "Authorization: Bearer $MX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "what database does memnexus use",
    "limit": 5
  }'

What Just Happened?

When you created that memory, MemNexus:

Generated a vector embedding of the content

Extracted the topics you specified

Stored the memory node and topic relationships in the graph database

Made it immediately searchable via semantic and keyword search

When you searched, MemNexus ran a hybrid search — combining vector similarity with full-text matching — and ranked results using Reciprocal Rank Fusion (RRF).

Next Steps