paybondpaybond
Sign in

Developer SDK

Paybond Kit

Your agents can spend. Funds don't release until the work is proven.

Authorize the action. Verify the outcome.

Release or refund based on signed completion evidence. Your rails, your runtime, one signed receipt. Wrap paid tools with middleware that attaches proof to the same settlement trail — policy checks stay supporting.

Self-serve Sandbox, Pay as you go, and Credits — plus Design-partner pilots and Custom needs. Compare Sandbox, PAYG, and Credits.

One wrapped tool call — authorize → execute → verify → settle

  1. call

    agent.tool_call("book_hotel", spend_cents=48000)

    Your existing tool call; Kit wraps the settlement boundary around it.

  2. auth

    paybond.authorize → spend bound

    Authorize operation, budget, and completion rule before the tool runs.

  3. run

    tool executed → booking confirmed

    Your existing tool implementation runs exactly as before.

  4. verify

    paybond.verify(evidence)

    Submit completion evidence against the signed rule.

  5. done

    settlement: released

    Release, refund, or review — one signed receipt finance can replay.

What Kit adds to your runtime

The SDK covers the application path around settlement so product teams do not have to rebuild it inside every agent workflow.

  • Authorize spend

    Open a session with service-account credentials and bind each paid action to operation, budget, and completion rule — without accepting a tenant from the tool call.

  • Verify completion before release

    Submit structured evidence through the same client so release, refund, disputes, and exports refer to verified delivery.

  • Keep proof with the work

    Authorization, evidence, and outcome stay on one settlement trail finance can verify outside the live console.

  • Name a rail; never a destination

    Request a supported settlement rail by name while account and wallet destinations remain tenant-owned server configuration.

Supported paths, without guessing

Kit is the public SDK surface for product teams integrating Paybond. The support matrix documents the current languages, agent framework patterns, and settlement rails.

  • Agent middleware

    PaybondAgentRun, PaybondToolRegistry, and automatic evidence for multi-tool agents — model-agnostic core in TypeScript and Python.

  • TypeScript

    @paybond/kit for modern Node.js runtimes, with quickstarts and example projects for backend integrations.

  • Python

    paybond-kit for Python 3.11+, including published wheels with the native signing extension.

  • Agent frameworks

    Wrappers for OpenAI, Gemini, Claude/Anthropic, local models, LangGraph, MCP hosts, CrewAI-style tools, and custom runtimes.

  • MCP and LangGraph

    Use paybond-mcp-server for MCP-compatible hosts, or the LangGraph integration hooks when a graph node needs a spend check before a paid tool runs.

  • Settlement rails

    Stripe Connect, Stripe ACH Direct Debit, and x402/USDC on Base are the supported public rails today.

What Kit covers

  • Kit covers application flows

    Use it for sessions, signed spend intents, spend authorization, allowed-action checks, evidence submission, selected protocol helpers, and read-only Signal data.

  • Operators still confirm settlement

    Release and refund confirmation remains an operator-reviewed workflow in the console, or a direct API call if your rollout is designed that way.

How a Kit-backed workflow runs

From agreement setup to evidence submission, the SDK keeps the settlement steps close to the workflow that needs them.

  1. Step 1

    Open an SDK session

    Start with service-account credentials issued for one tenant and environment.

  2. Step 2

    Authorize spend

    Bind operation, budget, completion rule, evidence shape, allowed operations, and settlement rail before the tool runs.

  3. Step 3

    Execute the tool

    Your agent or application runs the paid tool in the runtime you already operate.

  4. Step 4

    Verify evidence

    Submit the signed result payload and artifacts that prove what happened.

  5. Step 5

    Settle the outcome

    Funds release on pass — or refund on fail — with receipts, exports, and review records downstream.

Keep proof-gated release where the work runs.

Your application owns planning and execution. Kit makes authorize → execute → verify → settle explicit at the tool-call edge.

Guarantees

  • Tenant scope comes from authenticated credentials.
  • Release waits on signed completion evidence.
  • Rails are requested by name; destinations remain in tenant settlement config.
  • Evidence stays structured for review, exports, and disputes.

Designed for agent runtimes

Use Kit where workflows already run: orchestrators, tool routers, sandboxes, and multi-tenant application backends.

  • Agent orchestrators

    Add spend authorization and settlement checks around tool calls in the runtime you already run.

  • Tool routers and sandboxes

    Gate side-effecting actions with approved operation names from your own application namespace.

  • Multi-tenant platforms

    Keep each customer workspace tied to its own credentials, settlement configuration, and evidence records.