Sync.
nextSame session, every machine.
Start on the desktop, continue on the laptop. Same tool, complete history, no cloud in between.
Open Conversation Format v0.1 draft
OCF lets a session move: from one machine to the next, from Claude Code to Codex. One adapter per tool. Plain files you own.
The problem
Five tools, five formats. Moving between them means starting over, or importing a trimmed copy. OCF puts one format in the middle.
What you get
Same session, every machine.
Start on the desktop, continue on the laptop. Same tool, complete history, no cloud in between.
Take a session to another tool.
Claude Code to Codex, Cursor to OpenCode. The target gets everything it can hold. The original stays complete.
Tools delete. Files stay.
Every session is copied to your archive while you work: tool calls, results, thinking, branches, models, token usage.
One search for everything.
Every tool, every machine, years back. Readable as Markdown, searchable with Meilisearch if you want it.
Get started
# 1. Install (needs Python 3.11+ and uv)
$ uv tool install git+https://github.com/open-conversation-format/ocf-py
# 2. Export what is on this machine
$ ocf export claude-code-cli --out ./ocf-archive
# 3. Read it anywhere as Markdown
$ ocf render ./ocf-archive --out ./ocf-archive-md
The format
The message is the OpenAI Messages shape you already know. OCF adds the envelope around it: ids, timestamps, model, token usage, branches, attached files.
{ "ocf_version": "0.1.0", "conversation": { "id": "conv_001", "title": "Fix parser empty-row crash", "created_at": "2026-04-26T16:00:00Z" }, "messages": [ { "id": "msg_001", "created_at": "2026-04-26T16:00:00Z", "message": { "role": "user", "content": "parser.py crashes on empty rows. Please fix it." } }, { "id": "msg_002", "created_at": "2026-04-26T16:00:05Z", "model": "claude-sonnet-4-6", "usage": { "input": 240, "output": 95 }, "message": { "role": "assistant", "content": "I'll read the file first.", "tool_calls": [ { "id": "call_001", "type": "function", "function": { "name": "read_file", "arguments": "{\"path\":\"parser.py\"}" } } ] } } ]}Adapters
Seven tools need 42 one-way converters to talk to each other. Or 14 adapters around one format.
A read adapter is two methods: where the tool keeps its sessions, and how one session becomes an OCF document. Add your tool once. It gets the archive, the search and every write adapter that follows.
| Tool | Read | Write |
|---|---|---|
| Claude CodeCLI, Desktop, Cowork | yes | next |
| Codex | yes | planned |
| Cursor | yes | planned |
| ChatGPTdata export | yes | n/a |
| Claude.aidata export | yes | n/a |
| OpenCode | planned | planned |
| pi | planned | planned |
| Hermes Agent | planned | n/a |
| Your tool | one adapter away | |
How it differs
Roadmap
Now
Seven sources into one archive. Markdown, search, several machines.
Next
Claude Code first: a session from machine A resumes on machine B.
Then
Claude Code to Codex as the first pair. More adapters, loadable as plugins.
Later
Sessions stored with the commits they produced. A JavaScript library.
FAQ
No. OCF reads local session files and writes local files. No account, no telemetry.
No. The archive and the Markdown copies work on their own. Search is optional and uses Meilisearch.
It is used daily on Windows. The macOS and Linux paths are implemented, reports are welcome.
It is a 0.1 draft, so the schema can still change. Every file carries its ocf_version, so files can be migrated.
Yes. They are JSON, and the Markdown copies open in any editor.
Between machines in the same tool, that is the goal. Between tools, the target gets what it can hold and the archive keeps the complete original.
A read adapter is two methods. Start from an existing one in ocf-py and open a pull request.
An independent open-source project under Apache 2.0. It is not affiliated with any model or tool vendor.