codex-run
v0.3.0
Published
A beautiful web UI for browsing Codex CLI conversation history
Maintainers
Readme
Codex Run
Browse and interact with your Codex CLI conversations in a beautiful web UI
Run the project simply by executing
npx codex-runThe browser will open automatically at http://localhost:12001.
Features
- Live conversation viewer - Stream Codex session updates in real time
- Session search and project filter - Quickly find the conversation you need
- New session creation - Start Codex threads directly from the UI with a project path
- In-browser messaging - Send follow-up prompts to an existing Codex thread
- Plan mode workflow - Toggle Plan mode and apply a proposed plan with one click
Usage
Install globally via npm:
npm install -g codex-runThen run it from any directory:
codex-runThe browser will open automatically at http://localhost:12001, showing all your Codex CLI conversations.
codex-run [options]
Options:
-V, --version Show version number
-p, --port <number> Port to listen on (default: 12001)
-d, --dir <path> Codex directory path (default: ~/.codex)
--dev Enable CORS for development (frontend at localhost:12000)
--no-open Do not open browser automatically
-h, --help Show helpCodex Interaction (v0.3.0)
codex-run now supports interactive Codex workflows in addition to history browsing:
- Create a new thread by setting a project path and clicking New Session
- Send prompts from the bottom composer
- Toggle Plan mode for plan-first turns
- Pick model and reasoning effort before sending
- Stop current generation with Stop
- Respond to
request_user_inputoption prompts in conversation view
Interactive mode uses codex under the hood. If your codex binary is not on PATH, set:
export CODEX_CLI_PATH="/absolute/path/to/codex"How It Works
Codex CLI stores conversation history in ~/.codex/. This tool reads that data and presents it in a web interface with:
- Session list - All your conversations, sorted by recency
- Project filter - Focus on a specific project
- Conversation view - Full message history with tool calls
- Session header - Shows conversation title, project name, and timestamp
- Resume command - Copies the command to resume the conversation
- Real-time updates - SSE streaming for live conversations
- Interactive Codex bridge - Creates/sends/interrupts turns via
codexapp-server
Requirements
- Node.js 20+
- Codex CLI installed and used at least once
Development
# Clone the repo
git clone https://github.com/asfsdsf/codex-run.git
cd codex-run
# Install dependencies
pnpm install
# Start development servers
pnpm dev
# Build for production
pnpm buildAcknowledgments
This project was originally based on claude-run by Kamran Ahmed. Special thanks to the author for the great design and inspiration.
License
MIT © Kamran Ahmed
