Import OpenCode sessions
If you used OpenCode in a project folder before Admiral, those sessions are still there. Admiral offers them for import, per project.
What import does
- Admiral lists the OpenCode sessions that belong to the project folder and are not in Admiral yet. The sidebar shows a count per project.
- You pick the sessions you want.
- Import copies each transcript to your machine: the newest 200 messages, with text, tool use, and attachment records.
Import copies. It does not move or change anything in OpenCode.
Import steps
- Open the project, or create one on the folder that holds your OpenCode work.
- Right-click the project and choose Project settings, or run Import sessions from the command palette.
- Open Import sessions. It lists the sessions of each agent that can list them, OpenCode, Claude Code, and Codex, grouped by agent, newest first.
- Choose Import on a session, Import all for one agent, or Import all at the top.
A session that is already in Admiral is not added twice. A session changed in the last minute may still be open in a terminal; continuing it in Admiral makes a fork.
Continue an imported session
After import, the session keeps its link to the original OpenCode session. Send a prompt, and Admiral resumes that same OpenCode session where it left off. Your agent sees the prior context, because the context lives in OpenCode on the host device.
Codex sessions
Admiral also lists the Codex CLI sessions you ran in the project folder or in a folder inside it. Codex keeps them in ~/.codex/sessions (or $CODEX_HOME/sessions).
- The copy holds your prompts, Codex's replies and reasoning summaries, its commands and searches, and the images it generated. The images go into your image library.
- Codex is retired for new work in Admiral, so an imported Codex session continues on OpenCode. Your first prompt there carries a short handoff of the conversation so far. The last line of the copy says this.
- The Codex session itself is unchanged. You can still open it in Codex.
Deleting an imported session
When you delete a session in Admiral, Admiral deletes it in OpenCode too, by default. If you want to keep the OpenCode original, remove the session from Admiral by archiving it instead.
Next steps
- Start a session: new work in the same project.
- Agents and models: how OpenCode relates to the other agents.