| Crates.io | agpm-cli |
| lib.rs | agpm-cli |
| version | 0.4.14 |
| created_at | 2025-10-09 18:05:04.141995+00 |
| updated_at | 2025-12-11 01:05:13.799777+00 |
| description | AGent Package Manager - A Git-based package manager for coding agents |
| homepage | https://github.com/aig787/agpm |
| repository | https://github.com/aig787/agpm |
| max_upload_size | |
| id | 1876026 |
| size | 6,237,485 |
⚠️ Beta Software: This project is in active development. Use with caution in production environments.
A Git-based package manager for AI coding assistants (Claude Code, OpenCode, and more) that enables reproducible installations using lockfile-based dependency management, similar to Cargo.
# macOS/Linux via Homebrew
brew install aig787/homebrew-agpm/agpm-cli
# All platforms via Cargo
cargo install agpm-cli
# Pre-built binaries
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/aig787/agpm/releases/latest/download/agpm-installer.sh | sh
See the Installation Guide for more options and platform-specific instructions.
# Initialize a new project
agpm init
# Install dependencies
agpm install
# Check for updates
agpm outdated
# Update dependencies
agpm update
# List installed resources
agpm list
# agpm.toml
[sources]
community = "https://github.com/aig787/agpm-community.git"
[agents]
# Claude Code agent (default)
rust-expert = { source = "community", path = "agents/rust-expert.md", version = "v1.0.0" }
# OpenCode agent (alpha)
assistant-oc = { source = "community", path = "agents/assistant.md", version = "v1.0.0", tool = "opencode" }
[snippets]
# Shared snippets (default: .agpm/snippets/)
react-hooks = { source = "community", path = "snippets/react-hooks.md", version = "~1.2.0" }
[commands]
deploy = { source = "community", path = "commands/deploy.md", version = "v2.0.0" }
[skills]
# Directory-based expertise packages (alpha)
rust-helper = { source = "community", path = "skills/rust-helper", version = "v1.0.0" }
See docs/examples/ for more complete examples.
| Command | Description |
|---|---|
agpm init |
Initialize a new project |
agpm install |
Install dependencies from agpm.toml |
agpm update |
Update dependencies within version constraints |
agpm outdated |
Check for available updates |
agpm upgrade |
Self-update AGPM to the latest version |
agpm migrate |
Migrate from older AGPM versions to latest format |
agpm list |
List installed resources |
agpm tree |
Display dependency tree with token counts |
agpm validate |
Validate manifest and dependencies |
agpm add |
Add sources or dependencies |
agpm remove |
Remove sources or dependencies |
agpm config |
Manage global configuration |
agpm cache |
Manage the Git cache |
Run agpm --help for complete command reference or see Command Reference.
AGPM provides real-time visibility into installation progress with a clean, professional interface:
⠁ Syncing sources
✓ Sources synced (0.8s)
⠂ Resolving dependencies
✓ Resolved 500 dependencies (1.2s)
⠄ Installing resources (127/500 complete)
→ agents/helper-122
→ agents/helper-123
→ agents/helper-124
→ snippets/example-45
→ commands/lint-67
→ agents/helper-125
→ agents/helper-126
✓ Installed 500 resources (12.3s)
✓ 300 agents
✓ 150 snippets
✓ 50 commands
✓ Finalizing installation (0.2s)
500 resources installed
2 MCP servers configured
AGPM manages seven types of resources, installing to agpm/ subdirectories for easy gitignore management:
.claude/agents/agpm/, .opencode/agent/agpm/).agpm/snippets/).claude/commands/agpm/, .opencode/command/agpm/).claude/scripts/agpm/).claude/settings.local.json).mcp.json, opencode.json).claude/skills/) 🚧 AlphaSee the Resources Guide for detailed information.
AGPM provides powerful template features for dynamic content generation in Markdown resources:
Embed versioned content from AGPM dependencies:
---
agpm.templating: true
dependencies:
snippets:
- path: snippets/rust-patterns.md
name: rust_patterns
---
# Rust Code Reviewer
## Shared Patterns
{{ agpm.deps.snippets.rust_patterns.content }}
Read and embed project-specific files (team docs, company standards):
---
agpm.templating: true
---
# Team Agent
## Company Style Guide
{{ 'project/styleguide.md' | content }}
## Team Conventions
{{ 'docs/conventions.txt' | content }}
Key Features:
.md, .txt, .json, .toml, .yamlSee the Templating Guide for complete documentation and examples.
| Guide | Description |
|---|---|
| Installation Guide | All installation methods and requirements |
| User Guide | Getting started and basic workflows |
| Command Reference | Complete command syntax and options |
| Multi-Tool Support | Managing resources for multiple AI assistants |
| Dependencies Guide | Version constraints, conflicts, and transitive dependencies |
| Resources Guide | Working with different resource types |
| Configuration Guide | Global config, authentication, and patches |
| Manifest Reference | Complete agpm.toml schema |
| Versioning Guide | Version constraints and Git references |
| Templating Guide | Dynamic content generation with Tera |
| Architecture | Technical details and design decisions |
| Examples | Sample configurations and use cases |
| FAQ | Frequently asked questions |
| Skills Guide | Directory-based expertise packages |
| Troubleshooting | Common issues and solutions |
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE.md for details.
Built with Rust 🦀 for reliability and performance