NayoriNayori
Reference

Agent SDK reference

Core clients, transaction builders, signers, policy and confirmation primitives.

The public package is @perkos/agent-sdk. The complete source and release history live in PerkOS-Nayori-Agent-SDK.

Core modules

ModuleResponsibility
PerkOSClientTyped reads, high-level actions and confirmation orchestration
Transaction buildersInert Clarity call plans with exact post-conditions
StacksConnectSignerBrowser request adapter for Leather and compatible wallets
HeadlessSignerControlled key-provider integration for server-side automation
SpendingPolicyAsset, per-transaction and per-session limits
TransactionTrackerPending/success/abort/drop/timeout normalization
x402 adaptersChallenge codecs, intent binding, Stacks payment construction and verification
MPP adaptersPaymentAuth challenge, credential and USDCx receipt handling
NayoriPartnerClientWallet-linked partner OAuth and MCP access

Signing boundaries

The SDK never selects a browser wallet account by itself. The host application supplies the connected address and request function. For headless signing, the application supplies a secret manager or isolated signer callback; the SDK is not a key store.

Confirmation

const receipt = await nayori.executeAndConfirm(plan, {
  timeoutMs: 10 * 60_000,
  pollIntervalMs: 5_000,
});

if (receipt.confirmation.status !== "success") {
  throw new Error(`Transaction ended with ${receipt.confirmation.status}`);
}

See the package README for the full exported API and exact release-specific signatures.

On this page