Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocse - opencode sessions exporter

Export your opencode sessions to clean, readable markdown files. Works on macOS, Linux, and Windows.

Installation

Download the binary for your platform from releases or build from source:

git clone https://github.com/sst/opencode-session-export.git
cd opencode-session-export
go build -o ocse ./main.go

Usage

# List available sessions
ocse list

# Export specific session
ocse export --session abc12345 --output session.md

# Export latest session
ocse export --latest --output latest.md

# Export all sessions
ocse export --all --output-dir ./exports/

# Export with costs, timing, and system events
ocse export --all --include-costs --include-timings --output-dir ./exports/

# Export with system event timeline (model/agent switches)
ocse export --all --include-system-events --output-dir ./exports/

The exported markdown includes session metadata, conversation flow, tool executions with inputs/outputs, file attachments, system event timeline (model/agent switches), and optional cost/timing information.

MIT License

About

export your opencode sessions to nicely formatted markdown

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages