Sign In

agent-kya

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-kya

Know Your Agent — trust scoring for AI agents. Check any wallet's trust score, verify ERC-8004 identity, get tier. Zero dependencies.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

kya — Know Your Agent

Trust scoring for AI agents. Check any wallet's trust score, verify ERC-8004 identity, get tier. Zero dependencies.

npm install agent-kya

Also available as: pip install agent-kya

Quick start

import kya from 'agent-kya';

// Trust score (0–100) — FREE, no API key
const { score, tier } = await kya.check('0xABC...');
console.log(score); // 73
console.log(tier);  // 'trusted'

// Quick boolean
if (await kya.isTrusted('0xABC...', 50)) {
  // safe to transact
}

Why

Every AI agent that transacts with another agent needs to answer one question: should I trust this address?

kya answers it in one line. No signup, no API key, no payment for basic checks.

API

Free (no API key)

FunctionWhat it does
kya.check(address)Trust score 0–100, tier, components, blocked status
kya.verify(address)ERC-8004 identity verification (registered agent?)
kya.tier(address)Trust tier + transaction limits
kya.batchCheck(addresses)Batch trust check (max 10)
kya.framework()Scoring methodology, tiers, endpoints
kya.isTrusted(address, minScore?)Quick boolean: score ≥ minScore and not blocked

Premium ($0.01/query via x402)

FunctionWhat it does
kya.deepAnalysis(address)Behavioral signals, velocity scoring, anomaly flags, recommendation

Examples

Check before paying another agent

import kya from 'kya';

async function payAgent(agentAddress: string, amount: number) {
  const trust = await kya.check(agentAddress);

  if (trust.blocked) throw new Error('Agent is sanctioned');
  if (trust.score < 20) throw new Error('Trust too low');

  // Proceed with payment...
}

Verify ERC-8004 identity

const { verified, agentId } = await kya.verify('0x...');
if (!verified) {
  console.log('Not a registered agent');
}

Batch check multiple agents

const results = await kya.batchCheck([
  '0xAgent1...',
  '0xAgent2...',
  '0xAgent3...',
]);
results.forEach(r => console.log(r.address, r.score, r.tier));

Deep analysis (paid)

const deep = await kya.deepAnalysis('0x...');
console.log(deep.recommendation); // 'allow' | 'review' | 'block'
console.log(deep.behavioral.anomalyFlags);

Custom API endpoint

import kya from 'agent-kya';

kya.configure({ baseUrl: 'https://my-kya-server.com' });

Trust tiers

TierScoreMax per TXRequirements
Open0–19$1Wallet + sanctions pass
Verified20–49$1,000ERC-8004 identity + wallet history
Trusted50–79$10,000Operator KYB + Travel Rule
Enterprise80–100UnlimitedFull KYB + trust bond + SLA

How it works

kya queries the AsterPay KYA API which aggregates:

  • On-chain identity — ERC-8004 registration on Base
  • Wallet history — age, transaction count, balance patterns
  • Behavioral signals — velocity, pattern analysis, anomaly detection
  • Sanctions screening — OFAC, EU, UN sanctions lists

All free endpoints require no authentication. The API is rate-limited but generous for normal use.

Framework integrations

  • LangChain: pip install asterpay[langchain]
  • CrewAI: pip install asterpay[crewai]
  • MCP Server: npx @asterpay/mcp-server
  • AgentKit: npm install @asterpay/agentkit-kya

License

MIT — AsterPay

Keywords

kya

FAQs

Package last updated on 15 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts