Skip to content

CLI Reference

Global Options

FlagDefaultDescription
-c, --config <PATH>moneypenny.tomlPath to config file
--versionShow version
--helpShow help

mp init

Create moneypenny.toml and the data directory. Downloads the default local embedding model if not present.

Terminal window
mp init

mp start

Start the gateway, spawn worker processes for all configured agents, and bind channel adapters.

Terminal window
mp start

mp stop

Gracefully shut down the gateway and all workers.

Terminal window
mp stop

mp health

Show system health status.

Terminal window
mp health

mp setup

Register Moneypenny as an MCP server with an AI coding agent.

mp setup claude-code [--agent <NAME>] [--global]

Register in Claude Code. Writes .mcp.json in the project root, or ~/.claude.json with --global.

Terminal window
mp setup claude-code
mp setup claude-code --global

mp setup cortex [--agent <NAME>]

Register in Cortex Code CLI via cortex mcp add.

Terminal window
mp setup cortex

mp setup openclaw [--agent <NAME>]

Register in OpenClaw. Writes to ~/.clawdbot/clawdbot.json.

Terminal window
mp setup openclaw
FlagDescription
--agent <NAME>Agent name (defaults to first configured agent)
--global(Claude Code only) Write to global ~/.claude.json

mp chat

Interactive CLI chat with an agent.

Terminal window
mp chat [AGENT] [--session-id <ID>]
ArgumentDescription
AGENTAgent name (defaults to first configured agent)
--session-idResume an existing session

mp send

Send a one-off message and print the response.

Terminal window
mp send <AGENT> <MESSAGE> [--session-id <ID>]
ArgumentDescription
AGENTAgent name
MESSAGEMessage text
--session-idResume an existing session

mp agent

Manage agents.

mp agent list

List all registered agents.

mp agent create <NAME>

Create a new agent.

mp agent delete <NAME> [--confirm]

Delete an agent and its database file.

mp agent status [NAME]

Show agent status and memory stats. Without a name, shows all agents.

mp agent config <NAME> <KEY> <VALUE>

Set an agent configuration value at runtime.

Terminal window
mp agent config main persona "You are a senior SRE."

mp session

Manage conversation sessions.

mp session list [AGENT] [--limit <N>]

List recent sessions for an agent. Default limit is 20.


mp facts

Manage facts (extracted knowledge).

mp facts list [AGENT]

List all facts showing pointer and summary.

mp facts search <QUERY> [AGENT]

Search across facts using hybrid retrieval.

mp facts inspect <ID>

Show the full fact record with audit history.

mp facts expand <ID>

Expand a compacted pointer to full content.

mp facts reset-compaction [ID] [--all] [--confirm] [AGENT]

Reset compaction state. Use --all --confirm to reset all facts.

mp facts promote <ID> [--scope <SCOPE>]

Promote a fact’s visibility scope. Default target scope is shared.

mp facts delete <ID> [--confirm]

Soft-delete a fact (marks as superseded, retained for audit).


mp ingest

Ingest documents into the knowledge store.

Terminal window
mp ingest [PATH] [AGENT] [OPTIONS]
FlagDescription
--url <URL>Ingest from a URL
--openclaw-file <PATH>Ingest OpenClaw JSONL events
--replayReplay from start (ignore prior cursor)
--statusShow recent ingest runs
--replay-run <ID>Replay a specific prior run
--replay-latestReplay the latest matching run
--replay-offset <N>Offset for --replay-latest (0 = newest)
--status-filter <STATUS>Filter by run status
--file-filter <STRING>Filter by file path substring
--dry-runPreview replay without writing
--applyApply replay writes
--source <LABEL>Source label (default: openclaw)
--limit <N>Limit for status output (default: 20)
--cortexIngest all Cortex Code CLI conversations
--claude-code [SLUG]Ingest Claude Code conversations (optionally scoped to a project slug)

mp knowledge

Manage the knowledge store.

mp knowledge list

List ingested documents with title, source, and chunk count.

mp knowledge search <QUERY>

Search ingested knowledge chunks.


mp skill

Manage skills.

mp skill add <PATH> [AGENT]

Add a skill from a markdown file.

mp skill list [AGENT]

List skills with usage stats.

mp skill promote <ID>

Manually promote a skill’s retrieval weight.


mp policy

Manage policies.

mp policy list

List all active policies.

mp policy add [OPTIONS]

Add a policy rule.

FlagDescription
--name <NAME>Policy name (required)
--effect <EFFECT>allow, deny, or audit (default: deny)
--priority <N>Higher = evaluated first (default: 0)
--actor <PATTERN>Actor glob pattern
--action <PATTERN>Action glob pattern
--resource <PATTERN>Resource glob pattern
--argument <PATTERN>Argument glob pattern
--channel <PATTERN>Channel glob pattern
--sql <REGEX>SQL regex pattern
--rule-type <TYPE>rate_limit, retry_loop, token_budget, time_window
--rule-config <JSON>Behavioral rule configuration
--message <TEXT>Denial/audit message

mp policy test <INPUT>

Dry-run a policy evaluation.

mp policy violations [--last <WINDOW>]

Show recent policy violations. Default window is 7d.

mp policy load <FILE>

Load policies from a JSON file.


mp job

Manage scheduled jobs.

mp job list [AGENT]

List scheduled jobs.

mp job create [OPTIONS]

Create a new job.

FlagDescription
--name <NAME>Job name (required)
--schedule <CRON>Cron schedule (required)
--job-type <TYPE>prompt, tool, js, or pipeline (required)
--payload <JSON>Job payload (required)
--agent <NAME>Agent name

mp job run <ID>

Trigger a job immediately.

mp job pause <ID>

Pause a scheduled job.

mp job history [ID]

View job run history. Without an ID, shows all jobs.


mp audit

View the audit trail.

Terminal window
mp audit [AGENT]

mp audit search <QUERY>

Search audit entries.

mp audit export [--format <FORMAT>]

Export audit trail. Formats: json (default), csv, sql.


mp sync

Manage CRDT sync.

mp sync status [AGENT]

Show site ID, database version, and per-table sync status.

mp sync now [AGENT]

Bidirectional sync with all configured peers.

mp sync push --to <AGENT> [AGENT]

One-way push to a peer.

mp sync pull --from <AGENT> [AGENT]

One-way pull from a peer.

mp sync connect <URL> [AGENT]

Set or update the cloud sync URL.


mp db

Direct database access (read-only).

mp db query <SQL> [AGENT]

Run a read-only SQL query against an agent’s database.

Terminal window
mp db query "SELECT pointer, confidence FROM facts WHERE status='active'" main

mp db schema [AGENT]

Show the database schema.


mp sidecar

Run the canonical operation sidecar over stdio (JSONL). Reads operations from stdin, writes results to stdout.

Terminal window
echo '{"op":"memory.search","args":{"query":"test"}}' | mp sidecar [--agent <NAME>]