Mogplex Docs
Platform

Mogplex CLI

Use the Mogplex CLI as a terminal cockpit for repo-local runs, approvals, diffs, MCP, memory, models, cost, and export.

The Mogplex CLI is the terminal cockpit for active repo work.

Run mogplex when you want to start, steer, inspect, approve, pause, resume, kill, or export an agent run from the terminal.

What the CLI is best at

  • watching a run end to end without leaving the repo
  • approving or rejecting gated tool calls as they happen
  • opening diffs, MCP detail, memory, model choice, cost, and export drawers
  • attaching to an in-flight run that started somewhere else
  • using slash commands for operator control

The CLI is built around live structured events. It is not only a command launcher and it is not only a log viewer.

Main entrypoints

NeedStart here
Install the CLIInstallation
First local runCLI Quickstart
Understand the cockpitCLI Overview
Learn the control modelCLI Concepts
Type commands in the composerSlash Commands
Use panels, drawers, keys, cost, or exportCLI Reference
Run without the interactive UIHeadless Runs

Where local state lives

The CLI reads local Mogplex state from ~/.mogplex, including auth, permissions, project overrides, and redacted logs.

Project-level behavior can also come from repo-local configuration and permission rules. Use the CLI pages when you need exact behavior for approval gates, permission modes, attach mode, transports, drawers, or keybindings.

CLI vs headless runs

Use the interactive CLI when a human operator should supervise the run.

Use Headless Runs when a CI job, dashboard, script, or other automation should start a run and consume events without opening the terminal UI.

Both paths still rely on the same hosted run concepts and API-backed state.

App relationship

The app owns shared account setup and routing. The CLI owns local supervision.

That means a healthy CLI experience usually depends on:

Edit on GitHub

On this page