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 and agentsmesh install stamp the appropriate # yaml-language-server: $schema=... directive (or $schema field for JSON) into every file at write time. The URL is pinned to the running package version so the schema referenced always matches the format the file was written with.

Config fileSchemaWritten by
agentsmesh.yaml / agentsmesh.local.yamlschemas/agentsmesh.jsoninit
.agentsmesh/hooks.yamlschemas/hooks.jsoninit
.agentsmesh/permissions.yamlschemas/permissions.jsoninit
.agentsmesh/mcp.jsonschemas/mcp.jsoninit
.agentsmesh/installs.yamlschemas/installs.jsoninstall / uninstall
.agentsmesh/packs/<name>/pack.yamlschemas/pack.jsoninstall
.agentsmesh/packs/<name>/.agentsmesh-install-manifest.jsonschemas/install-manifest.jsoninstall

All schemas resolve via the published https://unpkg.com/agentsmesh@<version>/schemas/<name>.json URLs (no extension required when AgentsMesh is in node_modules/). VS Code needs the Red Hat YAML extension; JetBrains IDEs honor the directive out of the box. See the JSON Schemas reference for the full breakdown, CI validation examples, and SchemaStore plans.

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.