apm README

The project's README from github.com/microsoft/apm. As one markdown file: README.md.

APM - Agent Package Manager

An open-source, community-driven dependency manager for the agent supply chain.

One manifest, one lockfile and one org policy for the skills, plugins and MCP servers your agents load, with the harnesses and marketplaces you already use.

GitHub Copilot | Claude Code | Grok Build | Cursor | OpenCode | Codex | Gemini CLI | Windsurf | Kiro

Documentation | Quickstart | CLI Reference | Roadmap


Portable by manifest. Verified by lockfile. Governed by policy. One file declares what your agents load; one lockfile reproduces it on every machine and in CI; one policy decides what your organization allows.

Why APM

What a coding agent loads decides what it knows and what it can do: skills, instructions, prompts, agents, hooks, plugins and MCP servers. Today teams copy those files between repositories and hand-edit MCP config for every tool. The copies drift, nobody can say which version a repository follows, and nothing reproduces the setup on the next laptop or in CI.

APM treats them as dependencies. Declare them once in apm.yml. apm install writes each one in every harness's own format and records the exact commit, plus a SHA-256 hash of every file it wrote, in apm.lock.yaml. Think package.json and package-lock.json, or Cargo.toml and Cargo.lock, for your agents, with transitive dependency resolution included.

# apm.yml -- ships with your project
name: your-project
version: 1.0.0
targets: [copilot, claude]   # the harnesses this project supports
dependencies:
  apm:
    # A skill, picked from a public collection
    - git: vercel-labs/agent-skills
      skills:
        - deploy-to-vercel
    # A plugin, from Anthropic's marketplace
    - git: https://github.com/anthropics/claude-plugins-official
      path: plugins/commit-commands
      ref: main
  mcp:
    # An MCP server, configured for every harness above
    - name: io.github.github/github-mcp-server
      transport: http   # MCP transport name, not URL scheme -- connects over HTTPS
git clone <org/repo> && cd <repo>
apm install    # the same skills, plugins and MCP servers, from the lockfile

Coming from npx skills add? Drop-in:

apm install vercel-labs/agent-skills                            # whole bundle, like npx skills add
apm install vercel-labs/agent-skills --skill deploy-to-vercel   # one skill, persisted to apm.yml

Same install gesture. You also get a manifest, a lockfile and a fresh clone that matches yours. Coming from Claude Code marketplaces, gh skill or hand-copied folders? See Coming from another tool.

Plugins from the marketplaces you already use:

apm marketplace add anthropics/claude-code
apm install commit-commands@claude-code-plugins

One plugin, written in each harness's own format (commands for Claude Code, prompts for GitHub Copilot) and pinned in the lockfile.

MCP servers without hand-edited JSON:

apm install --mcp io.github.github/github-mcp-server --transport http

Every harness keeps MCP servers in its own file: .mcp.json for Claude Code and GitHub Copilot, .cursor/mcp.json for Cursor, .codex/config.toml for Codex. Declare a server once and APM writes each file, on every machine. Add a harness later and the same servers follow. Tokens stay out of the repository as ${VAR} references, and a server that arrives through someone else's package with its own command is held back until you declare or approve it.

The three promises

1. Portable by manifest

One apm.yml declares every primitive your agents need -- instructions, skills, prompts, agents, hooks, plugins, MCP servers -- and apm install reproduces the same setup in every harness the project targets, on every machine. No account and no registry: packages come from git.

2. Verified by lockfile

Agent context is executable in effect -- a prompt is a program for an LLM, and hooks and MCP servers start processes on your machine. APM records exactly what you installed and checks it on every clone and every pull request. A lockfile records what arrived, not that it can be trusted: review a new dependency, or a version bump, the way you review code.

3. Governed by policy

Teams that run coding agents at scale end up building the same thing: a central team publishes approved skills, plugins and MCP servers through its own marketplace, and many repositories install from it. apm-policy.yml lets that team say which sources, MCP servers and executables the organization allows, inherited from an enterprise baseline that each organization can tighten but never loosen, and a required apm audit --ci check enforces it on every pull request. Policy starts in warn mode; you switch it to block when you are ready. That is the dependency layer for an agentic SDLC.

APM governs what gets installed; your harness governs what runs. Policy is not a sandbox.

Get Started

macOS with Homebrew

brew install apm

No custom tap is required. Homebrew manages installation and updates: use brew upgrade apm, not apm self-update.

Linux / macOS without Homebrew

curl -sSL https://aka.ms/apm-unix | sh

Windows

irm https://aka.ms/apm-windows | iex

Native release binaries are published for macOS, Linux, and Windows x86_64. For standalone installations, apm self-update reuses the matching platform installer. You do not need Homebrew to use APM.

Other install methods: pip, WinGet, and Scoop

Linux / macOS

# pip (Python 3.11+)
pip install apm-cli

Windows

# WinGet
winget install --id Microsoft.APM --exact --source winget
# Scoop
scoop install apm
# pip
pip install apm-cli

Already using the Microsoft Homebrew tap? See the migration guide.

Then follow the Quickstart: add a skill, a plugin and an MCP server, commit apm.yml and apm.lock.yaml, and check a teammate's fresh clone against the lockfile, in five minutes.

Teach your coding agent to use APM with the official guide (an expert agent plus the apm-usage skill):

apm install microsoft/apm/packages/apm-guide#v0.39.0

Community

Created by @danielmeppiel. Maintained by @danielmeppiel and @sergio-sisternes-epam.

In the ecosystem: Thoughtworks Technology Radar Vol. 35 places APM in Trial, describing it as a tool that treats agent context as a supply chain. Dependabot and Renovate update APM manifests; JFrog Artifactory offers Agent Packages repositories. The formats are an open specification, OpenAPM v0.1, with conformance tests.


Built on open standards: AGENTS.md | Agent Skills | MCP

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

apm (microsoft/apm)

Searching Database…

4.4K ·GitHub
What is this?APM (Agent Package Manager) is an open-source dependency manager for AI coding agents' context — like package.json or Cargo.toml, but for agent configuration such as instructions, skills, prompts, and MCP servers.
Is this a CLI tool or something I import into my code?It is a standalone CLI you run in your repo — you declare dependencies in apm.yml and run apm install to reproduce the agent setup, there's nothing to import.
How do I install it and get going?Install via Homebrew on macOS, grab a native binary for macOS/Linux/Windows, or use pip, WinGet, or Scoop, then run apm install to pull your project's declared agent packages.
Do I need Homebrew or Python first?No — Homebrew is just one install path and pip is another, but standalone native binaries work without either.
Does the org policy control what my agents can actually run?No — apm-policy.yml only governs what gets installed onto disk; what the agent then runs is still up to your agent harness, and the two layers are deliberately kept separate.
Which operating systems does it run on?Native release binaries are published for macOS, Linux, and Windows (x86-64).
Which coding agents does APM work with?One apm.yml manifest wires configuration into GitHub Copilot, Claude Code, Grok Build, Cursor, OpenCode, Codex, Gemini, Windsurf, and Kiro at once.
What is agentrc and how does it relate to APM?agentrc analyzes your codebase to generate tailored agent instructions from real code, which you can then package and distribute with APM.
What does apm audit actually check?It rebuilds your agent context from scratch and diffs it against your working tree to catch hand-edits, and runs the same content-security scans as apm install.
Can I export a software bill of materials for installed packages?Yes — apm lock export generates CycloneDX or SPDX output straight from the lockfile for provenance tracking.
Creator
microsoft
Size
53.7 MB
Stars
4.4K
Age
1y
Commits · 90 Days