Skip to content

Latest commit

 

History

History
561 lines (402 loc) · 17.8 KB

cli-reference.md

File metadata and controls

561 lines (402 loc) · 17.8 KB

Command reference

Every command and option of sessionbridge, as --help shows them in English. sessionbridge COMMAND --help shows the same text in the language you use, and the user guide explains how the commands fit together.

--json, --no-color and --lang, listed under sessionbridge, work with every command and anywhere on the line: sessionbridge list --json.

Commands

sessionbridge

Continue Claude Code, Codex and OpenCode conversations in any of them. With no command, a search opens: choose a conversation and continue it in another assistant.

sessionbridge [OPTIONS] COMMAND [ARGS]...
Option Description
--json Return a versioned JSON response.
--no-color Turn off terminal colors.
--all-projects Search every folder, without highlighting the current one.
--lang TEXT Language for this run only; sessionbridge language lists the ones there are.
--version Show the installed version and exit.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or customize the installation.

Commands: list, show, convert, export, import, resume, doctor, undo, recover, transfers, language, update, profile, wsl, sync.

sessionbridge list

List conversations (metadata only, without reading the messages).

sessionbridge list [OPTIONS]
Option Description
--tool TEXT, --from TEXT Only one assistant: claude, codex or opencode.
--profile TEXT Only one profile, for example codex-win.
--search TEXT Words from the title, the folder or the ID; accents do not matter.
--cwd TEXT Working folder; the current one by default.
--all-projects List sessions from every folder.
--archived, --not-archived Only archived ones, or only those not archived.
--parent TEXT Only subagents or forks of this session.
--since TEXT Updated since this date (YYYY-MM-DD).
--until TEXT Updated until this date (YYYY-MM-DD).

sessionbridge show

Show every message of a session.

sessionbridge show [OPTIONS] KEY
Argument Description
KEY Session ID (profile:id, or a unique prefix).
Option Description
--snapshot Read a snapshot even if the session is still open.

sessionbridge convert

Continue a session in another assistant; --dry-run only shows the preview.

sessionbridge convert [OPTIONS] KEY
Argument Description
KEY Source session ID (profile:id, or a unique prefix).
Option Description
--to TEXT Target profile, for example codex-win. Required.
--cwd TEXT Working folder in the target; the source's by default.
--context TEXT current: since the last compaction; all: the full history. Default: current.
--context-from TEXT ID of the message the context starts from.
--snapshot Read a snapshot even if the session is still open.
--mode TEXT native or handoff; handoff is always explicit. Default: native.
--model TEXT Model to open the target with.
--new-copy Create another copy even if one already exists.
--dry-run Show the preview without writing anything.
--variant TEXT Version to take if you edited messages; the current one by default.
--resume Resume when done; requires a verified native conversion.
--sync Keep this conversation linked automatically.
--sync-name TEXT Name of the linked conversation.

sessionbridge export

Export a session to a portable package.

sessionbridge export [OPTIONS] KEY
Argument Description
KEY Session ID (profile:id, or a unique prefix).
Option Description
--output PATH Package to create. Required.
--snapshot Read a snapshot even if the session is still open.
--include-file PATH Extra file to include; repeatable.

sessionbridge import

Import a portable package into an assistant.

sessionbridge import [OPTIONS] PACKAGE
Argument Description
PACKAGE Package exported with sessionbridge export.
Option Description
--to TEXT Target profile, for example codex-win. Required.
--cwd TEXT Working folder in the target.
--context TEXT current: since the last compaction; all: the full history. Default: current.
--context-from TEXT ID of the message the context starts from.
--snapshot No effect on packages; accepted for compatibility.
--mode TEXT native or handoff; handoff is always explicit. Default: native.
--model TEXT Model to open the target with.
--new-copy Create another copy even if one already exists.
--dry-run Show the preview without writing anything.
--variant TEXT Version to take if you edited messages; the current one by default.

sessionbridge resume

Open the session in its assistant, without sending any message.

sessionbridge resume [OPTIONS] KEY
Argument Description
KEY ID of a session, a transfer or a synchronized conversation.

sessionbridge doctor

Check which assistants can be read and written.

sessionbridge doctor [OPTIONS]

sessionbridge undo

Undo a conversion while it is still safe to.

sessionbridge undo [OPTIONS] TRANSFER_ID
Argument Description
TRANSFER_ID Transfer ID (tr_…).

sessionbridge recover

Complete an interrupted transfer from its verified archive.

sessionbridge recover [OPTIONS] TRANSFER_ID
Argument Description
TRANSFER_ID Transfer ID (tr_…).

sessionbridge transfers

List the transfers made.

sessionbridge transfers [OPTIONS]

sessionbridge language

Show or change Session Bridge's language; auto goes back to the system language.

