Skip to content

CLI

khiipd is the primary way to drive Khiip. Most commands talk to a running daemon, so start khiipd serve first. khiipd <command> --help is always authoritative.

khiipd serve

Run the FastAPI daemon.

FlagDefaultPurpose
--host127.0.0.1bind address
--port8478port
--log-levelinfodebug / info / warning / error
--reloadoffauto-reload on code changes (dev only)

khiipd capture <url>

Capture a URL via the running daemon.

FlagDefaultPurpose
--source-hintforce a source: x / web / wiki / pdf / youtube
--host / --port127.0.0.1:8478daemon address
--timeout30request timeout (seconds)

khiipd recall "<query>"

Semantic recall over the embedded corpus. Quote multi-word queries.

FlagDefaultPurpose
--limit10max results
--host / --port / --timeoutas abovedaemon address / timeout

khiipd refetch <capture_id> [--media | --wayback]

Re-run one dimension of a capture. The two flags are mutually exclusive; with neither, refetch re-extracts.

FlagBehaviour
(none)re-extract → creates a new superseding capture (append-only)
--mediare-walk the media-fetcher registry in place
--waybackre-submit to the Wayback Machine in place
--timeoutrequest timeout (seconds; default 60)

khiipd validate

Check vault ↔ SQLite invariants per ADR-0009 §C3. Read-only.

FlagDefaultPurpose
--vault-pathfrom config.tomlvault root override
--db-pathfrom config.tomlSQLite path override
--jsonoffemit a machine-readable report instead of text

khiipd auth show | rotate

Manage the daemon API key (stored in ~/.config/khiip/auth.toml, mode 600):

  • khiipd auth show — print the key fingerprint
  • khiipd auth rotate — generate a new key

khiipd version

Print the package version.