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
}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 101 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
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory 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.
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.
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.No complex dependencies. Just download and run the script using Python.
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
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:
↑ / ↓ - Navigate the filter listEnter / Space - Toggle a section ON/OFF◀ / ▶ on 💻 Terminal Output Cap - Adjust max lines per terminal/tool output block◀ / ▶ on 👤 User Message Cap - Keep only the last N user messages◀ / ▶ on 🤖 Agent Message Cap - Keep only the last N agent responses◀ / ▶ on 🧠 Agent Reasoning Cap - Keep only the last N agent reasoning blocks◀ / ▶ on 🔒 Internal Reasoning Cap - Keep only the last N internal reasoning blocks1-7 - Load presetsExport Destination: Press Q when you're ready, and you will be asked where to send the output:
.md file.Save Location: If you choose File or Both, choose where the .md file should go:
codex-md.py (Default).cwd, when that folder exists locally. Multi-project exports save each session beside its own project.Existing Files: If the file already exists, choose:
-2.md.Open Output: After saving, choose whether to open the Markdown file in the default app, show the output folder in File Explorer/Finder/Linux file manager, or do nothing.
When pushing AI to its limits, the conversation log becomes your most valuable codebase asset. This tool guarantees you have complete ownership, visibility, and control over that data.
Note: In previous versions, selecting 'Full Session' could sometimes cause the program to crash on very large JSON logs. This has been fully resolved.
If this tool saved your context window (or your sanity), please give it a ⭐️!