Stillos Kya

io.github.stillmarcus24由 GitHub 帳號 stillmarcus24 發布v0.4.3更新於 Nov 2, 2026

Counterparty due-diligence infrastructure: OFAC screening, on-chain risk, signed verdicts.

已驗證Streamable HTTP可網頁執行金融安全與監控AI 與機器學習

概覽

AI 產生的概覽

在付款前篩檢交易對手 AI 代理,依 OFAC 制裁名單與鏈上錢包訊號給出 CLEAR、REVIEW 或 BLOCK 的失敗即關閉判定。

可以做什麼
  • 依名稱與錢包地址篩檢交易對手代理,取得 CLEAR、REVIEW 或 BLOCK 判定。
  • 在一次檢查中結合 OFAC SDN 制裁篩檢與即時鏈上錢包訊號。
  • 在付費方案取得 Ed25519 簽章的盡職調查憑證,可於爭議時舉證。
  • 在程式碼中為付款路由加上閘門,讓被攔阻或無法辨識的對手無法進入處理流程。
適用情境
適用於代理即將向另一個代理或錢包付款或交易,並希望先留下制裁與錢包風險查核紀錄的情境。適合需要簽章稽核憑證的代理間商務流程。
執行需求
可作為遠端端點執行,也可透過 npx 作為本機 npm 套件執行。未宣告身分驗證。免費方案每個代理 id 每天 2 次檢查;付費方案每次 0.25 USDC(經 x402)或使用 API 金鑰,付款需要簽章器或支援付款的 fetch。可用 STILLOS_KYA_AGENT 設定持久的代理身分。
安裝前請注意
付費方案每次檢查都會花費真實 USDC,應謹慎設定支出上限與簽章器。以錢包參數或 STILLOS_KYA_WALLET_KEY 傳入原始私鑰是最弱的付款方式,優先使用簽章器物件或帶付款的 fetch。對手名稱與錢包地址會傳送給第三方服務。免費方案判定不帶簽章。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Stillos Kya,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.stillmarcus24%2Fstillos-kya/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "stillos-kya": {
      "type": "http",
      "url": "https://stillos-kya-edge.stillos.workers.dev/mcp"
    }
  }
}

README

stillos-kya — Know Your Agent

The trust toll for agent-to-agent commerce. Before your AI agent pays another agent, run one check: is the counterparty sanctioned? Is its wallet a scam/contract/drained? StillOS returns a fail-closed CLEAR / REVIEW / BLOCK verdict — OFAC SDN screen + live on-chain wallet signals — with an Ed25519-signed receipt you can attach to the transaction as proof-of-diligence.

a16z (Big Ideas 2026) calls "Know Your Agent" — signed agent credentials + counterparty trust — the prerequisite for merchants to let agents onto payment rails. This is a working drop-in for it.

Install

bash
npm install stillos-kya

Use — one call

js
const { kya } = require('stillos-kya');
const r = await kya({ name: 'Acme Agent', wallet: '0xabc...' });if (!r.allowed) throw new Error(`counterparty ${r.verdict}`); // CLEAR | REVIEW | BLOCK// r.receipt -> { hash, signature, verify }  (signed, verifiable proof-of-screening)

Use — gate an x402 / express route in one line

js
const { kyaGate } = require('stillos-kya');
// Every payment through this route runs a counterparty trust-check first.app.post('/pay-agent', kyaGate({ blockOnReview: false }), async (req, res) => {  // req.kya = { verdict, allowed, checks, receipt, ... }  // ...proceed to pay; blocked counterparties never reach here});

What the gate lets through (0.4.2)

kyaGate requires a positive clearance. It does not merely block BLOCK.

Endpoint returnsreq.kya.verdictGate
{"verdict":"CLEAR"}CLEARpasses to your handler
{"verdict":"REVIEW"}REVIEWpasses, unless blockOnReview: true -> 403
{"verdict":"BLOCK"}BLOCK403
402 / 4xx / 5xx / network failure—502, fail-closed
200 with no recognized verdict ({}, {"verdict":null}, {"verdict":"UNKNOWN"})UNKNOWN502, fail-closed

That last row changed in 0.4.2. Through 0.4.1 the gate asked "is this BLOCK?" rather than "is this CLEAR?", so any 200 carrying no verdict it recognised fell through to your handler with blocked: false. allowed was already computed correctly and simply never consulted. If you were relying on that behaviour, kyaGate({ failOpen: true }) restores it explicitly — as an opt-in, which is the only form it should ever have had.

