io.github.payclaw/badge
Prove your agent is an authorized actor, not a bot. MCP-native identity for agent commerce.
Ask AI about io.github.payclaw/badge
Powered by Claude Β· Grounded in docs
I know everything about io.github.payclaw/badge. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Badge by kya labs
Persistent identity for AI agents across merchant sites. Badge gives agents a credential they carry on every request β merchants verify it, trust accumulates across visits, and agents that build history earn better treatment over time.
Framework-agnostic. Transport-agnostic. Zero runtime dependencies.
Badge SDK
The SDK is the primary integration surface. Three methods cover the full lifecycle:
import { Badge } from "@kyalabs/badge-sdk";
const badge = await Badge.init();
const runId = badge.startRun();
await badge.declareVisit({
merchant: "store.example.com",
runId,
url: "https://store.example.com/cart",
});
await badge.reportOutcome({
merchant: "store.example.com",
runId,
outcome: "not_denied",
});
No signup. No API key. Badge.init() issues a guest pass on first run and caches it to disk. Identity survives process restarts.
npm install @kyalabs/badge-sdk
What the SDK covers
- Identity model β three-tier ladder: guest pass (
gp_v1_*) β badge token (kya_*) β authenticated identity - Lifecycle tracking β declare visits, report outcomes, correlate with run IDs
- Offline resilience β never throws on network failure, deterministic fallback on every call
- UCP integration β
io.kyalabs.common.identityCredential Provider, published schemas, ES256-signed JWTs - Scoring β outcomes feed kyaScore (500β850), portable across merchants
Badge MCP Server
For MCP client users (Claude Desktop, Cursor, Windsurf), Badge also ships as an MCP tool server. The MCP server wraps the SDK β same identity model, same tokens, same scoring.
npx @kyalabs/badge
The SDK is the canonical integration path for platform builders and agent frameworks. The MCP server is a convenience wrapper for end users working within MCP clients.
Links
- Website: kyalabs.io
- Data practices: kyalabs.io/trust
- UCP extension spec: github.com/kyalabs/ucp-agent-badge
- Contact: agent_identity@kyalabs.io
License
MIT
