How to Set Up Supermemory AI Locally on Ubuntu Linux for Persistent AI Memory

in #tutorial2 days ago

Supermemory is a powerful memory and context engine for AI agents. It recently launched a self-hosted local version, letting you run state-of-the-art long-term memory entirely on your own machine — no cloud dependency required. Perfect for privacy-conscious users and Ubuntu Linux setups.

Easy Installation on Ubuntu

  1. Open your terminal and run the official installer:

    curl -fsSL https://supermemory.ai/install | bash
    

    (Alternatively use npx supermemory local if you prefer Node.)

  2. The script detects your system, downloads the binary, and prepares local storage (typically under ~/.supermemory or ./.supermemory).

  3. Start the server:

    supermemory-server
    

  1. On first boot, an interactive wizard appears. You can skip the provider key initially or configure an LLM (OpenAI, Anthropic, Gemini, OpenRouter, or any OpenAI-compatible endpoint like Ollama). Local embeddings (Xenova/bge-base-en-v1.5) work by default with no extra key.

  2. The server prints your local API key (bearer token), URL (http://localhost:6767), database path, and org ID. Save these securely.

Adding and Retrieving Memories

Use the official SDK or simple Python/curl examples to add content (e.g., personal facts or project notes) with container tags for organization. Query memories later for semantic search and profile recall. Everything stays on your machine.

Why Local Supermemory?

  • Full control and privacy
  • Same API as the cloud version — switch baseURL when ready
  • Supports offline setups with local models
  • Integrates with agents like Hermes

This setup turns your Ubuntu machine into a personal AI memory backend in minutes. Ideal for coding agents, long-running projects, and consistent context across sessions.