0.4.2 also stops the MCP server minting a new agent id on every single call. Set STILLOS_KYA_AGENT for a durable identity across restarts; otherwise one id is minted per process. The free tier meters per source IP, so this never affected quota — it affected whether your repeat usage was legible as repeat usage.

Tiers

  • Free: 2 checks/agent id/day — unsigned verdict, the answer, for triage.
  • Paid ($0.25 USDC via x402, or an API key): the signed, independently-verifiable receipt — the proof-of-diligence that matters in a dispute.

Pricing + full endpoint reference: https://stillosdigitalholdings.com/notary

Past the free tier

Payment support is already installed. x402-fetch and viem ship as optionalDependencies, so npm install stillos-kya installs them for you. There is no second install step. Check it yourself:

js
const { paymentCapability } = require('stillos-kya');paymentCapability(); // { available: true, deps: { 'x402-fetch': true, viem: true }, reason: null }

Paying — pass a signer, not a secret

Preferred, in order. StillOS never receives, stores, or logs your key in any of them:

js
// BEST — you own the whole payment transport. This package never touches a key or signer.const { wrapFetchWithPayment } = require('x402-fetch');const payingFetch = wrapFetchWithPayment(fetch, myAccount, 500000n); // 500000 = $0.50 USDCconst r = await kya({ name: 'Acme Agent' }, { fetch: payingFetch });
// GOOD — hand us a signer object; the key stays inside it.const r = await kya({ name: 'Acme Agent' }, { account: myViemAccount, maxUsd: 0.5 });
// LEGACY — a raw hex private key. Still supported, deliberately last. A raw key in an// env var is the weakest of these: anything that can read your process env can spend it.const r = await kya({ name: 'Acme Agent' }, { wallet: process.env.MY_WALLET_KEY });

On a 402 the SDK pays and retries exactly once (MAX_PAYMENT_RETRIES === 1). It refuses to sign for a network, asset, or scheme it does not recognise rather than trusting the challenge blindly.

Agent-readable recovery

With no payment capability configured, kya() throws a KyaHttpError carrying everything an autonomous caller needs to act — branch on err.code, never on message text:

js
const { kya, KyaHttpError, CODES } = require('stillos-kya');try {  await kya({ name: 'Acme Agent' });} catch (e) {  if (e instanceof KyaHttpError && e.code === CODES.PAYMENT_REQUIRED) {    e.payment;      // { mechanism:'x402', scheme, network, asset, asset_name,                    //   pay_to, amount_usd, amount_base_units, resource, max_timeout_seconds }    e.remediation;  // { action:'configure_payment_capability', accepted:[...],                    //   free_tier_alternative: '...' }  }}

Codes: PAYMENT_REQUIRED · PAYMENT_CAPABILITY_MISSING · PAYMENT_CONSTRUCTION_FAILED · PAYMENT_REJECTED · PAYMENT_UNSUPPORTED · BAD_402 · BAD_REQUEST · SERVER_ERROR.

Security

StillOS never asks for, receives, transmits, or stores your private key. Payment is signed entirely on your side and reaches us only as a standard x402 X-PAYMENT authorization header. Your own wallet pays your own request.

Key material is never placed in an error message, a log line, or telemetry — including when a malformed key fails to parse, where the underlying library's own error text is deliberately suppressed rather than re-thrown.

STILLOS_KYA_WALLET_KEY remains supported for the CLI and for backward compatibility. It is a legacy convenience, not the recommended architecture: prefer fetch or account in code.

CLI: STILLOS_KYA_WALLET_KEY=0x... stillos-kya check "Acme Agent"

Why signed matters

An unsigned "looks fine" is worthless if a counterparty later turns out sanctioned or fraudulent. A StillOS signed receipt is cryptographic proof that you screened before you paid — the audit artifact that protects you.

來源:README.md,提交 196e5fa

工具

1

kya_check

Know Your Agent (KYA): screen a counterparty agent BEFORE paying it. Returns a fail-closed verdict -- CLEAR, REVIEW, or BLOCK -- from an OFAC SDN sanctions screen plus live on-chain wallet signals, with an Ed25519-signed proof-of-diligence receipt on the paid tier. Call this before any agent-to-agent payment.

輸入參數namewallet

版本歷史

2
  1. v0.4.3最新Sep 23, 2026
  2. v0.3.1Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。