Sessions are durable OpenSquilla conversations. They let you inspect past work, resume a conversation, export a transcript, or stop a turn that is still running.
Use sessions when you want to:
- continue a previous chat from the CLI or Web UI;
- find the session key for an artifact, cost report, or channel thread;
- export a transcript for debugging or sharing;
- abort a long-running turn without deleting the session;
- delete old sessions after you no longer need them.
Session commands use the gateway RPC surface. Start or connect to the gateway before running most session commands:
opensquilla gateway runOr use the managed background gateway:
opensquilla gateway start --json
opensquilla gateway statusopensquilla sessions list
opensquilla sessions list --limit 20
opensquilla sessions list --status idle
opensquilla sessions list --agent main
opensquilla sessions list --channel telegram
opensquilla sessions list --since 2026-05-01Use --json for scripts:
opensquilla sessions list --jsonopensquilla sessions show <session-key>
opensquilla sessions show <session-key> --jsonThe output includes the resolved session key, agent id, status, model, update time, title, and the latest preview when available.
opensquilla sessions resume <session-key>This opens terminal chat on the existing session. Use it when you want to keep the same conversation state instead of starting a fresh chat.
opensquilla sessions abort <session-key>
opensquilla sessions abort <session-key> --jsonAbort stops the running turn if one exists. It does not delete the session.
Export Markdown:
opensquilla sessions export <session-key>
opensquilla sessions export <session-key> --output session.mdExport JSON:
opensquilla sessions export <session-key> --format json --output session.jsonExported transcripts are useful for bug reports, audits, or moving a task into a document. Remove secrets, private local paths, provider tokens, and private channel identifiers before sharing an export publicly.
opensquilla sessions delete <session-key>
opensquilla sessions delete <session-key> --yesDeleting a session is for cleanup. Export first if you may need the transcript later.
The Web UI uses the same session system. In the control console, use the chat session selector to switch sessions, inspect status, and continue recent work.
Open:
http://127.0.0.1:18791/control/
If commands cannot reach the gateway:
opensquilla gateway status
opensquilla doctorIf old context appears summarized, the session may have compacted older history. This is normal for long sessions under context pressure. Export the session when exact text matters.
Read next:
Docs index · Product guide · Improve this page · Report a docs issue