Runnable Examples

Start from working flows,
not a blank page.

These examples are the fastest way to see the product wedge in action: governed browsing, zero-key upstream access, and paid execution with a receipt trail.

Research agent

Search, summarize, and bill via a governed mandate.

cd examples/agents/ResearchAgent
npm install
AGENTPAY_API_KEY=apk_... AGENTPAY_MERCHANT_ID=mer_... node server.js
Capability Vault demo

Run a full create -> approve -> execute flow against the live API.

cd examples/adapters
npm install
AGENTPAY_API_KEY=apk_... npx tsx semiLiveDemo.ts
Node backend agent

Minimal backend that registers as a paid agent service.

cd examples/node-backend-agent
npm install
AGENTPAY_API_KEY=apk_... AGENTPAY_MERCHANT_ID=mer_... node index.js
Common env vars
AGENTPAY_API_KEY=apk_...       # Required
AGENTPAY_MERCHANT_ID=mer_...   # Recommended
AGENTPAY_API_URL=...           # Optional override for local dev