Install the CLI
Install once on your machine. Node.js must already be installed.
npm i -g m9r-cliDOCS / GET STARTED
A practical guide, not a magic trick. Hosted connection and native local setup are separate paths; preview commands are labeled throughout.
The self-contained Windows engine is distributed as a versioned GitHub release when one is published. It does not require Node.js or npm. Download the ZIP and adjacent SHA-256 file from the same M9R engine releases ↗; verify the checksum before extracting, then review install-m9r.ps1 and INSTALLATION.txt before running the installer. The executables are currently unsigned: a checksum verifies that the file matches the downloaded sidecar, but is not a publisher signature.
The installer shows the engine’s exact proposed changes before asking for approval. It installs per-user (no administrator access), backs up files before changing them, and can reverse its managed setup. Do not use a command that pipes downloaded code directly into PowerShell.
First-run setup adds M9R-managed instructions and hooks to supported local agent configuration and installs the engine and hook helper under %USERPROFILE%\.m9r\bin. The local engine watches supported local session files for status and explicit agent mentions; this local setup does not upload those files or require an M9R account. Hosted connections are separate. Codex may show its own /hooks trust screen, which remains optional and under your control.
After setup, start a new supported agent session. To review or reverse the managed local setup, run m9r-engine.exe uninstall from %USERPROFILE%\.m9r\bin, or use the package’s install-m9r.ps1 -Uninstall wrapper.
Release status: no public standalone-engine release is linked from this page yet. Until one is published, use the CLI installation path below.
Node.js, a terminal, and the provider apps you intend to connect. The CLI package declares Node 18 or newer; use a currently supported Node release. Keep your provider accounts signed in.
CLI source and requirements ↗ · Create an account for hosted connections.
Install. Approve. Connect.
Keep your agents where they are. Connect hosted work today, or inspect the native local preview separately. These are different setup paths.
Install once on your machine. Node.js must already be installed.
npm i -g m9r-cliDetect installed agents and start a human-approved connection. Follow the browser approval flow; keep your provider apps signed in.
m9r-cli connectConnect the current workspace with human approval and install its agent instructions. This is not the same as the local machine setup below.
m9r-cli initCheck the connection and API reachability. Native preview builds also report local hooks, instructions, and remaining user steps. Read the reported fixes; a hook being installed is not proof an agent is connected.
m9r-cli doctorNative preview: show the proposed Claude Code settings and instruction changes without writing them. Not yet verified in the published npm release.
m9r-cli setup --dry-runNative preview: ask before adding Claude Code hooks and a CLAUDE.md block, backing up existing files. Automatic Codex and OpenCode setup is not included in this path yet.
m9r-cli setupNative preview: queue a task for the recipient’s next prompt. Queued does not mean delivered or completed; the recipient must have working hooks and an active session.
m9r-cli send @claude "Review this task."Native preview: remove setup-managed hooks and instructions. Restore backups when safe, preserving later user edits. This does not revoke a hosted connection.
m9r-cli uninstallRevoke this hosted connection and remove its local token and volatile files. The CLI also removes the login-startup entry.
m9r-cli disconnectInstall Node and the agents you want to use. Keep each provider’s app signed in; M9R does not sign in to those accounts for you.
Start a new Claude Code session after local setup. Restart Claude Desktop after registering tools there; local setup currently targets Claude Code, not Desktop.
Where Codex hooks have been installed, open /hooks in Codex and review them. M9R cannot bypass provider approval. Local setup does not currently install those hooks.
Use doctor and follow the actual fixes it prints. Background startup and native integrations vary by platform and build; they are not a universal one-command guarantee.
In Claude: @codex Review this task.
In Codex: @claude Continue the research.
Something not connecting? Troubleshooting ↗
Use m9r-cli, not m9r. Check that Node and npm are installed and npm’s global executable directory is on your PATH. Open a new terminal after installation.
The standalone Windows engine and npm CLI are distinct distributions. In the standalone build, use m9r-engine.exe setup or m9r-engine.exe uninstall. In the npm package, use the commands shown by m9r-cli --help. Do not assume a command exists in a distribution until that version documents it.
Check that its app is installed and logged in, then run the diagnostic command supported by your installed distribution. Local setup can install supported hooks and instructions, but does not automatically make every provider reachable or authenticate an agent with M9R.
Start a new Claude Code session after setup. Where Codex hooks are separately installed, review them in /hooks. After configuring Claude Desktop tools, restart Desktop.
A queue entry is not a delivery receipt. Confirm the recipient has an installed integration and active session. Local preview tasks appear on the next prompt, not as guaranteed background execution.
The standalone Windows package uses m9r-engine.exe uninstall; the npm distribution uses the uninstall command it documents. Hosted connections are separate. Uninstall restores managed configuration changes and is not the same as purging local M9R data.