clipmem 0.2.7

macOS clipboard memory backed by SQLite and searchable from OpenClaw
Documentation
# clipmem

[![Crates.io](https://img.shields.io/crates/v/clipmem.svg)](https://crates.io/crates/clipmem)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Rust 1.87+](https://img.shields.io/badge/rust-1.87%2B-orange.svg)](https://www.rust-lang.org)

<table>
  <tr>
    <td align="center" width="50%">
      <img src="docs/clipmem-screenshot.png" alt="WhatsApp conversation asking OpenClaw what was copied, with clipmem recall output" width="500"><br>
      <sub>Ask OpenClaw what you copied.</sub>
    </td>
    <td align="center" width="50%">
      <img src="docs/clipmem-menu-bar-panel.png" alt="clipmem menu bar dropdown showing capture status and recent clipboard entries" width="340"><br>
      <sub>Browse recent clips from the menu bar.</sub>
    </td>
  </tr>
</table>

A searchable, local-only clipboard history for macOS. `clipmem` watches the system clipboard, archives every observed state into a local SQLite database, and exposes retrieval commands that return human-readable text or structured JSON — designed so agents (OpenClaw and others) can recall things you've copied.

## Requirements

- **macOS** — clipboard capture uses `NSPasteboard` via `objc2`
- **Apple Silicon** for the prebuilt Homebrew package
- **Rust 1.87+** for building from source

## Install

Homebrew CLI only (Apple Silicon):

```bash
brew install tristanmanchester/tap/clipmem
clipmem setup
```

Homebrew CLI + menu bar app (Apple Silicon):

```bash
brew install --cask tristanmanchester/tap/clipmem-app
open -a ClipmemMenuBar
```

See [docs/installation.md](docs/installation.md) for Cargo, source builds, upgrades, and Intel Mac support.

## Quick start

```bash
clipmem setup                              # initialize and start background capture
clipmem recall "what was that command?"     # best-first answer
clipmem recent --hours 24                  # recent unique items
clipmem doctor                             # check database health
```

See [docs/getting-started.md](docs/getting-started.md) for a full walkthrough.

## Documentation

- [Installation]docs/installation.md — all install methods, requirements, and upgrades
- [Getting started]docs/getting-started.md — setup, background capture, and first queries
- [Searching and filtering]docs/searching-and-filtering.md — recall, search, timeline, filters, and pagination
- [Output formats]docs/output-formats.md — JSON envelope, TOON, exit codes, and script-friendly guarantees
- [Managing your archive]docs/managing-your-archive.md — restore, delete, export, and capture policy
- [Command reference]docs/command-reference.md — exhaustive flag-level reference for every command
- [Agent integration]docs/agent-integration.md — OpenClaw skill installation and agent usage
- [Menu bar app]docs/menu-bar-app.md — native SwiftUI menu bar frontend
- [Privacy and security]docs/privacy-and-security.md — local-only guarantees, file permissions, and uninstall
- [Architecture]docs/architecture.md — capture model, deduplication, search strategy, and limitations
- [Troubleshooting]docs/troubleshooting.md — diagnose empty results, watcher issues, and database problems
- [Contributing]docs/contributing.md — project layout, build, test, and release workflow

## License

`clipmem` is released under the MIT License. See [LICENSE](LICENSE).