Open source

Start controlling agent spend in your own code

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

What open-source tools does Harpd publish?

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.

Packages
5 open-source components
Licence
Apache-2.0
Runtime deps
Zero (core SDKs)

Data source: Harpd open-source registry

Why it matters

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.

Limitations

  • The open-source components run locally and do not include the hosted dashboard, team collaboration, approvals or reconciliation.
  • Each package is a single-purpose primitive; composing them into a full policy layer is the user’s integration work.
  • Version compatibility with specific agent frameworks is per-package and documented in each repo, not guaranteed here.

Data source: Harpd open-source registry

Start local

Open source for adoption and trust

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.

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
Includes:
  • 4 payment lifecycle hooks
  • zero runtime dependencies

x402 logging middleware

Open sourceMiddleware

@harpd/x402-logging-middleware

Add auditable logging around x402 requests without changing your agent architecture.

npm install @harpd/x402-logging-middleware
Includes:
  • request and settlement events
  • works with existing agent loops

MCP paid-tool starter

Open sourceStarter

@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
Includes:
  • paid MCP endpoint
  • copyable budget policy

Agent budget policy SDK

Open sourceSDK

@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
Includes:
  • synchronous allow or deny
  • zero runtime dependencies

Agent transaction audit schema

Open sourceSchema

@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-schema
Includes:
  • append-only audit events
  • bring your own database

Open source gets you started. Harpd keeps the team in control.

The components stay local and yours. The hosted layer handles the shared operational work around them.

Open source

  • Local observability and logs
  • Local budget decisions
  • Paid MCP-tool starter
  • Portable audit schema

Add Harpd

  • Dashboard
  • Managed service
  • Team collaboration
  • Approvals
  • Reporting
  • Compliance
  • Advanced alerts
Open the dashboard

← Read the tutorials