A lightweight, zero-configuration replay studio for OpenCode sessions. This replaces the complex structure with a simple 2-file approach.
Clone the repository to your local machine:
git clone https://github.com/AbdoKnbGit/opencode-replay.git
cd opencode-replay- Ensure you have Node.js installed.
- Find your session ID by looking at the name of your log file in your OpenCode logs directory:
- Windows:
~\AppData\Local\share\opencode\log\or~\.local\share\opencode\log\ - macOS / Linux:
~/.local/share/opencode/log/
- Windows:
- Run the export script with your session ID:
node export-session.mjs 2026-05-24T105838Alternatively, to automatically grab and play the most recent session, run:
node export-session.mjs --latestThe script will automatically parse the SQLite database, generate the appropriate .jsonl format, and immediately launch studio.html in your browser to monitor the session!