agent-cost-report
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Give an AI agent persistent, cross-session long-term memory through MindMemOS. Covers installing and authenticating the mindmemos CLI, the full command interface (add / search / get / get-image / update / delete / feedback / dreaming, with image support on add and search) with
Claude Code
$ npx -y skills add mindscale-noah/MindMemOS --skill mindmemos-cli --agent claude-code
Codex
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a codex -y
Cursor
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a cursor -y
Gemini CLI
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a gemini-cli -y
GitHub Copilot
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a github-copilot -y
OpenCode
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a opencode -y
Windsurf
$ npx skills add mindscale-noah/MindMemOS --skill mindmemos-cli -a windsurf -y
name: mindmemos-cli description: Give an AI agent persistent, cross-session long-term memory through MindMemOS. Covers installing and authenticating the mindmemos CLI, the full command interface (add / search / get / get-image / update / delete / feedback / dreaming, with image support on add and search) with parameters and examples, guidance on which capability to use when, plus a Python SDK example. To wire memory into a specific agent host (OpenClaw, DeepSeek Harness, Codex, Claude, etc.), see references/.
MindMemOS is a long-term memory layer for AI agents. The `mindmemos` CLI is the integration surface: every memory operation is a subcommand that prints either a human-readable line or, with `--json`, stable machine-readable output. Any agent or script can drive memory by shelling out to it.
To connect memory to a specific agent host (e.g. an editor or assistant that supports plugins), the host calls this same CLI. Host-specific install guides live under `references/` — see [Host integrations](#host-integrations).
---
The CLI ships as the Python package `mindmemos-sdk` and exposes a `mindmemos` executable.
pip install mindmemos-sdk # or, isolated so it's on PATH globally (recommended): pipx install mindmemos-sdk uv tool install mindmemos-sdk
Authenticate once. This writes a local config (API key, default user id, base URL). Operations that require a user inherit the default user id, but `memory search` does not: omit `--user-id` for project-wide search or pass it explicitly for user-scoped search.
mindmemos auth # non-interactive: mindmemos auth --api-key sk-... --user-id alice --base-url https://api.mindmemos.example.com
Verify:
mindmemos config show # masked key, base_url, user_id mindmemos memory search "test" # confirms connectivity with a project-wide search
---
General shape: `mindmemos <group> <command> [args] [options]`.
`request_id` and includes it in command responses for tracing.
Identity & scoping options (where accepted): `--user-id` (the human the memory belongs to), `--app-id`, `--agent-id`, `--session-id`. Project isolation is derived from the API key, not from these flags. For `memory search`, `--user-id` is per-request and does not inherit the user configured by `mindmemos auth`.
1. `mindmemos auth` once. 2. During a session: `memory search` to recall, `memory add` to store turns. 3. Maintenance / background: `memory get` to inspect, `memory update` / `memory delete` to correct, `memory feedback` and `memory dreaming` to let the system consolidate.
Extracts durable facts from messages and persists them (with dedup/merge against existing memory).
| Option | Meaning | |---|---| | `--content TEXT` | single message body (paired with `--role`) | | `--role {user,assistant,system,tool}` | role for `--content` (default `user`) | | `--image PATH_OR_URL` | attach an image to the `--content` message (local file or http(s) URL); repeatable; needs the server's multimodal mode | | `--messages-json '[...]'` | JSON array of messages; overrides `--content` (multi-message input embeds images here) | | `--messages-json-file PATH` | read the JSON array from a file (`-` = stdin) | | `--user-id`, `--app-id`, `--agent-id`, `--session-id` | scoping | | `--metadata-json '{...}'` | business metadata object | | `--skill-context-json '[...]'` | explicit skill trace context | | `--async` | enqueue and return immediately (no extracted memories in response); needs the server's Kafka (`kafka.enabled=true`) — otherwise rejected with `add.async_unavailable` | | `--json` | machine-readable output |
# single line
mindmemos memory add --content "I'm allergic to peanuts" --user-id alice
# a conversation turn
mindmemos memory add --messages-json \
'[{"role":"user","content":"book me a window seat next time"},
{"role":"assistant","content":"Noted, window seats going forward."}]' \
--session-id sess-42 --json
# fire-and-forget
mindmemos memory add --content "prefers dark mode" --async
# with an image attached to the message
mindmemos memory add --content "look at this photo of my desk" --image ./desk.png --user-id aliceUse before answering or acting when the agent needs prior user preferences, project facts, decisions, or past experience related to the current request.
| Option | Meaning | |---|---| | `query` (positional) | search text | | `--top-k N` | results to return (default 10) | | `--search-strategy {fast,agentic}` | `fast` = vector recall; `agentic` = multi-step reasoning over memory | | `--rerank` | rerank candidates for precision | | `--score-threshold N` | minimum rerank relevance score (0–1); only effective with `--rerank` | | `--token-budget N` | strict token budget for the result set; enables token-budget retention (packing under a token limit) — the result is still capped by `--top-k`, whichever limit is tighter | | `--filter '{...}'` | structured filter DSL, JSON object over allowed fields such as `user_id`, `app_id`, `session_id`, `mem_type`, `created_at` (e.g. `{"mem_type":"fact"}`) | | `--query-image PATH_OR_URL` | attach an image to the query (local file or http(s) URL); repeatable; implies `--multimodal` | | `--multimodal` | also search stored images; needs the server's multimodal mode | | `--user-id`, `--app-id`, `--agent-id`, `--session-id` | scoping; omit `--user-id` for project-wide search | | `--json` | machine-readable output |
mindmemos memory search "what are the user's
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…