명령 개요
openclaw sessions 명령은 AI 어시스턴트의 대화 세션을 관리하는 데 사용됩니다. 각 사용자의 각 채널 대화는 독립적인 세션으로, 대화 이력과 컨텍스트 정보를 포함합니다.
세션 목록 조회
openclaw sessions list
대화 이력 조회
openclaw sessions history sess_abc123 --last 10
세션 내보내기
openclaw sessions export sess_abc123 --output session.json
openclaw sessions export sess_abc123 --output session.md --format markdown
openclaw sessions export --all --output sessions/
세션 정리
openclaw sessions clear sess_abc123
openclaw sessions delete sess_abc123
openclaw sessions cleanup --older-than 7d
openclaw sessions cleanup --inactive 24h
세션 설정
{
"sessions": {
"maxHistory": 50,
"maxTokens": 100000,
"timeout": 3600,
"storage": "file",
"cleanupInterval": 86400,
"retentionDays": 30
}
}
세션 검색
openclaw sessions search --user user001
openclaw sessions search --query "Python JSON"
openclaw sessions search --since "2026-03-15" --until "2026-03-17"
정리
openclaw sessions는 완전한 대화 세션 관리 기능을 제공합니다. 세션 파라미터를 적절히 설정하고 만료된 데이터를 정기적으로 정리하면, 좋은 사용자 경험을 유지하면서 스토리지 리소스 사용을 제어할 수 있습니다.