Skip to content

Open Conversation Format v0.1 draft

One open format for every AI session.

OCF lets a session move: from one machine to the next, from Claude Code to Codex. One adapter per tool. Plain files you own.

How OCF connects tools and machinesRead adapters, which work today, bring sessions from the tools on machine A into OCF, one open format. Write adapters, which come next, write sessions from OCF into the tools on machine B. More tools can be added on both sides.Machine AClaude CodeCodexCursor...read: works today[ OCF ]one open formatwrite: nextMachine BClaude CodeCodexOpenCode...

The problem

A session lives in one tool, on one machine. Until it is deleted.

Claude CodeJSONL files in its own folderDeleted after 30 days by default.
CodexRollout files, compressedIts own layout and compression.
CursorOne SQLite databaseNo bulk export.
ChatGPTOn a serverA ZIP file, by request, by hand.
Claude.aiOn a serverA ZIP file, by request. The link expires after 24 hours.

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

Four things one format makes possible.

Sync.

next

Same session, every machine.

Start on the desktop, continue on the laptop. Same tool, complete history, no cloud in between.

Switch.

planned

Take a session to another tool.

Claude Code to Codex, Cursor to OpenCode. The target gets everything it can hold. The original stays complete.

Keep.

today

Tools delete. Files stay.

Every session is copied to your archive while you work: tool calls, results, thinking, branches, models, token usage.

Find.

today

One search for everything.

Every tool, every machine, years back. Readable as Markdown, searchable with Meilisearch if you want it.

Get started

Three commands to your own archive.

# 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

Sources for step 2:claude-code-cliclaude-code-appclaude-cowork-appcodexcursorchatgptclaude-ai
Keep it current.
The command "ocf sync" does export, Markdown and search continuously. "ocf app" adds a tray icon.
Any folder works.
A local disk, a NAS or a synced drive. Several machines can write into one archive.
In daily use.
More than 4,000 real sessions from seven sources, going back to 2023.

ocf-py on GitHub

The format

Small on purpose.

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\"}" }          }        ]      }    }  ]}
Marked: the message itself. Everything else: the OCF envelope.
One session, one file.
A snapshot as .ocf.json, an append-only log as .ocf.jsonl, or a .ocf.zip bundle with the attached files.
The whole session.
Tool calls and their results, thinking, branches, the model and the token usage of every turn.
Versioned.
A JSON Schema defines the format. Every file carries its ocf_version.

Adapters

One adapter per tool.

Seven tools need 42 one-way converters to talk to each other. Or 14 adapters around one format.

42one-way converters
14adapters 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.

Write an adapter

ToolReadWrite
Claude CodeCLI, Desktop, Coworkyesnext
Codexyesplanned
Cursoryesplanned
ChatGPTdata exportyesn/a
Claude.aidata exportyesn/a
OpenCodeplannedplanned
piplannedplanned
Hermes Agentplannedn/a
Your toolone adapter away

How it differs

A format, not another app.

Converters
move a session from A to B. Their format is whatever the parser does today. OCF is a versioned spec with a JSON Schema that anyone can build on.
Session viewers
read many tools into their own database. Nothing comes back out.
Vendor importers
pull you into one product, with a trimmed copy. OCF is neutral ground.
Cloud services
store your sessions on their servers. OCF writes files to yours.

Roadmap

Read first. Write next.

  1. Now

    Read adapters

    Seven sources into one archive. Markdown, search, several machines.

  2. Next

    Write adapters

    Claude Code first: a session from machine A resumes on machine B.

  3. Then

    Tool to tool

    Claude Code to Codex as the first pair. More adapters, loadable as plugins.

  4. Later

    Next to the code

    Sessions stored with the commits they produced. A JavaScript library.

Full roadmap

FAQ

Short answers.

Does anything leave my machine?

No. OCF reads local session files and writes local files. No account, no telemetry.

Do I need a search server?

No. The archive and the Markdown copies work on their own. Search is optional and uses Meilisearch.

Which platforms?

It is used daily on Windows. The macOS and Linux paths are implemented, reports are welcome.

Is the format stable?

It is a 0.1 draft, so the schema can still change. Every file carries its ocf_version, so files can be migrated.

Can I read the files without OCF?

Yes. They are JSON, and the Markdown copies open in any editor.

Is a move between tools lossless?

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.

My tool is missing.

A read adapter is two methods. Start from an existing one in ocf-py and open a pull request.

Who is behind this?

An independent open-source project under Apache 2.0. It is not affiliated with any model or tool vendor.

Start with the archive. The rest builds on it.