Skip to main content
Conto connects on the buyer side. The agent owner or budget holder configures policy; the buyer’s runtime or payment tools check it before execution. Merchants do not install Conto. See buyer-side control for the authorization boundary. The SDK supports Node.js 20.19+. The runnable examples below use Node.js 20.19+ for loading an environment file. Keep SDK credentials in your server or agent runtime, never in browser code.

Install

Choose your client

Obtain keys with the quickstart or authentication guide. Save the needed key in .env.local and add that file to .gitignore.
Create only the client your application needs. An admin agent SDK key still belongs to an agent; it is not an organization key for ContoAdmin.

Verify without creating a payment

Save as verify.mjs. Setup uses the same agent key as the SDK and does not create a payment record.
Check the intended wallet, network, and payment scopes. In a CLI-created project you can also run npx conto doctor.

Configuration

The SDK retries eligible reads and idempotency-protected authorization. Execution is not retried automatically. See retry behavior.

Start building