claudeers.
// Automation & Workflows

session-migrate

Migrate coding agent sessions across Claude Code, Codex, Pi, OpenCode, Copilot CLI, Antigravity, Cursor, and Mistral Vibe

Actively maintained
100/100
last commit 24 days ago
last release 24 days ago
releases 11
open issues 0
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up session-migrate (pip project) into my current project.
Found on https://claudeers.com/session-migrate
Repo: https://github.com/xhluca/session-migrate
Homepage/docs: https://session-migrate.github.io
Detected install method: pip → pip install session-migrate
Category: automation. Platforms: cli, api, web.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or install directly (pip)
pip install session-migrate
// or clone
git clone https://github.com/xhluca/session-migrate

// compatibility

Platformscli, api, web
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

session-migrate

Migrate your sessions to any harness.

A Claude Code session migrated and continued inside the native Pi TUI

Move coding agent sessions among Claude Code, Codex, Pi, OpenCode, GitHub Copilot CLI, Antigravity CLI, Cursor Agent, and Mistral Vibe.

Install

uv tool install session-migrate

No uv? Use the standalone installer:

curl -LsSf https://session-migrate.github.io/install.sh | sh

pipx install session-migrate works too. Python 3.11+ and Linux are currently supported. The full command is session-migrate; smigrate is the shorthand. Already installed? Run uv tool upgrade session-migrate.

Quick start

Inspect any native transcript without printing its conversation:

smigrate inspect ~/.claude/projects/-work/SESSION.jsonl

Move a Claude session into Codex and resume it from the same project directory:

smigrate transfer SESSION_UUID --from claude --to codex --cwd "$PWD"
codex resume NEW_SESSION_UUID

Or find an older session by its native title/name first:

smigrate catalog refresh
smigrate catalog search "oauth refresh" --format claude
smigrate transfer --title "oauth refresh" --from claude --to pi

Search is case-insensitive and every word must match, in any order. It searches native titles, names, and IDs—not conversation bodies. A few useful patterns:

# “Fix flaky PostgreSQL timeout” also matches this reversed keyword order.
smigrate catalog search "timeout postgres"

# Find a release conversation among archived Codex sessions from this month.
smigrate catalog search "release notes" --format codex \
  --lifecycle archived --since 2026-08-01T00:00:00Z

# Opt in to matching a project directory when the title is vague.
smigrate catalog search "checkout api" --include-paths

catalog refresh is exhaustive inside the default, environment-selected, registered, and explicitly discovered roots. It does not crawl your whole disk.

Give it to your coding agent

Choose the route on the project website, or replace the three bracketed values yourself:

Follow https://session-migrate.github.io/llms.txt to migrate a session from [SOURCE] to [TARGET]. Session: [UUID OR TITLE]

The linked procedure is sandbox-tested with both Claude Code and Codex. See the agent workflow and verification.

Compatibility

  • Claude Code
  • Codex CLI
  • Pi
  • OpenCode
  • GitHub Copilot CLI
  • Antigravity CLI
  • Mistral Vibe
  • Cursor Agent (experimental, pinned, text only)

Every listed format can be a source or target: 64 ordered routes, including same-format portable rewrites. Cursor deliberately transfers only ordered user/assistant text and is pinned to one exact Linux build; it is not a vendor-supported import API. Same-format migration creates a new independent session—it is not a byte-for-byte clone or a live sync.

What survives

Session dataResultNotes
User and assistant messages✓Preserved in order on every route
Tool calls and results✓ / partialPreserved when both adapters support the native shape
Images✓ / partialSupported image blocks move; other media is format-dependent
Compaction summaries✓ / partialRecreated where the target has a portable equivalent
Readable reasoningVibe-only portable rewriteVibe keeps its explicit readable field when rewritten to Vibe; other/private/signed traces never move
Session name, ID, and picker entryRecreatedThe target gets a new native identity and resume state
Branches, forks, and subagentsNot flattenedCataloged separately where detectable; migrate the parent session
Private or signed thinkingNoModel/provider-bound traces are deliberately omitted
Auth, hooks, policies, MCP, and runtime configNoThese remain with the source client

Every omission or transformation is counted in a content-free migration manifest. The source session is never modified. Cursor intentionally accepts text only. See Pi thinking traces.

How it works

native session → validated event timeline → native target → resume

Each reader projects a versioned native transcript into a small ordered model. Each writer then emits only structures verified against the target CLI. This is session migration, not text export: the target receives a discoverable, resumable native session.

More

The Antigravity and Cursor adapters are clean-room, unofficial, and version-pinned. Their independently observed formats are published separately: Antigravity research and Cursor research.

The demo above uses real native casts recorded with the same tmux + asciinema approach as agent-talk. Claude diagnoses a boundary bug in a small project; the migrated session is reopened in Pi, which applies the proposed patch and runs the regression test. It shows the source TUI, the migration command, the shared history, and the continued target session. The website plays those casts directly in JavaScript; the README animation is rendered from that same scene. The same source session is also continued in Claude → Codex. Watch the larger-text Pi video, watch the larger-text Codex video, or reproduce both. The recorder uses disposable credential copies only to drive the native clients; the published assets contain only the controlled demo project and omit account status.

Compare Claude Code → Pi inside the native clients
Before · Claude Code TUIAfter · Pi TUI
Claude Code native session before migrationMigrated session continued inside the native Pi TUI
Compare Claude Code → Codex inside the native clients
Before · Claude Code TUIAfter · Codex TUI
Claude Code native session before migrationMigrated session continued inside the native Codex TUI
session-migrate project website

Contributing

git clone https://github.com/xhluca/session-migrate.git
cd session-migrate
uv sync --dev
uv run pytest

See the development guide before changing a native adapter. New formats need sanitized fixtures and a real native-resume oracle.

License

MIT

// faq

What is session-migrate?

Migrate coding agent sessions across Claude Code, Codex, Pi, OpenCode, Copilot CLI, Antigravity, Cursor, and Mistral Vibe. It is open-source on GitHub.

Is session-migrate free to use?

session-migrate is open-source under the MIT license, so it is free to use.

What category does session-migrate belong to?

session-migrate is listed under automation in the Claudeers registry of Claude-compatible tools.

26 views
★ 113 stars
unclaimed
updated about 1 month ago

// embed badge

session-migrate on Claudeers
[![Claudeers](https://claudeers.com/api/badge/session-migrate.svg)](https://claudeers.com/session-migrate)

// retro hit counter

session-migrate hit counter
[![Hits](https://claudeers.com/api/counter/session-migrate.svg)](https://claudeers.com/session-migrate)

// reviews

// guestbook

0/500

// related in Automation & Workflows

🔓

The agent that grows with you

// automationNousResearch/⟨Python⟩★ 248,418◷ MIT[ claude ]
🔓

The API to search, scrape, and interact with the web at scale. 🔥

// automationfirecrawl/⟨TypeScript⟩★ 185,150◷ AGPL-3.0[ claude ]
🔓

🌐 Make websites accessible for AI agents. Automate tasks online with ease.

// automationbrowser-use/⟨Python⟩★ 117,143◷ MIT[ claude ]
🔓

Taste-Skill - gives your AI good taste. stops the AI from generating boring, generic slop

// automationLeonxlnx/⟨JavaScript⟩★ 89,892◷ MIT[ claude ]
→ see how session-migrate connects across the ecosystem