memcode docs

What is memcode?

An agentic coding CLI that remembers your codebase, and a self-hostable gateway that runs that same agent on the channels you already use.

Memcode is an agentic coding CLI. You run it in a git repository, tell it what you want in plain language, and it does the work: reading code, searching, running commands, and editing files. It asks before anything risky.

Unlike a chat window, memcode remembers your project and your past sessions, so you can stop and come back later without re-explaining everything.

Two ways to run it

As a coding agent. Hand it a task and let it work, or open an interactive session and steer as you go:

memcode run "add a /healthz endpoint that returns 200"
memcode

From there you can plan a change before making it, pick a model, check what a session cost, and undo edits.

As a gateway. The same binary runs as a long-lived gateway: it listens on the surfaces you already use (Telegram, Discord, Slack, email, Signal, Matrix, Mattermost, Microsoft Teams, Google Chat, SMS, GitHub, and WhatsApp), turns each inbound message into an agent job, and posts the result back. A voice note is transcribed and answered like any other message. Coding is one use of that loop, not what it is built around.

memcode gateway

Already running OpenClaw or Hermes? Bring your whole setup over with one command, memcode claw migrate or memcode hermes migrate: channels, API keys, skills, and memory all come across.

Start here

On this page