Hosting

MenteDB Cloud

The managed service: one API key, no servers and no LLM keys.

llms.txt

The managed version. No servers, no cron, no LLM keys to wire up, and the overnight maintenance runs for you. Get a key, connect your tools or call the REST API, and you are done.

1. Get an API key

Sign up at app.mentedb.com (email, Google, or GitHub), open API Keys, and create one. It looks like mdb_... and is shown once, copy it somewhere safe.

Store your API key securely. It is shown only once at creation time.

2. Set it

Terminal
export MENTEDB_API_KEY=mdb_your_key_here

That is the only credential you need. The endpoint defaults to https://api.mentedb.com; override it with MENTEDB_API_URL if you ever need to.

3. Use it from your code

Every turn is one call to process_turn: it stores the turn and returns the memories to put in your next prompt. There is no SDK to install, just POST to the REST endpoint with your key. Here is the whole integration in Python:

Python
import os, requests

API = "https://api.mentedb.com/v1/process_turn"
HEADERS = {"Authorization": f"Bearer {os.environ['MENTEDB_API_KEY']}"}

def process_turn(user_message, assistant_response, turn_id):
    r = requests.post(API, headers=HEADERS, json={
        "user_message": user_message,
        "assistant_response": assistant_response, "turn_id": turn_id,
    })
    r.raise_for_status()
    # the response is the turn data directly
    return r.json()

# Turn 0: tell it something. Turn 1: it remembers.
process_turn("I switched from Postgres to SQLite", "Noted.", 0)
result = process_turn("what database am I using?", "", 1)
for memory in result["context"]:            # -> prepend these to your next prompt
    print(memory["content"])

That is it. The same loop in Node, the turn-by-turn agent walkthrough, and the raw request/response shapes are in Build an agent, Cloud (REST) and the REST API reference.

Or connect an existing AI tool (no code)

If you want to add memory to Claude Code, Cursor, Copilot, or the Claude apps rather than build your own agent, one command wires it up:

Terminal
npx mentedb-mcp@latest setup claude-code   # or: cursor, copilot, claude

With MENTEDB_API_KEY set it connects to the cloud automatically, and your assistant then calls process_turn every turn with no glue code. On the Claude apps, add a custom connector with just the URL https://api.mentedb.com/mcp. Details in MCP server & tools.

What runs for you

Every night the platform runs the same maintenance a self-hoster would have to schedule, consolidation, decay, archival, and cache eviction, plus enrichment and profile building. Fact extraction and embeddings are handled server-side. You do nothing. That is the whole point of cloud.

Prefer to run it yourself? See Self-hosted.