CLI Reference
Install the Looki CLI, sign in, and query your data from the terminal.
Installation
Install the CLI, connect your Looki account, and make your first query.
npm install -g @looki-ai/cli
looki login
looki memory overview--help to view command options, for example looki moment list --help.Commands
Browse the reference or filter by what you’re looking for. Open a command for options and a copyable example.
looki loginSign in to Looki through your browser.
Follow the verification URL and device code shown in your terminal to authorize the CLI.
looki loginlooki logoutClear local credentials and revoke the session.
looki logoutlooki auth statusCheck your session and current account.
looki auth status --jsonlooki auth refreshRefresh your current credentials manually.
looki auth refreshlooki memory overviewRead your current memory overview, grouped by category.
looki memory overview
looki memory overview --jsonlooki moment listList moments by date or date range.
Use --date for a single day, or --from-date and --to-date for an inclusive range. These forms cannot be combined. Sort is asc or desc (default desc); limit is 1–100 (default 20).
looki moment list --date 2026-10-01 --limit 20looki moment search "query"Find a moment with natural language.
Limit is 1–100 (default 10). Keep the query, date filters, and limit unchanged when using a pagination cursor.
looki moment search "coffee with Alex" --limit 10looki moment datesFind dates that have saved moments.
Both ends of the date range are required.
looki moment dates --from-date 2026-10-01 --to-date 2026-10-07looki moment view <moment-id>Read a moment in full.
looki moment view <moment-id> --jsonlooki moment files <moment-id>List the media attached to a moment.
looki moment files <moment-id> --only-highlight --limit 20looki journal listBrowse your saved journals.
looki journal list --date 2026-10-01 --jsonlooki journal datesList dates containing journal entries.
Both ends of the date range are required.
looki journal dates --from-date 2026-10-01 --to-date 2026-10-07looki journal view <journal-id>Read a saved journal and its attachments.
looki journal view <journal-id>looki summary listRetrieve saved daily, weekly, or chat summaries.
--type is required: daily, weekly, or chat. Daily and chat ranges allow up to 7 inclusive days; weekly allows up to 31 days, filtered by week end date. Choose --date or provide both range dates.
looki summary list --type daily --date 2026-10-01 --jsonlooki health listRead your saved health reports.
Choose --date or provide both range dates. Ranges allow up to 30 inclusive calendar days.
looki health list --from-date 2026-10-01 --to-date 2026-10-07looki chat historyRetrieve conversation messages, newest first.
--since is optional and requires an explicit timezone when supplied. Limit is 1–100 (default 10). Keep --since unchanged or omitted across pages.
looki chat history --since "2026-10-01T09:00:00+08:00" --limit 10 --jsonlooki config listList settings explicitly saved in your configuration.
looki config list --jsonlooki config set <key> <value>Set a configuration value.
looki config set language enlooki config get <key>Read a setting, including applicable defaults.
looki config get languagelooki config unset <key>Restore a setting to its built-in value.
looki config unset languagelooki config pathPrint the path to your configuration file.
looki config pathScripting and pagination
Query commands return readable text by default. Add --json to receive the original server response without an interactive prompt.
looki moment list --date 2026-10-01 --json
looki journal list --limit 10 --json| Output mode | Pagination behavior |
|---|---|
| Interactive terminal | Press Enter to load another page. Press Ctrl+C to exit. Normal output hides cursors. |
| Piped or redirected | Returns one page and never waits for input. |
--json | Returns one original server response. When data.has_more is true, pass data.next_cursor to --cursor, keeping the query and filters unchanged. |
Date ranges are inclusive. Use --date for one day, or combine --from-date and --to-date for a range.
Configuration
Your settings live in ~/.looki/config.toml. Set LOOKI_HOME to use another directory. Saved settings override the applicable defaults.
looki config path
looki config list
looki config set language en
looki config get language
looki config unset languageChanging your API deployment requires signing in again. Use looki config unset <key> to return a setting to its built-in value.