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
| Format | Extension | Best for | Plan |
|---|---|---|---|
| Open Companion Memory | .json | Complete archive, long-term storage, other tools | All |
| Readable transcript | .md | Reading, printing, sharing a story | All |
| Restore pack | text | Pasting your companion into a new app's fields | All (guided) · Individual (one-flow transfer) |
| Character Card V2 | .json / .png | SillyTavern, Janitor AI, chub-compatible apps | Individual |
| SillyTavern chat | .jsonl | Continuing the same conversation in SillyTavern | Advanced |
| Character Card V3 | .png | Newer 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
| Field | Type | Notes |
|---|---|---|
format | string | Always "open-companion-memory". Required. |
version | string | "1.0". Readers should accept any 1.x file. Required. |
exported_at | ISO 8601 string | When the file was written. |
generator | string | Tool that wrote the file. |
user | object | Optional. name and persona (how you described yourself to the companion). |
companions | array | One entry per character. Required. |
Companion
| Field | Type | Notes |
|---|---|---|
id, name | string | Required. |
source | object | app (e.g. character.ai, replika, nomi, kindroid, chatgpt, sillytavern, other), method (extension, official-export, file, paste), external_id. |
profile | object | description, personality, scenario, greeting, example_dialogue, tags, avatar_url. All optional. Same meaning as in Character Card V2, so conversion is lossless. |
memories | array | Things 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. |
conversations | array | id, title, started_at, messages. |
Message
| Field | Type | Notes |
|---|---|---|
role | string | user, companion or system. Required. |
text | string | Plain text, Markdown allowed. Required. |
author | string | Display name of the speaker (useful in group chats). |
created_at | ISO 8601 string | Optional but recommended. |
alternatives | array of strings | Optional. Other replies you could swipe between. |
pinned | boolean | Optional. |
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.