Quickstart#
Use AgentPM CLI 0.1.43+ on PATH and SDK 0.1.17+ for the workflows below. Python Tools need a compatible local Python interpreter even when called from Node.
Create a local agent manifest, install its tools, and call them from Node or Python.
Initialize an agent (manifest)#
agentpm init --kind agent --name research-assistant --description "Assistant composed of multiple tools"Agent is the default package kind; --kind agent also works with earlier CLI versions.
New scaffolds declare their supported standard and pin the editor schema.
This generates agent.json:
{
"$schema": "https://raw.githubusercontent.com/agentpm-dev/cli/refs/tags/apds-v1.0.0/standards/agentpm/1.0.0/manifest.schema.json",
"standard": { "id": "agentpm", "version": "1.0.0" },
"kind": "agent",
"name": "research-assistant",
"version": "0.1.0",
"description": "Assistant composed of multiple tools",
"tools": [],
"skills": [],
"knowledge": [],
"memory": [],
"profiles": [],
"examples": [
{
"title": "Example prompt",
"prompt": "Describe the user request this agent should handle."
}
]
}The agent manifest is the source of truth for what your agent can call. We’ll add tools to tools[] next.
Add a tool to your agent#
Option A - CLI adds it for you#
agentpm install @zack/summarize-text@0.1.10The CLI resolves, downloads, and writes the entry to agent.json → tools[].
Option B - Edit manifest, then install#
Add to agent.json:
"tools": [
{
"name": "@zack/summarize-document",
"version": "0.1.0"
}
]Then run:
agentpm installAgentPM locks the exact artifact and runs it in a managed subprocess with your declared runtime & required environment variables, keeping your agent app clean and repeatable.
What gets installed#
For a local manifest-driven install:
- the local
agent.jsonremains the source of truth - declared tools install under
.agentpm/tools/<namespace>/<name>/<version> agent.lockis written to capture the resolved install state
At a high level, the lockfile records:
- full package identity (
kind,name,version,integrity) - a
local:agentroot for the local manifest - the resolved tool relationships for that local agent
The summarizer examples below require OPENAI_API_KEY and make a paid model
request. For an offline/no-model check, use the maintained
SDK smoke instructions.
Use the tool from Node#
Install the SDK:
pnpm add @agentpm/sdk@^0.1.17
# or: npm i @agentpm/sdk@^0.1.17Call the tool:
import { load } from "@agentpm/sdk";
const summarize = await load("@zack/summarize-text@0.1.10");
// `summarize` is a callable bound to a managed subprocess
const out = await summarize({
text: "AgentPM makes tools portable across stacks.",
});
console.log(out);load()discovers the installed Tool; invocation delegates to the CLI and does not install or repair dependencies.- The tool executes in a subprocess, so Node apps can safely call Python tools (and vice-versa) with no dependency collisions.
If you later install a published agent package directly:
agentpm install @zack/support-agent@0.1.0you can inspect that installed agent from the Node SDK:
import { load, loadAgent } from "@agentpm/sdk";
const agent = await loadAgent("@zack/support-agent@0.1.0");
const firstTool = agent.resolvedTools[0];
const tool = await load(`${firstTool.name}@${firstTool.version}`);Use the tool from Python#
Install the SDK:
uv pip install "agentpm>=0.1.17"
# or: pip install "agentpm>=0.1.17"Call the tool:
from agentpm import load
t = load("@zack/summarize-text@0.1.10")
out = t({ "text": "AgentPM makes tools portable across stacks." })
print(out)load()returns a callable bound to the tool’s subprocess runtime.- Same manifest, same artifact—just a different host language.
For a published agent package, the Python SDK has the matching metadata API:
from agentpm import load, load_agent
agent = load_agent("@zack/support-agent@0.1.0")
first_tool = agent["resolvedTools"][0]
tool = load(f'{first_tool["name"]}@{first_tool["version"]}')