Install
openclaw skills install @wufei-png/opencode-session-toolkitInspect and export OpenCode sessions safely.
openclaw skills install @wufei-png/opencode-session-toolkitUse the bundled read-only CLI from this skill directory:
./scripts/opencode_sessions.py --help
./scripts/opencode_sessions.py doctor before the first query or after an OpenCode upgrade.list: discover sessions and filter metadata.show: read one transcript.search: search literal text in titles, directories, or messages.export: write selected sessions as Markdown or JSONL.schema: inspect live core tables and indexes.<command> --help before using unfamiliar options.--format json when another tool will consume stdout.mode=ro or PRAGMA query_only protections.--include-sensitive only when the user explicitly requests reasoning or complete payloads.--overwrite is explicit.account, control_account, or credential.--all for an unfiltered export.references/cli.md for command selection, filter semantics, and export behavior.references/schema.md when diagnosing schema compatibility or interpreting fields.references/queries.md only when the CLI cannot answer an advanced read-only question.For raw SQL fallback, resolve the path with opencode db path, use sqlite3 -readonly, parameterize or safely quote user values, and inspect the live schema first.