AsterPay KYA Hook — ERC-8183 Integration

MCP serverAI & models

asterpay lets an AI pay for things in euros while you keep control through spending budgets. It adds trust to agent commerce with know-your-agent (KYA) checks and merchant discovery. Once added, your AI can handle payments and purchases within the limits you set.

Use AsterPay KYA Hook — ERC-8183 Integration in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add AsterPay KYA Hook — ERC-8183 Integration and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use AsterPay KYA Hook to check agent trust

Details

Available today. Use it from your connected AI after setup.

Add asterpay, set a budget, and then ask your AI to find a merchant or make a payment. The source is available at github.com/asterpay/erc8183-kya-hook.

AsterPay KYA Hook — ERC-8183 IntegrationStart free

What your AI can do with it

  • Pay and settle in euros
  • Set spending budgets for purchases
  • Run KYA (know-your-agent) checks
  • Discover merchants to buy from
  • Use 22 tools covering agent commerce

Install AsterPay KYA Hook — ERC-8183 Integration

The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user asterpay-kya-hook-erc-8183-integ 'https://mcp-api.asterpay.io/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://mcp-api.asterpay.io/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=asterpay-kya-hook-erc-8183-integ&config=eyJ1cmwiOiJodHRwczovL21jcC1hcGkuYXN0ZXJwYXkuaW8vbWNwIn0=

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://mcp-api.asterpay.io/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add asterpay-kya-hook-erc-8183-integ --url 'https://mcp-api.asterpay.io/mcp'

    Run it once, then sign in with codex mcp login asterpay-kya-hook-erc-8183-integ if the server asks for an account.

From the project's README

As published by asterpay/erc8183-kya-hook in README.md.

Know Your Agent (KYA) verification gate for Agentic Commerce jobs.

This hook implements the IACPHook interface to enforce AsterPay's 5-layer Trust Framework before AI agents can participate in ERC-8183 commerce jobs.

How It Works

Client creates job with hook = AsterPayKYAHook
                    │
                    ▼
     ┌──── setProvider() ────┐
     │  beforeAction:        │
     │  ✓ Sanctions Oracle   │
     │  ✓ Trust Score ≥ N    │
     │  ✓ Score freshness    │
     └───────────────────────┘
                    │
                    ▼
     ┌──────── fund() ───────┐
     │  beforeAction:        │
     │  ✓ Same KYA checks    │
     │  ✓ Cache result       │
     └───────────────────────┘
                    │
         provider works...
                    │
     ┌─────── complete() ────┐
     │  afterAction:         │
     │  → ReputationPositive │
     └───────────────────────┘

Architecture

ContractPurpose
AsterPayKYAHook.solMain hook — sanctions + trust score gate
IACPHook.solERC-8183 hook interface
IAgenticCommerce.solRead-only ACP job interface
IAgentTrustScore.solAsterPay trust score oracle interface
ISanctionsOracle.solChainalysis oracle interface

Checks Performed

  1. Sanctions screening — Chainalysis Oracle on Base (OFAC, EU, UN). Fail-closed if oracle unreachable.
  2. Trust Score — Agent must have score ≥ minTrustScore (default: 20 = verified tier)
  3. Score freshness — Score must be updated within maxScoreAge seconds (default: 3600)
  4. Tier validation — Agent must not be in "blocked" tier

Quick Start

Deploy

cd contracts/erc8183-kya-hook

# Install Foundry deps
forge install

# Deploy to Base Sepolia
ACP_ADDRESS=0x... \
TRUST_ORACLE_ADDRESS=0x... \
forge script script/Deploy.s.sol:DeployKYAHook \
  --rpc-url base_sepolia --broadcast --verify

Test

forge test -vvv

TypeScript SDK

import { createKYAHookSDK } from './ts-sdk/kya-hook';
import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider('https://mainnet.base.org');
const signer = new ethers.Wallet(PRIVATE_KEY, provider);

const sdk = createKYAHookSDK(HOOK_ADDRESS, ACP_ADDRESS, signer);

// Pre-flight check
const result = await sdk.wouldPass('0xAgentWallet...');
console.log(result);
// { passes: true, score: 42, tier: 'verified', sanctionsClear: true }

// Create a KYA-protected job
const jobId = await sdk.createJobWithKYA({
  provider: '0xAgentWallet...',
  evaluator: '0xEvaluator...',
  expiredAt: Math.floor(Date.now() / 1000) + 86400,
  description: 'Translate document EN→FR',
});

// Fund triggers KYA check automatically
await sdk.fundJob(jobId, 100n);

Configuration

ParameterDefaultDescription
minTrustScore20Minimum score (0-100). 20 = verified tier
maxScoreAge3600Max seconds since last score update
sanctionsEnabledtrueEnable Chainalysis screening

All configurable by contract owner via setMinTrustScore(), setMaxScoreAge(), setSanctionsEnabled().

Events

EventWhenUse
KYAVerifiedAgent passes all checksIndex verified agents
KYABlockedAgent fails any checkAlert, compliance logging
ReputationPositiveJob completedFeed into ERC-8004 reputation
ReputationNegativeJob rejectedFeed into ERC-8004 reputation

License

MIT (hook contract) / CC0 (interfaces aligned with ERC-8183 and EIP-Agent Trust Score)

Tools it offers (4)

What this server listed when Ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.

  • check_agent_trust
  • settlement_estimate
  • market_rates
  • merchant_resolve

Signals

GitHub stars
1
Last commit
Mar 2026
Advanced
Delivery
asterpay MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
io-asterpay-asterpay
Source
github.com/asterpay/erc8183-kya-hook
Hosted endpoint
https://mcp-api.asterpay.io/mcp