Codex_Relay

作者 Red-noblue已验证

Cross-device export/import + local vault for Codex CLI sessions (.jsonl). Resume the same session on macOS/Windows/Manage, backup, and transfer Codex CLI sessions (.jsonl) across devices with preview + conflict-safe import.Linux.

189
Stars
0
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Red-noblue/Codex_Relay

快速入门

使用 Codex_Relay 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

CodexRelay

跨设备传递/备份 Codex CLI session(.jsonl)的桌面管理工具(macOS / Windows / Linux)。

目标:让你在不同电脑/不同系统上,也能通过 codex resume <session_id> 继续同一个会话(通过导出/导入 session 文件实现)。

注:本项目为社区工具,和 OpenAI 无官方从属关系。

技术栈:Tauri v2 + React + TypeScript + SQLite(后端 Rust)。

Why / 使用场景

  • 多平台项目(Win / macOS / Linux)来回测试,需要把同一个 Codex 会话带到另一台机器继续解决兼容问题
  • 两台电脑协同:用微信/网盘/邮件/AirDrop 传 zip 包即可迁移会话
  • 备份:在本地建立“会话版本库”(vault + 历史记录),防止手滑覆盖/误删

How It Works / 工作方式

Codex CLI 会把会话写在本地 CODEX_HOME/sessions/**/rollout-*.jsonl(默认常见路径:~/.codex/)。

CodexRelay 负责:

  1. 扫描会话并展示列表
  2. 导出:把选中的会话打包为 zip(可合并为一个包或每会话单独包;默认导出到系统 Downloads)
  3. 导入:先解析/校验(manifest + size/sha256)并预览,再按冲突策略写入 CODEX_HOME
  4. 在目标机执行:codex resume <session_id>

Features (MVP)

  • Sessions:扫描 CODEX_HOME/sessions/**/rollout-*.jsonl
  • Export:
    • 生成可传输的 bundle.zipmanifest.json + rollout.jsonl
    • 支持“合并为一个 zip”或“每会话单独 zip”,默认导出到 Downloads
  • Import:
    • 导入前先解析/校验并预览最近消息,再决定是否写入
    • 支持多选 zip
    • 支持导入“合并导出包”(外层 zip 内含 bundles/*.zip,可选 batch_manifest.json
    • 冲突策略(recommended):本机已存在同 session_id 且指纹不同 -> “改 ID 导入”(保留两条分叉都可 resume)
  • History / Vault:每次导入/导出/改ID/恢复都会存档 + 落库(SQLite);支持收藏/标签;支持手动清理
  • Restore:把任意历史版本恢复回 CODEX_HOME(会记录一次恢复动作)
  • Change ID:改写 session_meta.payload.id(默认不改 forked_from_id
  • Utilities:从 md/txt/“带噪声文本”中自动提取会话 ID(UUID)并去重

相关格式说明:docs/BUNDLE_FORMAT.md

Quick Start / 快速上手

  1. 在机器 A:勾选会话 -> 导出 zip(默认在 Downloads)
  2. 把 zip 传到机器 B(微信/网盘/邮件/AirDrop 均可)
  3. 在机器 B:导入 -> 预览/确认 -> 写入
  4. 在机器 B:codex resume <session_id>

Download / 下载

  • macOS:优先用 Homebrew(见下方 Install/Update),或从 GitHub Releases 下载 DMG
  • Windows / Linux:从 GitHub Releases 下载安装包

Dev

pnpm install
pnpm tauri dev

Build (Desktop Bundles)

pnpm install
pnpm tauri build

产物目录(不同平台会生成不同格式):

  • src-tauri/target/release/bundle/**
    • macOS: bundle/dmg/*.dmg
    • Windows: bundle/nsis/*-setup.exe(需要在 Windows 上构建;或用 GitHub Actions)
    • Linux(Ubuntu): bundle/deb/*.deb

注:为避免 Linux 产物过大(AppImage 往往会打包大量依赖导致体积显著增大),当前默认只构建 deb;如需 AppImage / rpm,可在 src-tauri/tauri.conf.jsonbundle.targets 里补回。

macOS “已损坏,无法打开”

结论:如果不做 Apple Developer ID 签名 + 公证(notarization),从浏览器下载的 DMG/App 很可能会被 macOS Gatekeeper 拦截并提示“已损坏,无法打开”(这是系统安全机制,并非一定是包真的坏了)。

免费分发场景下,通常只能给用户提供“放行”方式:

  1. 右键(或按住 Control 点击)App -> “打开”(会出现额外的允许打开选项)

如果你是自己使用(信任该来源),可以在把 App 拖到 /Applications 后执行:

sudo xattr -dr com.apple.quarantine /Applications/CodexRelay.app

GitHub Actions:见 .github/workflows/build-bundles.yml(支持手动触发 workflow_dispatch;打 tag v* 会自动构建并发布 GitHub Release,附带 SHA256SUMS.txt 校验文件)。

Install (macOS via Homebrew)

提供一个 Homebrew Tap(由另一个账号维护):star-alp/homebrew-tap-CodexRelay

brew tap star-alp/tap-codexrelay
brew install --cask codexrelay

注:Homebrew 的 --no-quarantine 参数已 deprecated(未来可能移除)。如遇 Gatekeeper 拦截,请按上文右键“打开”或执行 xattr 放行即可。

Update (macOS)

  • 推荐一条命令搞定(同时兼容“之前手动拖拽 DMG 安装 / Homebrew 没有接管 / 升级失败导致 cask 记录丢失”等情况):
brew tap star-alp/tap-codexrelay && brew update && (brew upgrade --cask codexrelay || brew install --cask --force codexrelay)
  • 如果你是通过 Homebrew 安装(brew list --cask codexrelay 能查到):
    • brew update && brew upgrade --cask codexrelay
  • 如果你看到 Error: Cask 'codexrelay' is not installed.,说明你之前不是通过 Homebrew 安装(例如手动 DMG 拖拽):
    • 继续用 DMG 更新:下载最新 Release 的 .dmg,将 App 拖到 /Applications 覆盖即可(如遇 Gatekeeper,按上文 xattr 放行)。
    • 或让 Homebrew “接管”管理(会覆盖 /Applications/CodexRelay.app,不影响应用数据/存档库):
      • brew tap star-alp/tap-codexrelay && brew install --cask --force codexrelay
  • 应用内:设置 -> 更新 -> 检查更新(会提示最新版本并提供打开 Release 的按钮)。

Recommended IDE Setup

Keywords

codex, codex-cli, session, resume, jsonl, backup, export, import, cross-device, cross-platform, tauri, rust, react, typescript, sqlite, homebrew, cask, macos, windows, linux

常见问题

What is Codex_Relay?

Codex_Relay is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Red-noblue. Cross-device export/import + local vault for Codex CLI sessions (.jsonl). Resume the same session on macOS/Windows/Manage, backup, and transfer Codex CLI sessions (.jsonl) across devices with preview + conflict-safe import.Linux. It has 189 GitHub stars.

Is Codex_Relay safe to use?

Yes. Codex_Relay passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install Codex_Relay?

Clone the repository with "git clone https://github.com/Red-noblue/Codex_Relay" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is Codex_Relay written in?

Codex_Relay is primarily written in TypeScript. It is open-source under Red-noblue on GitHub, so you can review or fork the full source.

Are there alternatives to Codex_Relay?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Codex_Relay against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI 工具ai-skillsantigravity
查看详情

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI 工具
查看详情

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI 工具
查看详情

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
Codex_Relay — Claude Code AI Skill | SkillTip