Sandbox
@MemTensor/memmy-agent

Local memory hub for Claude Code, Codex, and other agents

Memmy gives your agents a shared local memory so they can keep using the same project context, preferences, and notes. It runs as a memory service plus a gateway, and you can use it through the `memmy` CLI, the `memmy-memory` CLI, or the desktop app.

1,786 stars159 forksTypeScriptUpdated 7d ago
Who it's for

Builders who want their agent tools to remember the same context across sessions and across apps.

What it delivers

You can stop re-explaining your project and let different agents continue from the same memory.

What it does

Shared local memory service

Stores context locally so multiple agents can read and write the same memory base.

Cross-agent support

Works with Claude Code, Codex, Cursor, OpenClaw, Hermes Agent, and other compatible tools.

CLI and TUI access

Use `memmy` for onboarding, status, single-turn tasks, and an interactive terminal UI.

Memory management commands

Use `memmy-memory init`, `health`, `search`, `add`, and `get` to inspect and update memory directly.

Desktop app and gateway

Includes a desktop app plus a local gateway and service setup for ongoing access.

OpenAI-compatible API

Can start an API on localhost for tools that want an OpenAI-style endpoint.

How to get it

  1. 1On Linux x64 or arm64 with Node.js 22 or newer and an available systemd user session
    curl -fsSL https://raw.githubusercontent.com/MemTensor/memmy-agent/main/scripts/install.sh | bash
    memmy
  2. 2Before starting or reconnecting to the Gateway, memmy refreshes a private…
    systemctl --user status memmy-memory.service
    systemctl --user status memmy-gateway.service
  3. 3Use it to access the local memory service from agents, scripts, and debugging workflows
    memmy-memory init
    memmy-memory health
    memmy-memory search "memory policies in this project"
    memmy-memory add "a piece of knowledge worth saving"
    memmy-memory get <id>
  4. 4Run
    git clone https://github.com/MemTensor/memmy-agent.git
    cd memmy-agent
    cp .env.example .env
    npm install
    npm run build
    bash scripts/dev-start.sh

README




Docs applenews Discord X

Memmy Agent - Let every AI remember the same you. | Product Hunt

Continue the same work across DeepSeek Harness, Claude Code, Codex, and etc.

Overview · Quick Start · Technical Overview · Roadmap · Acknowledgements · Contributors

English • 简体中文

What Is Memmy?

Remember: Memmy remembers what you said and turns your local AI collaboration history into structured memory Relay: switch tools without losing context—Memmy carries your project background, preferences, and progress forward Act: Memmy is also an Agent that can organize information, combine approaches, and continue unfinished tasks

Cross-Agent Task Continuity

Most of the Agents You're Using Can Connect to Memmy

DeepSeek Harness, OpenClaw, Hermes, Claude Code, Codex, Cursor, WorkBuddy, OpenCode, Pi...they all work!

cross-agent-en.png

Data Security

Memmy data security

How to Use Memmy

For complete installation and configuration instructions, see the Getting Started guide.

1. Desktop App (Recommended)

First scan First Meeting Report

Download Memmy from the official website or GitHub Releases.

[!TIP] Sign up for Memmy to receive free tokens and try the complete Memory + Agent Runtime.
Trial credits:
Registration grants Agent task trial tokens; the current balance and usage are shown in the app.
When the trial credits run out, switch to BYOK mode and use your own model API.

2. Use the memmy CLI / TUI

Memmy TUI

On Linux x64 or arm64 with Node.js 22 or newer and an available systemd user session:

curl -fsSL https://raw.githubusercontent.com/MemTensor/memmy-agent/main/scripts/install.sh | bash
memmy

The installer enables the local Memory Service immediately as memmy-memory.service. The first bare memmy invocation opens the model setup wizard when needed, then enables memmy-gateway.service, waits for it to become ready, and enters the TUI. Both are systemd --user services bound to localhost and remain available after the TUI or terminal exits. They start again on later logins; the installer does not enable linger. Only the installer launcher activates this service management, so source-built Linux CLIs keep their existing behavior.

Before starting or reconnecting to the Gateway, memmy refreshes a private ~/.memmy/systemd/gateway.env file (mode 0600) with configuration-referenced environment variables, common Provider credentials, and the terminal PATH. If those values change, the next bare memmy invocation restarts the user service with the new environment.

systemctl --user status memmy-memory.service
systemctl --user status memmy-gateway.service

The installer initializes Memory without changing Codex, Claude Code, Cursor, or other agents. Run memmy-memory init (all detected agents) or memmy-memory init --agent <agent> when you explicitly want to install the Memory Skill and the supported Hook/plugin for an agent.

memmy onboard                              # Configure models, providers, gateway, memory, and tools interactively
memmy onboard --defaults                   # Initialize ~/.memmy/config.yaml and the workspace with defaults
memmy status                               # Check the configuration, model, and provider
memmy agent --message "Introduce the current workspace"  # Run a single-turn task
memmy                                      # Enter the interactive TUI
memmy serve                                # Start the OpenAI-compatible API (:18990)

The minimal BYOK configuration is located at ~/.memmy/config.yaml:

agents:
  defaults:
    model: openai/gpt-4.1
    provider: openai
    timezone: "+08:00"
providers:
  openai:
    apiKey: ${OPENAI_API_KEY}

3. Use the memmy-memory CLI

Use it to access the local memory service from agents, scripts, and debugging workflows:

memmy-memory init
memmy-memory health
memmy-memory search "memory policies in this project"
memmy-memory add "a piece of knowledge worth saving"
memmy-memory get <id>

It connects to http://127.0.0.1:18960 by default. Use --url, --token, --config, --source, and --user-id to specify the service and namespace.

4. Start from the Source Code

git clone https://github.com/MemTensor/memmy-agent.git
cd memmy-agent
cp .env.example .env
npm install
npm run build
bash scripts/dev-start.sh

The script installs dependencies, builds the services, and starts the development environment. Node.js >=22 and npm are required; use Git Bash on Windows.

How Is Memmy Built?

For details about the architecture, memory service, and integration methods, see the Memmy documentation.

Memmy system architecture: multiple Agents and entry points share the local Memory and Agent Runtime


Roadmap

Memmy is building personal memory infrastructure, and its scope goes beyond coding Agents:

  • More memory sources — expanding from AI conversations to browser activity, local documents, and eventually more devices and hardware.
  • Team collaboration — planned Agent-to-Agent collaboration, letting team members' AI assistants share knowledge under privacy protection.

Acknowledgements

Memmy stands on the shoulders of a group of excellent open-source projects, and we are deeply grateful.

  • OpenClaw — a pioneer of open-source personal AI assistants; its exploration of multi-platform messaging channels directly inspired Memmy's channel connection design.
  • hermes-agent — the self-evolving Agent built by Nous Research; its practice in persistent memory and skill self-learning showed us that an Agent can "understand you better the more you use it".
  • nanobot — grown from a minimal prototype into a fully featured open-source Agent platform; its engineering practice around the Agent loop and MCP integration provided important references for Memmy's core design.

The point of open source is to let good ideas flow, and we hope Memmy becomes part of that river.

Contributors

Thanks to every contributor who makes Memmy better ❤️

Files in the repo

Repository payload17 top-level entries
  • .github
  • AgentSourceCore
  • App
  • docs
  • Memory
  • Migrations
  • scripts
  • tests
  • .env.example
  • .gitignore
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • README.zh-CN.md
  • tsconfig.base.json
  • tsconfig.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k