Install
The ag2 install command is a package manager for AI development artifacts. It fetches content from the AG2 Resource Hub and installs it into your project or IDE.
Artifact Types#
| Type | Description |
|---|---|
| Skills | Rules, workflows, and agent instructions installed into your IDE |
| Templates | Full project scaffolds with dependencies and config |
| Tools | Python functions (@tool) or MCP servers |
| Datasets | Evaluation data for testing agents |
| Agents | Pre-built subagents (e.g., Claude Code agents) |
| Bundles | Curated collections of multiple artifact types |
Commands#
Install artifacts#
ag2 install skills [names...] # Install IDE skills
ag2 install template <name> # Scaffold from template
ag2 install tool <name> # Install a tool or MCP server
ag2 install dataset <name> # Install evaluation dataset
ag2 install agent <name> # Install a subagent
ag2 install bundle <name> # Install a curated bundle
Manage artifacts#
ag2 install list [type] # List available artifacts
ag2 install search <query> # Search the registry
ag2 install update [names...] # Update installed artifacts
ag2 install uninstall <name> # Remove an installed artifact
ag2 install from <path> # Install from local path
IDE Target Detection#
The install system auto-detects your IDE and installs skills in the right format:
| IDE | Detection |
|---|---|
| Claude Code | .claude/ directory or CLAUDE.md file |
| Cursor | .cursor/ directory |
| GitHub Copilot | .copilot/ directory |
You can also specify a target explicitly:
Examples#
Install skills into your IDE:
Scaffold a project from a template:
Install an MCP tool (auto-configures IDE MCP settings):
Search for artifacts:
Lockfile#
Installed artifacts are tracked in ~/.ag2-artifacts.lock, enabling version-aware updates and clean uninstalls.