Switch agents. Keep the thread.
Claude Code, Codex, Cursor, and the rest each keep their own history. omni finds every session on your machine and continues the one you pick in whichever agent you want next.
curl -fsSL https://raw.githubusercontent.com/bvolpato/omnisession/main/install.sh | shMIT licensed, local, no telemetry. Windows preview, latest release.
- Claude Code writes the rate limiter
- Grok finds two bypasses
- Codex moves buckets to Redis
- OpenCode load-tests it
OmniSession SESSION BROWSER · 10 sessions
Scope Source Target choose after source
Search › type to filter titles, folders, branches, IDs, and conversation text
SELECTED SESSION
Share rate-limit buckets across pods with Redis
codex · 23 messages · 38m
SESSION TREE · 4 sessions
┬claude4h
├grok2h
└codex38m
└opencode9m
WORKSPACE
- Directory
- ~/src/payments-api
- Branch
- feat/rate-limiter
- Tokens
- 96,210 total
- Session
- codex:4f7fac05…
Click it and type. This is the real flow with invented sessions: search, Enter, choose an agent, Enter.
Change here for any agent.
omni reads sessions from 12 agents and writes native ones into 10. A conformance run checks all 90 cross-agent paths between them. Pick two ends and take the route.
Codex to Claude Code
- Route
- Native session
- Needs
- Claude Code 2.1.220 or newer
- Runs on
- Linux + macOS
- Messages, in order
- Tool calls and results, as history
- Hidden reasoning
- Approvals and permission state
omni resume codex:<session-id> --in claudeThe original session is not changed. If the import cannot run, omni asks what to do.
What happens when you press Enter.
A transfer is a real session in the target agent, checked before you see it. Staying in the same agent uses that agent's own resume or fork.
Read
The source store is opened read-only. Visible messages and tool records become one ordered history. Hidden reasoning, approvals, and permission state stay out.
Write
omni creates a new session in the target agent's own format, through its import interface or a writer gated on that agent's version.
Read back
An independent reader loads the new session and compares it with what was sent. If anything differs, omni removes only what it created.
Launch
The agent opens with the conversation in place. Tool calls and shell commands arrive as history and never run again.
When an import can't run, you choose.
omni never quietly swaps the import you asked for. It says why, then offers the routes that are open. Scripts and pipes fall back to a handoff when that is safe.
Claude native import could not run: Claude 2.1.100 is too old for native trajectory import; supported versions: >= 2.1.220
[r] retry [f] fork in Codex instead [h] continue with a handoff file [q] cancel
> Find the one you half remember.
One redacted full-text index on your machine covers every agent. Later runs index only what changed.
omni search "rate limiter"- Every word must match. Titles, folders, branches, and IDs match fuzzily and rank first. Conversation text follows.
omni search qwen3.8- Finds
qwen3-8andQwen3.8-Coder, but notqwen3and8far apart. omni search '"token race"'- Quotes inside the query match exactly, spaces and punctuation included. Only case is ignored.
omni search pagination --all-projects --json- Searches every workspace and prints structured results for scripts.
omni search pagination --cached- Answers from the local index without opening a single provider store.
Also on this line
Inspect before you move
Reports what this route preserves, summarizes, or leaves out.
omni inspect <session> --target grokLaunch profiles
Name a gateway, wrapper, or set of flags once, then pick it like any agent. Profiles
omni resume <session> --in claude-gatewayPermission modes
Choose how much the agent may do without asking. The default adds no flags.
omni resume <session> --in codex --mode autoPortable bundles
Move a redacted session to another machine, or keep it after its store is gone.
omni export <session> -o session.omnisessionChat-app handoff
Saves the full context to a private file and copies a compact brief to the clipboard.
omni handoff <session>Machine check
Shows installed agents, their versions, and which imports are ready.
omni doctor
Your originals stay original.
Transcripts can hold code, tokens, and personal data, so the defaults assume they do. Read the security model.
Read-only sources
Discovery, search, and transfers open source stores read-only. The one change omni can make to a source is a deletion you select and confirm.
Local
No daemon, telemetry, or hosted service. Background update checks contact GitHub, and
OMNI_NO_UPDATE_CHECK=1turns them off.Exact rollback
If an import fails before launch, or you press Ctrl+C, omni rolls back only the records it created and exits without launching.
History, not instructions
Imported tool calls and shell commands are historical text. They are never replayed.
Redaction, with limits
Known authentication files are never read, and recognized credentials are redacted. That can't prove every secret is gone, so review sensitive sessions before you transfer them.
Guarded deletion
Delete asks first and targets only the selected session. Private-store deletes validate exact paths and refuse while that agent runs.
12 agents, platform by platform.
Generated from the manifest the CLI uses. The version is the oldest release omni imports into. OFFICIAL is an import through the agent's own API. Antigravity Desktop and Antigravity IDE are read-only: continue their sessions in another agent.
| Agent | Version / access | Read & index | Clean start | Same-agent resume | Cross-agent import |
|---|---|---|---|---|---|
| Codex | >= 0.146.0 | Linux + macOS + Windows | Linux + macOS + Windows | Linux + macOS + WindowsResume + fork | Linux + macOS + WindowsApp-server import |
| Claude Code | >= 2.1.220 | Linux + macOS | Linux + macOS | Linux + macOSResume + fork | Linux + macOSNative session |
| OpenCode | OFFICIAL | Linux + macOS | Linux + macOS | Linux + macOSResume + fork | Linux + macOSOfficial import |
| Pi | >= 0.79.3 | Linux + macOS | Linux + macOS | Linux + macOSResume + fork | Linux + macOSv3 JSONL |
| Oh My Pi | >= 18.2.10 | Linux + macOS | Linux + macOS | Linux + macOSResume + fork | Linux + macOSv3 JSONL |
| Grok | >= 0.2.114 | Linux + macOS + Windows | Linux + macOS + Windows | Linux + macOS + WindowsResume + fork | Linux + macOS + WindowsACP import |
| Cursor IDE | >= 3.12.17 | Linux + macOS | Not guaranteed | Linux + macOSRestore chat | Linux + macOSDesktop state |
| Cursor Agent | >= 2026.07.23-e383d2b | Linux + macOS | Linux + macOS | Linux + macOSResume | Linux + macOSNative session |
| Antigravity CLI | >= 1.1.8 | Linux + macOS | Linux + macOS | Linux + macOSResume | Linux + macOSLinux + macOS state import |
| Hermes | >= 0.19.1 | Linux + macOS | Linux + macOS | Linux + macOSResume + fork | Linux + macOSOfficial import |
| Antigravity Desktop | READ-ONLY | Linux + macOS | Not guaranteed | Not guaranteedRead-only | Not guaranteedSource only |
| Antigravity IDE | READ-ONLY | Linux + macOS | Not guaranteed | Not guaranteedRead-only | Not guaranteedSource only |
Run omni adapters --check-imports to see what is ready on your machine. Compatibility notes
One binary. One line.
Prebuilt for Linux and macOS on x86-64 and ARM64. Native Windows x86-64 is a preview.
curl -fsSL https://raw.githubusercontent.com/bvolpato/omnisession/main/install.sh | shVerifies the release checksum, then installs omni into ~/.local/bin. Fresh installs leave shell profiles unchanged and keep provider commands native, so add that directory to PATH if needed. Use this installer inside WSL too.
$ omni
browse every agent's sessions
$ omni search "rate limiter"
search without the picker
$ omni resume <session> --in codex
continue in another agent
$ omni fork <session>
branch, and choose where
$ omni doctor
check this machine
Questions.
How is this different from each agent's own resume?
An agent's own resume only sees its own history. omni lists every supported agent together, keeps related sessions grouped across agents, and still uses the agent's own resume or fork when you stay in the same agent.
Does OmniSession change my existing sessions?
No. A cross-agent transfer reads the source and continues in a separate new session. If you resume a session in place in its own agent, that agent keeps appending to it as usual.
What carries over when I switch agents?
A native import keeps ordered user and assistant messages plus bounded tool activity. A handoff starts a fresh session from a private file instead. Approvals, hidden reasoning, and permission state are left out. omni inspect reports the details for a specific source and target.
What if my agent's version isn't supported?
The native import can't run. On a terminal, omni says why and asks whether to retry, fork in the source agent, continue with a handoff, or cancel. Scripts fall back to the handoff when that is safe. omni adapters --check-imports shows what is ready before you try.
Does anything leave my machine?
OmniSession has no telemetry or hosted service. Update checks contact GitHub. The agent that continues a session receives the transferred history and keeps its own network behavior.
Can I use it on Windows?
Yes, as a preview. The native Windows x86-64 build and its checksum-verifying PowerShell installer are tested in Windows CI. Codex and Grok are supported there today; other agents are not yet. Inside WSL, use the Linux installer.
Do claude, codex, and the other commands still work as before?
Yes. OmniSession installs only omni. Commands such as claude --continue and omp update go straight to their providers.