Skip to main content

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.

  • One manifest, every harness you target -- declared once, written for Copilot, Claude Code, Grok Build, Cursor, OpenCode, Codex, Gemini CLI, Windsurf and Kiro
  • Skills, one at a time or whole collections -- from GitHub, GitHub Enterprise, Azure DevOps, GitLab or a plain git URL
  • Plugins and marketplaces -- install Claude Code, GitHub Copilot and Codex plugins by name, locked like any other dependency
  • MCP servers -- from the GitHub MCP Registry, your own registry, a local command or a remote URL
  • Transitive dependencies -- packages can depend on packages; APM resolves the full tree
  • Publish packages -- tag a release and consumers pin your-org/your-package#v1.2.0; fixes reach them as Dependabot or Renovate pull requests
  • Build plugins -- keep your plugin's own dependencies declared and locked; apm pack writes the plugin.json each tool expects, including Codex's .codex-plugin/plugin.json
  • CI/CD ready -- the GitHub Action installs from the lockfile on every run

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.

  • Lockfile integrity -- apm.lock.yaml pins each source to a commit and records a SHA-256 hash per package and per deployed file; a download that does not match is refused
  • Reproducible installs -- apm install --frozen installs exactly what the lockfile records and fails when apm.yml disagrees
  • Drift detection -- apm audit rebuilds what the lockfile describes and diffs it against your working tree; apm audit --ci makes it a pull-request check
  • Content scanning -- every install scans for hidden Unicode that can carry instructions a reviewer cannot see, and blocks critical findings; it looks for hidden characters, not intent
  • Approvals for hooks and MCP servers -- apm approve records, in apm.yml, which packages may deploy executables, so the grant is reviewed like any other change
  • Inventory export -- apm lock export --format cyclonedx|spdx lists what reached disk, straight from the lockfile -- an inventory for procurement, not an attestation

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.

  • Build your organization's marketplace -- publish approved capabilities as versioned packages that every repository installs by name and updates on purpose
  • Set an org policy -- allow or deny sources, MCP servers and executables, in warn or block mode
  • Gate pull requests -- wire apm audit --ci into a required check, so a denied source fails the build
  • Security model -- every control, its default, how to tighten it, and what stays your responsibility
  • Roll out in stages -- from lockfiles to a blocking policy across hundreds of repositories, each stage reversible

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.38.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.

Metadata

Release files for apm-cli 0.38.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apm-cli 0.38.0
File Size Uploaded Provenance Actions
apm_cli-0.38.0.tar.gz 2.5 MB With provenance Details for apm_cli-0.38.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apm-cli 0.38.0
File Interpreter ABI Platform Actions
apm_cli-0.38.0-py3-none-any.whl Python 3 none any Details for apm_cli-0.38.0-py3-none-any.whl

Total release size: 5.3 MB

Release files / apm_cli-0.38.0.tar.gz

Download URL apm_cli-0.38.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6dfac2fdc8ab68586afb2b1a5a6db3c1b7ab569ff0edc525448aa85d0f92bd38
BLAKE2b-256 checksum
How to use checksums
c9ceda4a1df860d43c5d0a72f6160a4972332bbb9346a1c4402229734100a42e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / apm_cli-0.38.0-py3-none-any.whl

Download URL apm_cli-0.38.0-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
aa51a98867ae6aef11e92143dd9ca2a994d3dd6cbd7224eae58fb7b8078fc3b1
BLAKE2b-256 checksum
How to use checksums
4922872d8fd7cd30d6fce8cdfd447e7b42bb3b3e70b95c34020c85ccbfc0a1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for apm-cli 0.38.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apm_cli-0.38.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.38.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page