Switching between OpenCode and Claude Code often means losing your conversation history.
claude-opencode-sessions solves this. It imports OpenCode sessions for the current repository into Claude Code.
Install it from within Claude Code:
/plugin marketplace add barseghyanartur/claude-opencode-sessions /plugin install opencode-sessions@barseghyanartur
Run:
/opencode-sessions:import
Then open:
/resume
Your imported sessions appear with an [opencode] prefix. Pick one and continue where you stopped.
The import uses no model calls and spends no tokens. It also skips sessions that have not changed.
Originally published as GitHub Gist #126ee43aaec37f6f15b9b809344adf0e
Comments