sessionbridge language [OPTIONS] [en|es|auto]
Argument Description
`[en es

sessionbridge update

Check for a newer version of Session Bridge and install it.

sessionbridge update [OPTIONS]
Option Description
--check Only say whether a newer version is published.
--yes Install without asking.
--startup-check TEXT Look for updates when Session Bridge starts: on (the default) or off.

sessionbridge profile

Manage each assistant's profiles.

sessionbridge profile [OPTIONS] COMMAND [ARGS]...

Commands: list, add.

sessionbridge profile list

List the configured profiles.

sessionbridge profile list [OPTIONS]

sessionbridge profile add

Add a local or WSL profile; needs arguments in non-interactive mode.

sessionbridge profile add [OPTIONS]
Option Description
--id TEXT Profile identifier, for example codex-win.
--tool TEXT Assistant: claude, codex or opencode.
--home TEXT The assistant's data folder.
--environment TEXT Environment: windows, wsl or posix. Default: windows.
--distro TEXT WSL distribution.
--executable TEXT The assistant's executable.
--helper TEXT The helper's Python inside WSL.
--version TEXT Installed version of the assistant.
--machine TEXT Machine the profile belongs to. Default: local.

sessionbridge wsl

Inspect or prepare WSL explicitly.

sessionbridge wsl [OPTIONS] COMMAND [ARGS]...

Commands: status, install, start.

sessionbridge wsl status

Show the available distributions without starting them.

sessionbridge wsl status [OPTIONS]

sessionbridge wsl install

Install the helper in an explicitly chosen distribution.

sessionbridge wsl install [OPTIONS]
Option Description
--distro TEXT WSL distribution. Required.
--wheel FILE Session Bridge wheel to install. Required.

sessionbridge wsl start

Start an explicitly chosen distribution.

sessionbridge wsl start [OPTIONS]
Option Description
--distro TEXT WSL distribution. Required.

sessionbridge sync

Keep conversations synchronized between assistants.

sessionbridge sync [OPTIONS] COMMAND [ARGS]...

Commands: link, list, status, check, open, select, pause, resume, unlink, export, backup, restore, detach, start, stop, worker-status, run.

sessionbridge sync link

Link a session and turn on background sync.

sessionbridge sync link [OPTIONS] KEY
Argument Description
KEY Source session: profile:identifier.
Option Description
--name TEXT Name of the link.
--transfer TEXT An already verified native transfer.
--no-start Link without starting the worker.

sessionbridge sync list

Show the links and their state.

sessionbridge sync list [OPTIONS]

sessionbridge sync status

Show one link, or all of them if you give none.

sessionbridge sync status [OPTIONS] [LINK]
Argument Description
[LINK] Name or identifier of the link.

sessionbridge sync check

Capture new finished turns without opening any assistant.

sessionbridge sync check [OPTIONS] [LINK]
Argument Description
[LINK] Link; without one, every link is checked.

sessionbridge sync open

Prepare the current revision; the assistant opens only from a terminal.

sessionbridge sync open [OPTIONS] LINK
Argument Description
LINK
Option Description
--to TEXT Native target profile. Required.
--branch TEXT Continuation to open if there are several: a version or the assistant's profile.
--cwd TEXT The assistant's working folder.
--model TEXT The assistant's model when it opens.
--new-copy Explicitly create another copy and keep the earlier attempts.

sessionbridge sync select

Choose which continuation to follow; the others are kept.

sessionbridge sync select [OPTIONS] LINK REVISION
Argument Description
LINK
REVISION Version (or its start) or profile of the assistant where you continued, e.g. claude-win.

sessionbridge sync pause

Pause capturing this link.

sessionbridge sync pause [OPTIONS] LINK
Argument Description
LINK

sessionbridge sync resume

Resume capturing and start the worker if needed.

sessionbridge sync resume [OPTIONS] LINK
Argument Description
LINK
Option Description
--no-start Resume without starting the worker.

sessionbridge sync unlink

Unlink without deleting files or native sessions.

sessionbridge sync unlink [OPTIONS] LINK
Argument Description
LINK

sessionbridge sync export

Export a revision to a portable package.

sessionbridge sync export [OPTIONS] LINK
Argument Description
LINK
Option Description
--output PATH New output package. Required.
--branch TEXT Continuation to export if there are several: a version or a profile.

sessionbridge sync backup

Create a verified backup of the sync store.

sessionbridge sync backup [OPTIONS]
Option Description
--output PATH New backup. Required.

sessionbridge sync restore

Restore Session Bridge's own history; it does not configure or open the assistants.

sessionbridge sync restore [OPTIONS] BACKUP
Argument Description
BACKUP Backup of the sync store.
Option Description
--into PATH New or empty data folder. Required.

sessionbridge sync detach

Stop following an old source; its sessions, branches and files are kept.

sessionbridge sync detach [OPTIONS] LINK KEY
Argument Description
LINK
KEY

sessionbridge sync start

Start the local worker and check that it responds.

sessionbridge sync start [OPTIONS]

sessionbridge sync stop

Ask the worker to stop and wait for it to confirm.

sessionbridge sync stop [OPTIONS]

sessionbridge sync worker-status

Show the worker's identity and its last heartbeat.

sessionbridge sync worker-status [OPTIONS]

sessionbridge sync run

Run capture in the foreground; Ctrl+C stops the worker.

sessionbridge sync run [OPTIONS]
Option Description
--once Check once and exit.
--interval FLOAT Interval in seconds, between 0.1 and 3600. Default: 2.0.