Skip to content

mem0ai/openmemory

Repository files navigation

openmemory banner

Sync Your Sessions Across Any Coding Harness

openmemory welcome screen

Beta: Claude Code, Codex, OpenCode available now. More coming soon.

Available via TUI Wizard or CLI
Effortlessly import and export sessions between harnesses.
Pick up right where you left off, across all your coding harnesses.

openmemory select screen

Why OpenMemory

It is the age of coding harnesses, and new harnesses are released every day. Developers feel locked in to their primary harness, unable to try new ones without losing all their context from previous sessions. OpenMemory brings that context to any harness so you can pick up where you left off.

  • Codex's "Import from Claude Code" is uni-directional, supports only one source harness, and only does a bulk "import all conversations."
  • OpenCode's import is manual — you point opencode import at a JSON file you've assembled by hand, with no discovery, preview, or way to pick which conversations come over.

OpenMemory is omni-directional, shows you a preview of the sessions on your machine, and lets you choose which to import so you know exactly what you're taking with you.

Switching between different harnesses? Autosync keeps them all in sync, all the time (coming soon).

Install

curl -fsSL https://raw.githubusercontent.com/mem0ai/openmemory/main/scripts/install.sh | bash

Usage

Interactive wizard (recommended):

openmemory tui

CLI

Should you wish to run openmemory as a cli instead of the wizard:

openmemory port --from <src> --to <dest> --all

port takes --from/--to plus either --all or one or more --id <session-id>; add --force to re-export and --json for machine-readable output.

Roadmap

  • Port Skills, MCPs, Plugins, and CLAUDE.md / AGENTS.md
  • Realtime autosync of conversation sessions across harnesses
  • Support for OpenClaw, Hermes

Contributing

Contributions are welcome! Please read the Contributing Guide to get started.

About

Open-source CLI & TUI to port AI coding sessions across Claude Code, Codex, and OpenCode.

Resources

License

Contributing

Stars

15 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors