Scan your whole stack
From OX Research Newsroom
Are you using @synergetics.ai/agent-sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.1
@synergetics.ai/agent-sdk was last scanned on 29 Nov 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.2.0 | 23 Nov 2026 | No rules fired |
| 0.1.0 | 16 Nov 2026 | No rules fired |
| 0.0.0-stage | 16 Nov 2026 | Not shown |
Findings for v0.2.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@synergetics.ai/agent-sdk gives any AI agent — whatever built it, whatever it runs on — three things in one package:
It's framework-agnostic and transport-agnostic. It doesn't assume a particular LLM, agent framework, or deployment shape — it runs equally well embedded directly in your own service, or hosting many agents at once behind a single process.
Status: pre-1.0. Published on npm. The API may still change between minor versions until 1.0; each release's changes are in the
CHANGELOG.mdthat ships with the package.
Signer — a KMS, an OS keychain, a hardware wallet — never a private key held in process.npm install @synergetics.ai/agent-sdk
Requires Node.js 20 or later. Optional features need their own package, installed only if you use them:
| Feature | Where | Install |
|---|---|---|
| Redis state store | @synergetics.ai/agent-sdk/redis |
ioredis |
| SQLite state store | @synergetics.ai/agent-sdk/sqlite |
better-sqlite3 |
| AWS KMS signers | @synergetics.ai/agent-sdk/aws-kms, /ap2-aws-kms-signer |
@aws-sdk/client-kms |
| OS keychain signer | @synergetics.ai/agent-sdk/keychain |
keytar |
| Receiving messages over HTTPS | talk.transports.https.listen |
express |
| Relay transport | talk.transports.relay |
ws |
| MQTT transport | talk.transports.mqtt |
mqtt |
import { initializeAgent } from "@synergetics.ai/agent-sdk";
import { RedisStateStore } from "@synergetics.ai/agent-sdk/redis"; // optional peer: ioredis
import { AwsKmsSigner } from "@synergetics.ai/agent-sdk/aws-kms"; // optional peer: @aws-sdk/client-kms
const chain = { env: "production" as const, rpcUrl: process.env.BASE_RPC_URL! };
const agent = await initializeAgent({
environment: "production",
signer: new AwsKmsSigner({ keyId: process.env.AGENT_KMS_KEY_ID! }),
store: new RedisStateStore({ url: process.env.REDIS_URL!, prefix: "my-agent" }),
identity: { chain, delegationId }, // the delegation the agent's owner granted it
talk: {
chain,
discoveryBaseUrl: process.env.AGENT_REGISTRY_INDEXER_URL!, // agent-registry-indexer's /api mount
transports: {
https: {
sender: {},
// In production, `listen` requires both an explicit bind `host` (resolveBindHost) and an
// explicit TLS posture (assertTlsConfiguredForProduction) — here, a reverse proxy/load
// balancer terminates TLS in front of this process, so that's acknowledged explicitly rather
// than passing `tls: { keyPem, certPem }` to terminate TLS in this process directly.
listen: { host: "0.0.0.0", port: 8443, acknowledgeTlsTerminatedUpstream: true },
},
// Behind NAT or without an inbound port, use the relay instead (or as well): the agent keeps one
// outbound WebSocket open and receives sessions through it.
// relay: { connection: { url: process.env.AGENT_RELAY_URL! } },
//
// Device-class agent on an MQTT broker instead (or as well): per-agent credentials, TLS
// verification on, inbox topic `agenttalk/v2/<this agent's address>/in`. Optional peer `mqtt`.
// mqtt: {
// connection: {
// url: "mqtts://broker.example.com:8883",
// credentials: { username: process.env.MQTT_USER!, password: process.env.MQTT_PASSWORD! }, // THIS agent's own
// tls: { ca: process.env.MQTT_CA_PEM }, // private CA: keep verification on
// },
// },
}, // omit `listen` for an outbound-only agent
},
payments: {
chain,
delegationId,
policy: { caps: { maxPerPayment: "5.00", maxPerDay: "50.00", maxPerPeerPerDay: "20.00" } },
rails: {
x402: {
chainId: 8453,
asset: USDC_ON_BASE,
eip712Domain: { name: "USD Coin", version: "2" }, // USDC's EIP-712 domain on Base
rpcUrl: process.env.BASE_RPC_URL!,
submit: broadcastTransfer, // your X402Submitter: broadcasts the signed USDC transfer, returns the tx hash
},
},
},
});
await agent.identity.audit(); // checks the agent's on-chain identity and this signer still agree
const found = await agent.talk.discover({ tags: "weather" }); // tags is a single string, not an array
const peer = found.data[0];
const opened = await agent.talk.open(peer.agentWallet, {
protocols: ["agenttalk/2"],
vocabularies: ["weather/v1"],
transports: ["agenttalk-https"],
});
if (!opened.ok) throw new Error(`open() failed: ${opened.code} — ${opened.reason}`);
const session = opened.session;
session.onMessage((type, payload) => {
// `payload` is the raw decrypted application bytes for this message `type` — this agent's own
// vocabulary decides how to decode it.
console.log(type, new TextDecoder().decode(payload));
});
await session.send("request", new TextEncoder().encode(JSON.stringify({ city: "Pune" })));
// A peer's signed offer (`payment/offer`) is verified — signature, the peer's identity check of this
// agent, your preferences — and then held. Nothing is paid until you accept it.
for (const offer of agent.payments.listPendingOffers?.() ?? []) {
// `session.peerAddress` is already cryptographically verified by the handshake itself — never
// trust an unverified "payTo" claim off the wire.
if (offer.payeeAddress === session.peerAddress.toLowerCase() && offer.amount === "0.25") {
await agent.payments.acceptOffer!(offer.offerId);
} else {
await agent.payments.declineOffer!(offer.offerId); // tells the peer, releases the reserved amount
}
}
await agent.close(); // drains sessions, releases leases
The policy option holds your own agent's preferences: how much it may spend and when to ask a
person. A counterparty's policy is a different thing: the rules it applies to agents that come to
it, such as which ones may open a session (talk.policy).
Held offers are also dropped, and their reserved amount released, when they expire, after 10 minutes
unpaid, or when their session closes. Set payments.autoSettle: true to pay every verified offer
immediately instead (not suitable when an LLM drives the agent). A result with code
SETTLEMENT_AMBIGUOUS means the payment may have gone through: never pay for it again.
With payments.payee and talk both configured, agent.payments.requestPayment(session, request) charges the peer over an open session: it sends a signed offer and an identity challenge, verifies the payer's presentation, waits for the payer to report its x402 settlement, re-verifies that transaction on chain itself (amount, payout address, verified payer, keccak256(paymentSessionId) nonce, freshness, once-only claim), then sends a signed receipt. The payer side (talkPaymentGate.ts) is attached to every session automatically whenever payments.rails is configured, and holds offers until acceptOffer (see the quick start).
payments: {
chain: { env: "production", rpcUrl: process.env.BASE_RPC_URL! },
delegationId,
policy: { caps: { maxPerPayment: "5.00", maxPerDay: "50.00", maxPerPeerPerDay: "20.00" } },
payee: {
x402: { chainId: 8453, asset: USDC_ON_BASE, rpcUrl: process.env.BASE_RPC_URL!, minConfirmations: 2 },
// payTo defaults to the signer's address — the only payout address payers verify today
},
},
// later, inside your own handler for the peer's request:
const result = await agent.payments.requestPayment!(session, { amount: "0.25", currency: "USDC" });
if (result.ok) answer(session); else log(result.code, result.reason); // never rejects
Wire messages: payment/offer, payment/identity-challenge, payment/identity-presentation, payment/identity-result (the payee accepts or rejects the payer's identity; the payer holds an offer only after "accepted"), payment/settlement (the payer's txHash, a pointer the payee never trusts), payment/declined (the payer won't pay this offer: declined, expired or refused), payment/receipt. x402 only for now (PAYEE_GATE_SUPPORTS_X402_ONLY); payment-session state is in memory, so a restart mid-payment loses the wait but never money.
| Module | Responsibility | Talks to |
|---|---|---|
core |
Config, errors, the Signer/StateStore/Cipher contracts, HTTP client with retries and circuit breaker, owner approvals |
— |
identity |
Delegations, presentations, verification, findActiveDelegation |
chain RPC (VCAttestation, AgentRegistry, the agent wallet) |
talk |
Discovery, Agent Cards, the session handshake, transports (HTTPS, relay, MQTT), vocabularies | the agent registry indexer, peer agents |
payments |
Payer: offers, preference checks, settlement rails (x402, MPP), held offers, UCP/ACP buyer flows, AP2 mandates. Payee: offers, identity check, on-chain settlement verification, receipts | chain RPC, peer agents, merchants |
@synergetics.ai/agent-sdk
src/
index.ts initializeAgent(), findActiveDelegation() and the public types → import from "@synergetics.ai/agent-sdk"
core/ config · errors · Signer · StateStore · Cipher · HTTP client · circuit breaker · owner approvals
identity/ chain config · delegations · presentations · verification · request signing
talk/ discovery · Agent Cards · handshake · session · transports (https · relay · mqtt) · vocabularies
payments/ policy · offers · receipts · rails/ (x402 · mpp) · commerce/ (ucp · acp) · authorization/ (ap2)
stores/ memory (dev) · sqlite · redis → "/sqlite", "/redis"
signers/ local keystore (dev) · aws-kms · keychain · agent-chain-service · ap2 → "/local-signer", "/aws-kms", "/keychain", …
testing/ conformance suites · test vectors → "/testing"
| Import path | Contents |
|---|---|
@synergetics.ai/agent-sdk |
initializeAgent, findActiveDelegation, AgentSdkError, core types |
/payments |
Offers, receipts, rails, UCP/ACP/AP2 building blocks |
/sqlite, /redis |
State stores |
/aws-kms, /keychain, /local-signer |
Signers (/local-signer is development-only) |
/agent-chain-service-signer |
Signs with a connection key held by agent-chain-service |
/ap2-aws-kms-signer, /ap2-local-signer |
ES256 signers for AP2 mandates |
/agent-account-caps-resolver |
Reads spending limits from an ERC-6551 agent wallet |
/synergy-wallet-bridge, /synergy-wallet-connection-bridge |
Owner approvals and connection grants through Synergy Wallet Desktop |
/testing |
Conformance suites for your own signers and stores |
Not built yet: a host for running many agents in one process, and Express routers for payees.
Nothing outside core/ imports another module's internals directly — an architecture test enforces that boundary, so the dependency graph above is a guarantee, not a convention.
environment is development, staging or production. It selects the built-in chain presets: development and staging on Base Sepolia, production on Base.chain option can override chainId, contract, agentRegistry and rpcUrl. Service URLs (discovery, relay, …) are always passed in.listen also needs an explicit bind host and an explicit TLS posture.AgentSdkError base (code, retryable, cause) with a documented code.Retry-After.session.onMessage, agent.talk.onIncomingSession, agent.talk.onSessionClosed, payments.onPaymentResult.Requires Node.js 20 LTS or later.
npm ci
npm run build # tsup — emits ESM and CJS
npm run lint
npm run typecheck
npm run check:boundaries # the module-boundary architecture test
Test files are intentionally not part of this repository's history — they live in each contributor's working tree and are run locally (npm test) before every change is pushed. This is a deliberate convention across this organization's SDKs, not an oversight.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.