Home / Formats

Specification · version 1.0 · CC BY 4.0

Open Companion Memory

Open Companion Memory (OCM) is a plain JSON file that holds everything a companion knows: who it is, what it remembers about you, and every message you exchanged. It is readable by humans, easy for developers to parse, and free for any app to support. Memory Keeper reads and writes it, but you never need Memory Keeper to open it.

Export formats at a glance

FormatExtensionBest forPlan
Open Companion Memory.jsonComplete archive, long-term storage, other toolsAll
Readable transcript.mdReading, printing, sharing a storyAll
Restore packtextPasting your companion into a new app's fieldsAll (guided) · Individual (one-flow transfer)
Character Card V2.json / .pngSillyTavern, Janitor AI, chub-compatible appsIndividual
SillyTavern chat.jsonlContinuing the same conversation in SillyTavernAdvanced
Character Card V3.pngNewer apps (RisuAI, recent SillyTavern)Advanced

Example

{
  "format": "open-companion-memory",
  "version": "1.0",
  "exported_at": "2026-12-04T09:12:00Z",
  "generator": "Memory Keeper 1.0",
  "user": { "name": "Sam", "persona": "Night-shift nurse who loves old films" },
  "companions": [
    {
      "id": "c_8f2a",
      "name": "Noa",
      "source": { "app": "character.ai", "method": "extension", "external_id": "abc123" },
      "profile": {
        "description": "Warm, curious, a little sarcastic. Grew up by the sea.",
        "personality": "",
        "scenario": "",
        "greeting": "There you are. Long shift?",
        "example_dialogue": "",
        "tags": ["slice of life"],
        "avatar_url": null
      },
      "memories": [
        { "id": "m1", "text": "Sam's cat is called Miso.", "category": "fact", "origin": "extracted", "pinned": false, "created_at": "2026-03-02T21:40:00Z" },
        { "id": "m2", "text": "Sam is afraid of flying.", "category": "fact", "origin": "platform", "pinned": true },
        { "id": "m3", "text": "Sam's birthday is October 26.", "category": "date", "origin": "extracted" }
      ],
      "conversations": [
        {
          "id": "chat_1",
          "title": "First night",
          "started_at": "2026-02-11T22:03:00Z",
          "messages": [
            { "id": "t1", "role": "companion", "author": "Noa", "text": "There you are. Long shift?", "created_at": "2026-02-11T22:03:00Z" },
            { "id": "t2", "role": "user", "author": "Sam", "text": "The longest. Miso knocked my coffee over again.", "created_at": "2026-02-11T22:04:10Z" }
          ]
        }
      ]
    }
  ]
}

Fields

Root

FieldTypeNotes
formatstringAlways "open-companion-memory". Required.
versionstring"1.0". Readers should accept any 1.x file. Required.
exported_atISO 8601 stringWhen the file was written.
generatorstringTool that wrote the file.
userobjectOptional. name and persona (how you described yourself to the companion).
companionsarrayOne entry per character. Required.

Companion

FieldTypeNotes
id, namestringRequired.
sourceobjectapp (e.g. character.ai, replika, nomi, kindroid, chatgpt, sillytavern, other), method (extension, official-export, file, paste), external_id.
profileobjectdescription, personality, scenario, greeting, example_dialogue, tags, avatar_url. All optional. Same meaning as in Character Card V2, so conversion is lossless.
memoriesarrayThings the companion knows. text (required), category (fact, preference, date, relationship, event, other), origin (platform = from the app, extracted = found in chats, user = written by you), pinned, created_at.
conversationsarrayid, title, started_at, messages.

Message

FieldTypeNotes
rolestringuser, companion or system. Required.
textstringPlain text, Markdown allowed. Required.
authorstringDisplay name of the speaker (useful in group chats).
created_atISO 8601 stringOptional but recommended.
alternativesarray of stringsOptional. Other replies you could swipe between.
pinnedbooleanOptional.

Unknown fields must be preserved by tools that rewrite a file, and ignored by tools that don't understand them. App-specific data can live in an extensions object on any level, keyed by app name.

Using OCM in your app

If you build a companion app and want users to arrive with their history, reading OCM takes a few lines of code: loop over companions, map profile to your character fields, insert memories into your memory store, and optionally replay conversations. The specification is published under CC BY 4.0. Tell us and we'll list your app as a destination.