Skip to content

CLI Reference ​

mochi is the flow CLI with Mochi's commands added. Every command, flow's included, has a page generated from its own help: see mochi and the list in the sidebar. This page is the overview of what Mochi adds.

The rest (exec and every verb, browse, logs, workspace, vault, secret, template, cache, config, mcp) behaves as in flow. Two differences: mochi sync also refreshes discovered tasks, and flow's cli update is replaced by mochi cli update.

Every command that prints results takes -o, --output text|json.

Every command accepts -h, --help, plus the global flags -L, --log-level and --sync. Commands marked πŸ”‘ need a license.

Discovery ​

CommandDescription
mochi discover [workspace] πŸ”‘Find the tasks a workspace already defines and make them runnable. --dry-run, --force, --only, --providers
mochi discover status [workspace] πŸ”‘What the last scan found, without scanning again
mochi syncAlso re-scans the current workspace and every workspace discovered before

Guide: Finding Tasks

AI ​

CommandDescription
mochi ai describe <verb> <id> πŸ”‘Suggest a one-line description for an executable
mochi ai document [workspace] πŸ”‘Describe every undescribed executable. --write, --overwrite, -n
mochi ai explain <verb> <id> πŸ”‘Plain-English explanation of an executable
mochi ai diagnose <run-id> πŸ”‘Likely cause and fixes for a failed run
mochi ai insights [workspace] πŸ”‘Recommendations from run statistics. -n
mochi ai chat [prompt] πŸ”‘Ask a question with tool access to your workspaces
mochi ai usage πŸ”‘Mochi gateway usage and credits for your license
mochi ai usage local πŸ”‘Locally recorded usage for your own providers
mochi ai config view πŸ”‘Show the current provider configuration
mochi ai config set provider <name> πŸ”‘Configure and activate a provider. See AI Providers
mochi ai config set tools --tier <tier> πŸ”‘Highest tool tier chat may use: read-only, caution, edit, full
mochi ai config set usage πŸ”‘Retention for the local usage log
mochi ai config test πŸ”‘Check that the configured provider actually works

Guides: AI Assistant, Coding Agents

Search, favorites, and stats ​

CommandDescription
mochi search [query] πŸ”‘Usage-ranked search across executables and workspaces. -n
mochi favorite add|remove πŸ”‘Star or unstar a workspace or executable. --workspace <name> or --executable <ref>
mochi favorite list πŸ”‘List favorites
mochi stats [workspace] πŸ”‘Runs, success rates, and busiest executables. -n

Guide: Run History & Search

Views ​

CommandDescription
mochi views listList saved views
mochi views show <view>Render a view
mochi views refs <view>Print the executable references a view selects
mochi views resetDelete every view, including a views file that can't be read

Guide: Views

Editing ​

CommandDescription
mochi executable edit REF --data <json> πŸ”‘Replace one executable in place, keeping comments and siblings
mochi executable set-description REF TEXT πŸ”‘Set or clear one executable's description, including a discovered one
mochi executable add --file <path> --content <yaml> πŸ”‘Append executables to an existing flow file
mochi workspace edit NAME πŸ”‘Edit --description, --display-name, --tags in place

Guide: Workspaces & Secrets

Vault presets ​

CommandDescription
mochi vault preset list πŸ”‘Available presets
mochi vault preset preflight --preset <p> πŸ”‘Check the provider is installed and usable
mochi vault preset connect --preset <p> πŸ”‘Run the provider's sign-in step
mochi vault preset browse --preset <p> πŸ”‘List what a provider holds
mochi vault preset render NAME --preset <p> πŸ”‘Render a vault configuration file. --out, --set key=value

Guide: Workspaces & Secrets

Containers ​

CommandDescription
mochi container set <name> --image <image> πŸ”‘Create or replace a container profile. --runtime, --volume, --network, --user
mochi container list πŸ”‘List container profiles
mochi container get <name> πŸ”‘Show one profile
mochi container remove <name> πŸ”‘Delete a profile
mochi container runtimes πŸ”‘Which of Docker and Podman are installed, and whether their engines are running
mochi <verb> <ref> --container <name>Run an exec executable inside a profile

Guide: Workspaces & Secrets

Desktop ​

CommandDescription
mochi desktop πŸ”‘Launch the desktop app (MOCHI_DESKTOP_PATH overrides the location)
mochi desktop open <target> πŸ”‘Open a mochi:// link or executable reference in the app

Guide: Desktop App

License ​

CommandDescription
mochi license setValidate and register a license key, entered at a masked prompt, read with --file, or piped on stdin
mochi license trialStart a 7-day trial. --email
mochi license statusLicense state, plan, and key dates on this machine

Guide: Plans & Licensing

Updates ​

CommandDescription
mochi cli updateReplace an installer-placed CLI with the latest release, checksum-verified. --check

Guide: Updating

Telemetry ​

CommandDescription
mochi telemetry statusWhether anonymous usage reporting is on, and the install ID
mochi telemetry enableTurn usage reporting on
mochi telemetry disableTurn it off and delete the install ID

Reference: Telemetry

Trust ​

CommandDescription
mochi trust listEvery workspace's trust state and rules
mochi trust set <workspace> trusted|restrictedTrust or restrict a workspace
mochi trust reset <workspace>Forget a workspace's trust and rules
mochi trust check <verb> <id>Whether a task can run without asking
mochi trust rule add <workspace> allow|ask <pattern>Allow or ask for matching tasks
mochi trust rule remove <workspace> <pattern>Remove a rule

Guide: Workspace Trust