Skip to content

Installation

AgentsMesh ships three ways. Pick whichever matches your environment — every install method delivers the same CLI (agentsmesh and the shorter alias amsh) and the same TypeScript library.

Quick install

No Node.js required.

Terminal window
brew tap samplexbro/agentsmesh
brew install agentsmesh

Platform support

Linux, macOS, and Windows (native, not WSL).

Which install method should I use?

MethodRequires Node.jsBest for
HomebrewNomacOS / Linux engineers who want a single managed install
Standalone binaryNoCI runners without Node, locked-down environments, Windows users without npm
npm / pnpm / yarn (-D)YesNode.js projects — pins AgentsMesh per repo so teammates and CI get the exact same version
npxYesTrying it out, one-off commands in Node.js projects

Verify installation

Terminal window
agentsmesh --version
agentsmesh --help

Both agentsmesh and the shorter amsh alias resolve to the same CLI regardless of install method.

IDE autocomplete via JSON Schema

Every canonical config file ships with a generated JSON Schema, so VS Code, JetBrains, and other editors give you autocomplete and validation out of the box. agentsmesh init writes the appropriate # yaml-language-server: $schema=... directive (or $schema field for JSON) into each file:

Config fileSchema location
agentsmesh.yaml / agentsmesh.local.yamlagentsmesh/schemas/agentsmesh.json (via unpkg.com when no Node project is present)
.agentsmesh/hooks.yamlagentsmesh/schemas/hooks.json
.agentsmesh/permissions.yamlagentsmesh/schemas/permissions.json
.agentsmesh/mcp.jsonagentsmesh/schemas/mcp.json
.agentsmesh/packs/*/pack.jsonagentsmesh/schemas/pack.json

Use as a TypeScript / Node.js library

In addition to the CLI, AgentsMesh exports a typed programmatic API for scripts, IDE extensions, and CI tooling. This path requires Node.js 20+ and npm install agentsmesh (or pnpm/yarn equivalent).

import { generate, importFrom, loadCanonical } from 'agentsmesh';

See the programmatic API reference for the full entrypoint table.

Add scripts to package.json

If you installed via npm/pnpm/yarn, wire AgentsMesh into your project scripts:

{
"scripts": {
"sync": "agentsmesh generate",
"sync:check": "agentsmesh check",
"sync:watch": "agentsmesh watch"
}
}

Next step

Continue to Quick Start to scaffold your first canonical config directory.