Skip to content

v0.1.0 — @mdlog/agentgate on npm

Choose a tag to compare

@mdlog mdlog released this 01 Jul 07:09

npx @mdlog/agentgate — wrap any HTTP API into a paid x402 service on Casper, or read the live on-chain catalog with zero setup.

npx @mdlog/agentgate list                                   # live on-chain catalog — zero config, no keys
npx @mdlog/agentgate wrap <url> --price 0.5 --name "X" --pem ./key.pem

Highlights

  • Zero-env reads (list / status) against Casper Testnet — resolves the registry contract via public node RPC, no CSPR.cloud key.
  • One-line wrap — the only thing besides the args is your funded wallet key (--pem); it registers on-chain and self-maps on the gateway.
  • Owner-signature self-service gateway mapping (POST /services/:id/map) — no shared admin token.
  • Inline config flags (--mode/--node-url/--registry/--pem/--api-key/--admin-token), precedence flag > env > default.
  • Hosted gateway live at https://gateway.mdloglabs.org.

npm: https://www.npmjs.com/package/@mdlog/agentgate