Bring your OpenCode chats
One command reads OpenCode's session database and imports them with dates and tool calls: `idapt chat import --from opencode`.
How to migrate
- 1
Install the CLI
One global install; the same CLI the quickstarts use.
npm i -g @idapt/clinpm i -g @idapt/cli - 2
Import your chats
Run the importer. It signs you in if needed (browser), opens the session database read-only (XDG data dir), and previews what will be imported. Default scope: sessions started in the current directory; use --all for every project on the machine.
idapt chat import --from opencodeidapt chat import --from opencode - 3
Keep OpenCode while you evaluate
Point OpenCode at idapt's endpoint and compare on your real workload before you switch fully.
Quickstart
What moves
| OpenCode | In idapt | How |
|---|---|---|
| Session history in scope | Chats in the workspace, source dates preserved | Automatic |
| Tool calls + results | History rows; folded into text when a model replays them and never re-executed | Automatic |
| Subagent sessions | Not imported in v1 | No equivalent |