Skip to main content

openclaw sessions

저장된 conversation session 목록을 조회합니다.
Scope selection:
  • default: configured default agent store
  • --agent <id>: 하나의 configured agent store
  • --all-agents: 모든 configured agent store를 집계
  • --store <path>: 명시적 store path (--agent, --all-agents와 함께 사용 불가)
JSON example: openclaw sessions --all-agents --json:

Cleanup maintenance

다음 write cycle을 기다리지 않고 바로 maintenance를 실행할 수 있습니다.
openclaw sessions cleanup은 config의 session.maintenance 설정을 사용합니다.
  • Scope 참고: openclaw sessions cleanup은 session store와 transcript만 관리합니다. cron/runs/<jobId>.jsonl 같은 cron run log는 정리하지 않으며, 이는 Cron configurationcron.runLog.maxBytes, cron.runLog.keepLines로 관리됩니다. 자세한 내용은 Cron maintenance를 참고하세요.
  • --dry-run: 실제 write 없이 얼마나 prune/cap될지 미리 봅니다.
    • text mode에서는 Action, Key, Age, Model, Flags 컬럼의 per-session action table을 출력합니다.
  • --enforce: session.maintenance.modewarn이어도 maintenance를 적용합니다.
  • --active-key <key>: 특정 active key를 disk-budget eviction에서 보호합니다.
  • --agent <id>: 하나의 configured agent store만 cleanup합니다.
  • --all-agents: 모든 configured agent store를 cleanup합니다.
  • --store <path>: 특정 sessions.json 파일에 대해 실행합니다.
  • --json: JSON summary를 출력합니다. --all-agents와 함께 쓰면 store별 summary가 포함됩니다.
openclaw sessions cleanup --all-agents --dry-run --json:
Related: