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.
brew tap samplexbro/agentsmeshbrew install agentsmeshNo Node.js required. Linux, macOS, and Windows binaries are published with each release.
curl -fsSL https://github.com/sampleXbro/agentsmesh/releases/latest/download/install.sh | shOr download a binary directly from GitHub Releases.
Requires Node.js 20+. Recommended when AgentsMesh is part of a Node.js project’s dev tooling so it’s pinned per repo.
# Global installnpm install -g agentsmesh
# Or as a dev dependencynpm install -D agentsmesh # npmpnpm add -D agentsmesh # pnpmyarn add -D agentsmesh # yarn
# Or run without installingnpx agentsmesh --helpPlatform support
Linux, macOS, and Windows (native, not WSL).
Which install method should I use?
| Method | Requires Node.js | Best for |
|---|---|---|
| Homebrew | No | macOS / Linux engineers who want a single managed install |
| Standalone binary | No | CI runners without Node, locked-down environments, Windows users without npm |
npm / pnpm / yarn (-D) | Yes | Node.js projects — pins AgentsMesh per repo so teammates and CI get the exact same version |
| npx | Yes | Trying it out, one-off commands in Node.js projects |
Verify installation
agentsmesh --versionagentsmesh --helpBoth 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 file | Schema location |
|---|---|
agentsmesh.yaml / agentsmesh.local.yaml | agentsmesh/schemas/agentsmesh.json (via unpkg.com when no Node project is present) |
.agentsmesh/hooks.yaml | agentsmesh/schemas/hooks.json |
.agentsmesh/permissions.yaml | agentsmesh/schemas/permissions.json |
.agentsmesh/mcp.json | agentsmesh/schemas/mcp.json |
.agentsmesh/packs/*/pack.json | agentsmesh/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.