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.

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 source SDK

@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 source Middleware

@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 source Starter

@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 source SDK

@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 source Schema

@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