Overview
Theshare command exports a session with:
- Automatic redaction - Secrets scrubbed using gitleaks patterns
- Save locally - Export to file with
--out - Upload to server - Send to configured endpoint (if auth is set)
- JSON format - Structured output for agents
Command Syntax
Session ID or prefix. Full UUIDs and short prefixes both work.
Write to file instead of uploading. If omitted and server is configured, uploads to server.
Output as JSON.
Examples
Preview redacted session
Save to file
Upload to server
If server is configured in~/.oobo/config.toml:
JSON output for agents
Shared Session Format
The exported JSON includes:Fields
| Field | Type | Description |
|---|---|---|
session_id | string | Full session UUID |
source | string | Tool name (cursor, claude, etc.) |
model | string | AI model used |
messages | array | Redacted conversation |
stats | object | Token counts and duration |
shared_at | string | ISO 8601 timestamp |
oobo_version | string | Oobo version that created the share |
Message Object
| Field | Type | Description |
|---|---|---|
role | string | user or assistant |
text | string | Message content (redacted) |
Stats Object
| Field | Type | Description |
|---|---|---|
input_tokens | number | Input tokens consumed |
output_tokens | number | Output tokens generated |
duration_secs | number | Session duration |
Secret Redaction
Oobo automatically redacts:- API keys - Patterns like
sk_live_...,Bearer ... - Access tokens - OAuth tokens, JWTs
- Passwords - Common password patterns
- Private keys - SSH keys, PEM files
- Database URLs - Connection strings with credentials
- Email addresses - Personal identifiers
- IP addresses - Private network info
Redaction Example
Original message:Server Upload
Configuration
To enable upload, configure server and API key:~/.oobo/config.toml:
Upload Behavior
When server is configured:Upload Response
Use Cases
Share for code review
Debug with support
Export for analysis
Share via URL
Privacy
- Redaction is automatic - No manual scrubbing needed
- Local by default - Nothing uploads without server config
- No project names - Shared sessions don’t include project path
- No file paths - Absolute paths are stripped
- Review before sharing - Always check redacted output
Error Handling
Session not found
No transcript
Upload failed
File Output
When using--out, the file contains the full shared session JSON:
- Offline review
- Version control (commit to repo)
- Custom processing (jq, scripts)
- Backup
Next Steps
Sessions
Learn how to find sessions to share
Export
Export sessions in other formats
