Overview
Thesessions command lets you browse, search, and export AI chat sessions. By default it launches an interactive TUI. With --agent, it returns structured JSON.
Subcommands
sessions list
List sessions for the current project (or all projects with--all).
Show sessions from all projects instead of just the current project.
Filter by tool (cursor, claude, gemini, windsurf, aider, copilot, zed, trae, codex, opencode).
Maximum number of sessions to return.
Output as JSON for AI agents and scripts.
sessions show
Show a session’s full conversation.Session ID or prefix. Full UUIDs and short prefixes both work.
Output as JSON with full message array.
sessions search
Search sessions by keyword. Matches session name, first message, and transcript content.Search query. Matches session name, ID, source, mode, and first message.
Search across all projects instead of just the current project.
Maximum number of results to return.
Output as JSON.
sessions export
Export a session to a file in markdown or JSON format.Session ID or prefix.
Output format:
md (markdown) or json.Output file path. If omitted, prints to stdout.
Default Behavior
When you runoobo sessions with no subcommand, it defaults to sessions list with an interactive TUI:
Interactive TUI
The TUI shows:- Source - Tool that created the session (Cursor, Claude, Gemini, etc.)
- Model - AI model used (claude-sonnet-4, gpt-4, etc.)
- Tokens - Input + output token counts
- Duration - Session length
- Title - Session name or first message
- Arrow keys - Move between sessions
- Enter - View full conversation
- Esc - Exit
Use Cases
Find recent sessions
Search for a specific conversation
Get session IDs for scripting
Export a session for sharing
View sessions from all projects
Filter by tool
Output Fields
JSON Session Object
| Field | Type | Description |
|---|---|---|
session_id | string | Full session UUID |
name | string | Session title |
source | string | Tool name (cursor, claude, gemini, etc.) |
mode | string | Session mode (composer, chat, agent, etc.) |
model | string | AI model used |
input_tokens | number | Input tokens consumed |
output_tokens | number | Output tokens generated |
duration_secs | number | Session duration in seconds |
files_touched | array | List of files modified |
tool_calls | number | Number of tool/function calls |
project_path | string | Absolute path to project |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
is_estimated | boolean | True if tokens are estimated (tiktoken) |
Next Steps
Share Sessions
Learn how to share redacted sessions
Stats
View token usage analytics across all sessions
