Exporting Sessions
Export sessions in human-readable or machine-readable formats.
Basic Export
Section titled “Basic Export”# Export as markdown (default)lore export <session-id>
# Export as JSONlore export <session-id> --format json
# Write to a filelore export <session-id> -o session.mdlore export <session-id> --format json -o session.jsonRedaction
Section titled “Redaction”Remove sensitive content before sharing:
# Automatic redaction of common secretslore export <session-id> --redact
# Add custom patternslore export <session-id> --redact --redact-pattern "internal_\w+"Built-in Redaction Patterns
Section titled “Built-in Redaction Patterns”The --redact flag automatically removes:
- API keys and tokens (
sk-,Bearer,api_key=) - AWS credentials (
AKIA...,aws_secret_access_key) - GitHub tokens (
ghp_,gho_,ghu_,ghs_,ghr_) - Email addresses
- IPv4 addresses
- Private keys (RSA, DSA, EC headers)
- Connection strings (mysql://, postgres://, mongodb://, redis://)
Redacted content is replaced with [REDACTED].
Custom Patterns
Section titled “Custom Patterns”Add your own regex patterns:
lore export <session-id> --redact --redact-pattern "secret_\w+" --redact-pattern "internal_api_\d+"Use Cases
Section titled “Use Cases”- Sharing: Export a session to share with a colleague
- Documentation: Include AI conversations in project docs
- Backup: Archive important sessions
- Analysis: Export to JSON for custom processing