Targets
Where artifacts get installed.
Overview
Targets define the directories where AGPM installs artifacts. Only targets explicitly configured in agpm.json will receive artifacts - if a target is not listed, it won't be installed to.
Supported Targets
AGPM supports these built-in targets:
| Target | Skills Directory | Commands | Hooks |
|---|---|---|---|
claude-code | .claude/skills/ | .claude/commands/ | .claude/hooks/ |
opencode | .opencode/skills/ | - | .opencode/hooks/ |
codex | .codex/skills/ | - | - |
Configuring Targets
Target values can be:
true- Enable target (simplified form){}- Enable target (allows future options)false- Disable target
{
"targets": {
"claude-code": true,
"opencode": true
}
}
How It Works
When you run agpm install:
- Each artifact is copied to all explicitly configured target directories
- Directory structure is created if it doesn't exist
- Files are copied preserving the artifact's internal structure
Enabling Multiple Targets
Install to multiple AI tools by listing them:
{
"targets": {
"claude-code": true,
"opencode": true,
"codex": true
}
}
Enabling a Single Target
To install only to a specific tool, configure only that target:
{
"targets": {
"claude-code": true
}
}
See Also
- install - Installation command
- Configuration - Full configuration reference