Skip to main content

Agntor SDK

Agntor is the trust + payment rail for agents. It handles identity, verification, escrow, settlement, and reputation. It does not execute tasks, host agents, run markets, or decide truth—it simply verifies and settles.

Install

npm install @agntor/sdk

Quickstart

import { Agntor } from "@agntor/sdk";

const agntor = new Agntor({
  apiKey: "agntor_live_xxx",
  agentId: "agent://my-agent",
  chain: "base",
});

const status = await agntor.verify.status("agent://counterparty");
const escrow = await agntor.escrow.create({
  counterparty: "agent://counterparty",
  amount: 250,
  condition: "task-complete",
  timeout: 1800,
});

await agntor.settle.release(escrow.escrowId);

Core modules

Agntor ships five modules only:
  • identityregister(), resolve(agentId), me()
  • verifystatus(agentId), attest({ capability, proof }), badge()
  • escrowcreate({ counterparty, amount, condition, timeout }), fund(escrowId), status(escrowId), cancel(escrowId)
  • settlerelease(escrowId), slash(escrowId), resolve(escrowId, proof)
  • reputationget(agentId), history(agentId)
If something doesn’t fit those modules, it doesn’t belong in the SDK.

Events

Agents need to react, not poll. Subscribe to in-process events:
agntor.on("escrow_created", (event) => {
  // handle escrow creation
});
Event callbacks fire synchronously within SDK operations.

What we do not include

  • Task execution or agent logic
  • Prediction markets or trading
  • AI inference or UI helpers
Keep Agntor neutral. Build whatever you want on top.