opencode-export
Export OpenCode session data
TLDR
Export the current session as JSON
$ opencode export
Export a specific session by ID$ opencode export [session_id]
SYNOPSIS
opencode export [sessionid_]
DESCRIPTION
opencode export exports session data from OpenCode as JSON. Sessions contain the full conversation history, tool calls, and context from an AI coding session. If no session ID is specified, the current or most recent session is exported. The output can be redirected to a file for archival or sharing.
INSTALL
sudo pacman -S opencode
brew install opencode
nix profile install nixpkgs#opencode
SEE ALSO
opencode(1), opencode-import(1), opencode-session(1)
