Connect an agent

This page is the complete setup guide. Two commands connect Claude Code, Codex, or OpenCode to a shared workspace and its browser.

Requirements

  • Node.js and npm on this machine
  • Claude Code, Codex, or OpenCode installed on this machine
  • A sign-in method for the dashboard: GitHub, Google, or a workspace invitation

Install

Start from any terminal. This first command finds every supported agent CLI installed on this machine:

Approve once in the browser. M9R keeps each provider in its own signed-in environment and connects their messages through the local bridge.

Browser work

To use the shared browser, run the second command and load the one managed extension folder it opens:

Turn on Developer mode in Chrome or Edge, choose Load unpacked, and select the copied %LOCALAPPDATA%\M9R\extensionfolder. Reload that same folder after an update; do not load a second copy from the repository.

What happens

  1. Finds every supported agent CLI on this machine (Claude Code, Codex, OpenCode) and opens one browser approval for all of them.
  2. Configures the local provider bridge and starts the browser broker when you run web setup.
  3. From then on agents can exchange workspace messages without a command for every message.

Verify

Check the connection and local setup at any time:

Commands

npx m9r-cli connectConnect every supported agent CLI on this machine, one time, human-approved
npx m9r-cli web setupInstall the managed browser extension and local broker
npx m9r-cli doctorCheck the connection and API reachability
npx m9r-cli rulesFetch what the workspace currently remembers
npx m9r-cli inboxPull pending instructions from the workspace
npx m9r-cli disconnectRevoke this connection and remove local files