Getting Started
maestria runs anywhere Node.js 22+ is available. No install required - use npx to run it directly from npm.
Quick Start
Section titled “Quick Start”Check what’s installed
Section titled “Check what’s installed”npx maestria@latest statusyarn dlx maestria@latest statuspnpx maestria@latest statusbunx maestria@latest statusdeno x maestria@latest statusnlx maestria@latest statusThis detects which coding agent platforms are available on your machine and shows the install status for each:
Maestria Status ───────────────────────────────────── OpenCode Available: ✓ Installed: ✓ v0.6.0 Latest: 0.6.2 Pi Available: ✓ Installed: - not installed Latest: 0.4.1 Kimi Code Available: ✗ Installed: - not installed Latest: unknownRun status.
Install for a platform
Section titled “Install for a platform”Interactive install (pick from a list of detected platforms):
npx maestria@latest installyarn dlx maestria@latest installpnpx maestria@latest installbunx maestria@latest installdeno x maestria@latest installnlx maestria@latest installInstall for all detected platforms:
npx maestria@latest install --allyarn dlx maestria@latest install --allpnpx maestria@latest install --allbunx maestria@latest install --alldeno x maestria@latest install --allnlx maestria@latest install --allInstall for a specific platform:
npx maestria@latest install opencodeyarn dlx maestria@latest install opencodepnpx maestria@latest install opencodebunx maestria@latest install opencodedeno x maestria@latest install opencodenlx maestria@latest install opencodenpx maestria@latest install piyarn dlx maestria@latest install pipnpx maestria@latest install pibunx maestria@latest install pideno x maestria@latest install pinlx maestria@latest install pinpx maestria@latest install kimi-codeyarn dlx maestria@latest install kimi-codepnpx maestria@latest install kimi-codebunx maestria@latest install kimi-codedeno x maestria@latest install kimi-codenlx maestria@latest install kimi-codeUpdate to the latest version
Section titled “Update to the latest version”Interactive update:
npx maestria@latest updateyarn dlx maestria@latest updatepnpx maestria@latest updatebunx maestria@latest updatedeno x maestria@latest updatenlx maestria@latest updateUpdate all:
npx maestria@latest update --allyarn dlx maestria@latest update --allpnpx maestria@latest update --allbunx maestria@latest update --alldeno x maestria@latest update --allnlx maestria@latest update --allUpdate a specific platform:
npx maestria@latest update opencodeyarn dlx maestria@latest update opencodepnpx maestria@latest update opencodebunx maestria@latest update opencodedeno x maestria@latest update opencodenlx maestria@latest update opencodeUpdate to a specific version:
npx maestria@latest update opencode --version 0.5.0yarn dlx maestria@latest update opencode --version 0.5.0pnpx maestria@latest update opencode --version 0.5.0bunx maestria@latest update opencode --version 0.5.0deno x maestria@latest update opencode --version 0.5.0nlx maestria@latest update opencode --version 0.5.0Configure per-agent models
Section titled “Configure per-agent models”Give each maestria specialist its own model. Interactively:
npx maestria@latest configure opencodeyarn dlx maestria@latest configure opencodepnpx maestria@latest configure opencodebunx maestria@latest configure opencodedeno x maestria@latest configure opencodenlx maestria@latest configure opencodeOr non-interactively for CI:
npx maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashyarn dlx maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashpnpx maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashbunx maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashdeno x maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashnlx maestria@latest configure pi --global --quiet --set builder=opencode-go/deepseek-v4-flashUse an empty value to reset an agent to inherit the session model:
npx maestria@latest configure opencode --set reviewer=yarn dlx maestria@latest configure opencode --set reviewer=pnpx maestria@latest configure opencode --set reviewer=bunx maestria@latest configure opencode --set reviewer=deno x maestria@latest configure opencode --set reviewer=nlx maestria@latest configure opencode --set reviewer=Per-agent models are supported on opencode, pi, and omp. See the command reference for details.
Prerequisites
Section titled “Prerequisites”- Node.js 22+ - required for the bundled
.mjsdistribution - Platform CLI tool - the CLI detects platforms by checking for their binary on
$PATH. The platform must be installed before maestria can be installed for it:- OpenCode -
opencodebinary - Pi -
pibinary - Kimi Code -
kimibinary - Hermes Agent -
hermesbinary
- OpenCode -
JSON Output
Section titled “JSON Output”All commands accept --json for machine-readable output. Useful for CI scripts, dashboards, or IDE integrations:
npx maestria@latest status --jsonyarn dlx maestria@latest status --jsonpnpx maestria@latest status --jsonbunx maestria@latest status --jsondeno x maestria@latest status --jsonnlx maestria@latest status --json{ "platforms": [ { "id": "opencode", "label": "OpenCode", "available": true, "installed": true, "installedVersion": "0.6.0", "latestVersion": "0.6.2" } ]}npx maestria@latest install --all --jsonyarn dlx maestria@latest install --all --jsonpnpx maestria@latest install --all --jsonbunx maestria@latest install --all --jsondeno x maestria@latest install --all --jsonnlx maestria@latest install --all --jsonCompact Output
Section titled “Compact Output”Use --compact for minimal machine-friendly text output suitable for AI agents
and token-sensitive environments:
npx maestria@latest status --compactyarn dlx maestria@latest status --compactpnpx maestria@latest status --compactbunx maestria@latest status --compactdeno x maestria@latest status --compactnlx maestria@latest status --compactopencode: available installed=0.2.1 latest=0.2.1pi: not-available not-installedCompact output works on install and update too, showing one line per platform result:
opencode: installed 0.2.1The compact flag implies --quiet (no spinner animations).
Quiet Mode
Section titled “Quiet Mode”Use --quiet to suppress spinner animations. Commands still print final output:
npx maestria@latest install --all --quietyarn dlx maestria@latest install --all --quietpnpx maestria@latest install --all --quietbunx maestria@latest install --all --quietdeno x maestria@latest install --all --quietnlx maestria@latest install --all --quietExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
0 |
Success |
1 |
Validation or command error |
130 |
User cancelled (interactive mode only) |
The install and update commands detect non-interactive terminals (e.g., CI
pipelines) and exit with code 1 showing a clear error message instead of
attempting an interactive prompt.
Run any command with --help to see in-terminal examples, exit code documentation,
and a TIP FOR AI AGENTS section with usage guidance for automated pipelines.
Input Validation
Section titled “Input Validation”The CLI catches invalid input early with clear error messages:
Unknown platform:
npx maestria update unknown-platform# > Unknown platform 'unknown-platform'. Valid platforms: opencode, omp, pi, kimi-code, hermes, cursorInvalid version format:
npx maestria update opencode --version 2.0# > Invalid version '2.0'. Use semver format (e.g., 0.5.0) or 'latest'.Conflicting flags:
npx maestria install opencode --all# > Cannot use --all with a specific platform. Choose one.Version Caching
Section titled “Version Caching”The CLI caches version lookups from npm for 1 hour in ~/.cache/maestria/versions.json:
cat ~/.cache/maestria/versions.json# {"@maestria/opencode":{"version":"0.6.2","cachedAt":1719600000000}}To force a fresh version check, delete the cache:
rm ~/.cache/maestria/versions.jsonThe cache is automatically invalidated after a successful update, ensuring maestria status always shows the correct latest version after an upgrade.
Next Steps
Section titled “Next Steps”- Command Reference - full reference for all commands and flags