Agent payment observer
Open sourceSDK@harpd/observe
Capture the x402 payment lifecycle in any agent loop. Run locally first; forward events when you are ready.
npm install @harpd/observe- 4 payment lifecycle hooks
- zero runtime dependencies
Instrument payments, attribute spend and apply local budget policies with small Apache-2.0 building blocks. Add Harpd when the team needs shared controls and reconciliation.
Quick answer
Harpd publishes small Apache-2.0 building blocks for observing agent payments and applying local budget policies — an agent payment observer, x402 logging middleware, an MCP paid-tool starter, a budget-policy SDK and a transaction audit schema. Each runs in your own code without Harpd; the hosted product adds shared controls and reconciliation.
Data source: Harpd open-source registry
Open-sourcing the core agent-payment primitives lets developers audit, trust and adopt them without vendor lock-in. It is also how Harpd earns external credibility: the components are on npm and GitHub, independently reviewable, so the hosted product inherits that trust.
Data source: Harpd open-source registry
Start local
Each component does one job well, runs without Harpd, and gives your team a clear path from a local proof of concept to production controls.
@harpd/observe
Capture the x402 payment lifecycle in any agent loop. Run locally first; forward events when you are ready.
npm install @harpd/observe@harpd/x402-logging-middleware
Add auditable logging around x402 requests without changing your agent architecture.
npm install @harpd/x402-logging-middleware@harpd/mcp-paid-tool-starter
Start an x402-gated MCP tool with a small working example that you can rename and ship.
npm install @harpd/mcp-paid-tool-starter@harpd/agent-budget-policy
Declare per-call, per-agent, per-endpoint and per-tool caps; evaluate each decision locally before payment.
npm install @harpd/agent-budget-policy@harpd/agent-transaction-audit-schema
Use a portable event shape for payment decisions, settlement evidence and audit trails in your own database.
npm install @harpd/agent-transaction-audit-schemaThe components stay local and yours. The hosted layer handles the shared operational work around them.