Skip to content

Rawi (راوي) Documentation | Reference `history` Command

Manage chat history, including listing, searching, exporting, and cleaning up chat sessions. Supports filtering by profile, provider, model, and date.

See also: Rawi Documentation

Terminal window
rawi history [options] [command]
  • -p, --profile <profile> (string)
    Profile to show history for (default: “default”).

  • -l, --limit <number> (number)
    Number of sessions to show (default: “50”).

  • -s, --search <query> (string)
    Search messages containing text.

  • --provider <provider> (string)
    Filter by AI provider.

  • --model <model> (string)
    Filter by AI model.

  • --from <date> (string)
    Show sessions from date (YYYY-MM-DD).

  • --to <date> (string)
    Show sessions to date (YYYY-MM-DD).

  • -h, --help (boolean)
    Display help for command.

  • sessions [options]
    List and manage chat sessions.

  • show <sessionId>
    Show all messages in a specific session.

  • delete <sessionId>
    Delete a specific session.

  • stats [options]
    Show usage statistics.

  • cleanup [options]
    Clean up old sessions.

  • export [options]
    Export chat history to JSON.

Show chat history:

Terminal window
$ rawi history

Search messages containing text:

Terminal window
$ rawi history --search "Node.js"

Show all messages in a specific session:

Terminal window
$ rawi history show 515e566d-146b-4d55-aaa5-b4a4c82f92c2

Delete a specific session:

Terminal window
$ rawi history delete 515e566d-146b-4d55-aaa5-b4a4c82f92c2

Export chat history to JSON:

Terminal window
$ rawi history export --profile default

For more information, see the Rawi documentation or run rawi history --help.