Back to feed
Dev.to
Dev.to
6/30/2026
Preserving Context When Moving from ChatGPT to Codex CLI

Preserving Context When Moving from ChatGPT to Codex CLI

Short summary

A developer built chatgpt2codex, a CLI tool that imports ChatGPT conversations into local Codex CLI sessions, bridging the awkward handoff between exploration and implementation. The tool reads public ChatGPT share URLs, normalizes messages, writes Codex session metadata, and indexes sessions for resume flows—with options to preview, force-replace, or target specific project directories. It's open-source, requires Node.js 22.13.0+, and demonstrates how local agent tools need both file writes and surrounding state integration to work seamlessly.

  • chatgpt2codex bridges ChatGPT conversations and local Codex CLI development workflows
  • Imports shared ChatGPT URLs as local sessions with full metadata and resume support
  • Open-source tool showing best practices for local agent tooling integration

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more