by MeXenon
Codex session conversation chat export markdown interactive terminal tool.
# Add to your Claude Code skills
git clone https://github.com/MeXenon/codex-session-exportGuides for using cli tools skills like codex-session-export.
Last scanned: 8/28/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-28T15:56:03.837Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how codex-session-export compares with popular alternatives.
codex-session-export is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by MeXenon. Codex session conversation chat export markdown interactive terminal tool. It has 129 GitHub stars.
Yes. codex-session-export 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.
Clone the repository with "git clone https://github.com/MeXenon/codex-session-export" and add it to your Claude Code skills directory (see the Installation section above).
codex-session-export is primarily written in Python. It is open-source under MeXenon on GitHub, so you can review or fork the full source.
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-session-export against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
See comparison
The ultimate, terminal-native export pipeline for Codex.
If you find this tool useful, please consider leaving a ⭐️ on this repository! It helps others find the project.
When working with advanced agentic AI models (like Codex, ChatGPT, or Claude), they sometimes hallucinate, make mistakes, or lose track of their context. When things go wrong—or when you pull off an incredibly complex workflow—you need to analyze exactly what happened.
You might need to:
Currently, there’s no official feature built for this granular level of control. If you just export raw logs, you get a massive, unreadable wall of text.
Codex Session Manager (codex-md.py) is designed for maximum flexibility. It parses your local .jsonl session logs and provides a beautiful, interactive, fullscreen terminal UI (TUI) to dynamically filter exactly what you want to export into clean Markdown.
Because it’s a pure Python CLI tool, it's completely portable. You can use it locally on your laptop, or run it headlessly on a remote VPS. It is 100% compatible with the Codex CLI extension and app.
history_base references across rollout files, including completed same-thread history recorded in Codex's local history projection. Proven same-thread continuation pages appear as one browser entry; independent logs and forks remain separate. Missing or inconsistent base history produces an error instead of a partial export.exec wrappers, current canonical CommandExecution / FileChange / McpToolCall records, and newer Responses tool-item families. Mixed wrappers no longer hide patches or MCP calls, canonical records replace successful fallbacks without duplicates, and failed patch attempts remain visible.n/p — no more giant unreadable walls of sessions.◀/▶. Each defaults to showing all, so you only cut what you need.Undo/Rollback actions, and processes session compactions so you export the strict active memory window.rollout-*.jsonl.zst files are discovered, previewed and exported alongside plain .jsonl logs. A rollout stored in both forms is listed and exported once, using the plain copy.No complex dependencies. Just download and run the script using Python. The only optional dependency is for compressed session logs on Python < 3.14 (see below).
Run the software instantly without manually cloning the repo:
🐧 Linux / 🍎 macOS:
curl -sO https://raw.githubusercontent.com/MeXenon/codex-session-export/main/codex-md.py && python3 codex-md.py
🪟 Windows — Command Prompt:
curl -sO https://raw.githubusercontent.com/MeXenon/codex-session-export/main/codex-md.py && python codex-md.py
🪟 Windows — PowerShell 7:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/MeXenon/codex-session-export/main/codex-md.py" -OutFile "codex-md.py"; python codex-md.py
If you prefer to download or clone the file manually:
Linux / macOS:
python3 codex-md.py
Windows:
python codex-md.py
Codex can keep a rollout log as a Zstandard-compressed file named
rollout-*.jsonl.zst. Both rollout-*.jsonl and rollout-*.jsonl.zst files
are discovered, previewed and exported. When the same rollout exists in both
forms it is listed and exported once, using the plain copy. Compressed logs
are decompressed while they are read, so no decompressed copy is written to
disk; the parser still keeps the session records it extracts from the log.
Decompression uses compression.zstd from the standard library, which needs
Python 3.14 or newer. On older Python versions, install the optional
backports.zstd package:
python -m pip install backports.zstd
Nothing is installed automatically. Without a decompressor, compressed logs are reported with an error that names the missing dependency instead of silently disappearing, and the remaining sessions stay usable.
The test suite generates synthetic session logs in temporary directories and never reads a real Codex session:
python -m unittest discover -v
Browse & select a session: The script scans ~/.codex/sessions once and opens a paginated browser with two view modes:
Navigation (single keypress — no Enter needed, except when typing numbers):
← / → (or ↑ / ↓, or n / p) — previous / next page.1, or 1, 3, 5; numbers are page-local, press Enter to confirm). In the Projects view a number instead opens that project.a — convert every session shown on the current page.s — find a session by session ID, rollout filename, or long ID prefix.m — toggle between All Sessions and Projects views.b — back to the project list (when you're inside a project).q — quit.Choose extraction scope:
197k/258k) is displayed dynamically in the UI.Filter & Refine: